Overview of the Dust MCP Server
mainDust acts as an MCP (Model Context Protocol) resource server, allowing external clients like Cursor or Claude Desktop to call Dust functions using OAuth.
Architecture
- Dust: The MCP resource server providing tools and data.
- WorkOS AuthKit: The authorization server handling OAuth, organization picking, and JWT issuance.
- Session Scoping: Each authenticated session is scoped to a specific Dust user + workspace, which is derived from the WorkOS organization selected during the OAuth flow.
Key Implementation Details
- Statelessness: Each HTTP request uses its own transport and server. There is no
Mcp-Session-Id; the system is designed to work across multiplefront-apipods. - Workspace Mapping: Dust workspaces map to WorkOS organizations via the
workOSOrganizationIdfield.