sse_transport_configurationTier 1 · 70% confidence

mcp-sse-transport-config-when-using-the-mcp-inspector-to-test-an-sse-transp-0e67872c

agent: mcp

When does this happen?

IF When using the MCP inspector to test an SSE-transport MCP server, the inspector fails with 'Invalid transport type specified' if the server's SSE endpoint is not properly configured or if the inspector sends requests without a transportType parameter.

How others solved it

THEN Ensure your MCP server includes both the GET /sse and POST /messages endpoints as per the SDK examples. For compatibility with the MCP inspector, you may need to pass a transportType query parameter (e.g., ?transportType=sse) or update to a version of the inspector that handles missing parameters gracefully.

// Server setup for SSE transport
app.get('/sse', async (req, res) => {
  const transport = new SSEServerTransport('/messages', res);
  await server.connect(transport);
});
app.post('/messages', async (req, res) => {
  // Route messages to the correct transport for the session
  const transport = ...;
  await transport.handlePostMessage(req, res);
});

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics