refactor: Update MCP endpoint to use prefix directly instead of appending '/mcp'

This commit is contained in:
Nawaz Dhandala
2026-03-03 21:01:32 +00:00
parent 824803e6b0
commit a7782564a2

View File

@@ -70,7 +70,7 @@ function setupRoutesForPrefix(
prefix: string,
tools: McpToolInfo[],
): void {
const mcpEndpoint: string = `${prefix}/mcp`;
const mcpEndpoint: string = prefix;
const mcpHandler: McpHandlerFunction = createMCPHandler();
// MCP endpoint for all methods (GET for SSE, POST for requests, DELETE for cleanup)