Files
stack/apps/gateway/src/mcp/mcp.tokens.ts
Jason Woltje e2de76ca9f
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
feat(gateway): add MCP server endpoint with streamable HTTP transport (#52)
- Install @modelcontextprotocol/sdk and zod in apps/gateway
- Create McpModule with McpService and controller at /mcp endpoint
- Implement stateful streamable HTTP transport (MCP spec 2025-03-26)
- Expose 14 tools: brain (projects/tasks/missions), memory, coord
- Require valid BetterAuth session for all MCP connections
- Per-session McpServer + StreamableHTTPServerTransport instances
- Follows same Fastify onRequest hook pattern as auth handler
- Add mcp.dto.ts with McpToolDescriptor and McpServerInfo interfaces

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15 13:04:27 -05:00

2 lines
42 B
TypeScript

export const MCP_SERVICE = 'MCP_SERVICE';