Update simpleStreamableHttp.ts

This commit is contained in:
Olivier Chafik 2025-06-18 11:26:28 +01:00
commit d58c2eb114
No known key found for this signature in database

View file

@ -280,7 +280,7 @@ app.use(express.json());
let authMiddleware = null;
if (useOAuth) {
// Create auth middleware for MCP endpoints
const mcpServerUrl = new URL(`http://localhost:${MCP_PORT}`);
const mcpServerUrl = new URL(`http://localhost:${MCP_PORT}/mcp`);
const authServerUrl = new URL(`http://localhost:${AUTH_PORT}`);
const oauthMetadata: OAuthMetadata = setupAuthServer(authServerUrl, mcpServerUrl);