How ravisidh36/shogun-using-mcp works
Shogun turns a travel request into selectively routed flight, hotel, weather, budget, or itinerary intelligence, with human review before itinerary finalization. The web UI submits requests to FastAPI, which invokes the LangGraph workflow; results return to the UI, and itinerary drafts can be approved or revised. README documentation supplies several workflow and integration links; sampled source confirms API dispatch, MCP calls, weather-provider requests, and UI requests. Unsampled graph details are represented only where documented.
Main entry points: backend.py Guardrail and supervisor · mcp_client.py MCP tool client · script.js Travel command UI · app.py FastAPI endpoints
Components 20
Web experience
- Travel command UI
static/script.js - FastAPI endpoints
app.py - PDF export
utils/pdf_export.py
Workflow orchestration
- Guardrail and supervisor
backend.py - Human approval
backend.py - Final response
backend.py - LLM context protection
mcp_client.py
Travel intelligence
- Flight research
backend.py - Hotel research
backend.py - Weather research
backend.py - Budget analysis
backend.py - Itinerary drafting
backend.py
Persistence and providers
- MCP tool client
mcp_client.py - Weather MCP server
mcp_customserver.py - PostgreSQL checkpoints
- Groq model
- AviationStack MCP
- Tavily MCP
- OpenWeather API
Other components
- Traveler
Connections 24
- Traveler → Travel command UI: submits request
README.md - Travel command UI → FastAPI endpoints: posts request
static/script.js - FastAPI endpoints → Guardrail and supervisor: runs workflow
app.py - FastAPI endpoints → Human approval: resumes thread
app.py - Guardrail and supervisor → Flight research: routes selectively
README.md - Guardrail and supervisor → Hotel research: routes selectively
README.md - Guardrail and supervisor → Weather research: routes selectively
README.md - Guardrail and supervisor → Budget analysis: routes selectively
README.md - Guardrail and supervisor → Itinerary drafting: routes selectively
README.md - Flight research → MCP tool client: requests tools
backend.py - Hotel research → MCP tool client: searches lodging
backend.py - Weather research → MCP tool client: requests forecast
backend.py - MCP tool client → AviationStack MCP: loads aviation tools
README.md - MCP tool client → Tavily MCP: loads search tools
README.md - MCP tool client → Weather MCP server: loads weather tools
mcp_client.py - Weather MCP server → OpenWeather API: requests conditions
mcp_customserver.py - Itinerary drafting → Human approval: requests review
README.md - Human approval → Final response: approves or revises
README.md - Final response → LLM context protection: bounds context
README.md - LLM context protection → Groq model: invokes model
mcp_client.py - Final response → Travel command UI: returns results
README.md - Guardrail and supervisor → PostgreSQL checkpoints: checkpoints state
README.md - Human approval → PostgreSQL checkpoints: resumes thread
README.md - Travel command UI → PDF export: exports briefing
README.md