How agentunicorn/banking-fastmcp works
File structure
Top-level files & dirs:
• server.py & mcp_server.py – main entrypoints for HTTP servers
• routes/ – HTTP route definitions (healthz.py, jwks.py)
• middlewares/ – request/response interception (auth, tool_call)
• services/ – higher-level operations (e.g., auth)
• tools/ – reusable business-logic functions (banking_tools, util_tools)
• database/ – ORM models and manager for SQLite
• configs/ – central config loader
• import_banks.py + data/banks.csv – offline data-import script
• jwks.json – JSON Web Key Set for token verification
README
• (No content supplied.) We infer from filenames that this is an internal banking-API microservice with JWT-based auth, a health endpoint, and a one-time data import utility.
Elements
• Blue for API & Routing
• Green for Middleware
• Orange for Services & Tools
• Gray for External Systems (e.g., clients, JWKS store)
• Brown for Data Store (SQLite)
Detail
• Every directory/module as its own component or subcomponent
• Don’t omit the import utility or config loader—they are crucial for local development and deployment