Skip to content

Commit d58c2eb

Browse files
committed
Update simpleStreamableHttp.ts
1 parent 4a88cac commit d58c2eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/examples/server/simpleStreamableHttp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ app.use(express.json());
280280
let authMiddleware = null;
281281
if (useOAuth) {
282282
// Create auth middleware for MCP endpoints
283-
const mcpServerUrl = new URL(`http://localhost:${MCP_PORT}`);
283+
const mcpServerUrl = new URL(`http://localhost:${MCP_PORT}/mcp`);
284284
const authServerUrl = new URL(`http://localhost:${AUTH_PORT}`);
285285

286286
const oauthMetadata: OAuthMetadata = setupAuthServer(authServerUrl, mcpServerUrl);

0 commit comments

Comments
 (0)