Tech Stack
FastMCP
High-level SDK for implementing the Model Context Protocol.
FastAPI
Underlying ASGI framework handling HTTP and SSE connections.
SSE
Server-Sent Events for streaming real-time responses to agents.
Stdio
Standard Input/Output transport for local CLI-based agent integration.
Pydantic
Strict schema validation for settings and tool arguments.
HTTPX
Async HTTP client for communicating with the main DataDot backend.
Interaction Flow
The interaction between an Agent and the backend is mediated by the MCP server.MCP Interaction Flow
Authentication
Security is a primary concern. The MCP server acts as a proxy that validates credentials before allowing access to private data.1. API Key Validation
Incoming tool requests must include anX-API-Key (or be pre-configured with APP_API_KEY).
- The MCP server intercepts the request.
- It calls
POST {BACKEND_URL}/api/v1/system/validate-api-key. - The backend verifies if the key is valid and which Workspace it belongs to.