Did anyone tried to use an Streamable HTTP MCPServer with Claude.ai ? Intermittent Failure.
Hello 
I created a small MCP Server with Mastra and I can query it perfectly using MCPInspector, locally and when deployed on Vercel.
But, when I query it from Claude.ai -custom connector mode-, it works only 50% of the time, I have intermittent HTTP 400 into logs.
From what I see, Claude.ai is making 4-5 requests to the MCP in a few milliseconds, could that be the cause of failure?
Any hints on how to troubleshoot this error?
.toString(36)
.slice(2)}
I created a small MCP Server with Mastra and I can query it perfectly using MCPInspector, locally and when deployed on Vercel.
But, when I query it from Claude.ai -custom connector mode-, it works only 50% of the time, I have intermittent HTTP 400 into logs.
From what I see, Claude.ai is making 4-5 requests to the MCP in a few milliseconds, could that be the cause of failure?
Any hints on how to troubleshoot this error?
await mcpServer.startHTTP({
url: url,
httpPath: /api/mcp/${workspaceId},
req,
res,
options: {
sessionIdGenerator: () =>
session-${Date.now()}-ws-${workspaceId}-${Math.random().toString(36)
.slice(2)}
,
onsessioninitialized: (sid: string) => {
const userInfo = authInfo.extra;
console.log([MCP Unauth] session ${sid} for workspace ${workspaceId})},
},
});