[Bug]: `mcpm router on`, mcp/inspector is error at streamable-http-protocol
Closed this issue · 1 comments
kongqy commented
Issue Type
Bug Report
Description
Win11
Steps to Reproduce
error detail:
Received POST message for sessionId undefined
New streamable-http connection
Query parameters: [Object: null prototype] {
url: 'http://localhost:6276/mcp/',
transportType: 'streamable-http'
}
Connected to Streamable HTTP transport
Connected MCP client to backing server transport
Created streamable web app transport aed0221c-0ff5-4cbc-9bc7-edf912bb686e
Error from MCP server: TypeError: fetch failed
at node:internal/deps/undici/undici:13510:13
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async StreamableHTTPClientTransport.send (file:///D:/Tools/NodeJS/node-v22.15.0-win-x64/node_modules/@modelcontextprotocol/inspector/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js:248:30) {
[cause]: AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1139:18)
at afterConnectMultiple (node:net:1714:7) {
code: 'ECONNREFUSED',
[errors]: [ [Error], [Error] ]
}
}Additional Information
No response
JoJoJoJoJoJoJo commented
Thanks for the report! This is probably due to the profile header is missing, so that the router can't find a valid server config (unfortunately mcp inspector doesn't support custom headers for now). I will try to catch the error and provide user-friendly output.
