Skip to content

Conversation

@DiegoJohnsonL
Copy link
Contributor

@DiegoJohnsonL DiegoJohnsonL commented Jan 15, 2026

Summary

  • Adds missing --transport http flag to the Claude Code MCP setup command

Problem

The current documentation shows:

claude mcp add tanstack https://tanstack.com/api/mcp

Without the --transport http flag, Claude Code interprets the URL as a stdio command instead of an HTTP server, producing this error:

Warning: The command "https://tanstack.com/api/mcp" looks like a URL, but is being interpreted as a stdio server as --transport was not specified.
If this is an HTTP server, use: claude mcp add --transport http tanstack https://tanstack.com/api/mcp
If this is an SSE server, use: claude mcp add --transport sse tanstack https://tanstack.com/api/mcp
Added stdio MCP server tanstack with command: https://tanstack.com/api/mcp to local config

The server gets added incorrectly as a stdio server, and the MCP connection fails.

Fix

The command should be:

claude mcp add --transport http tanstack https://tanstack.com/api/mcp

Note: The API key variant in the <details> section already had the correct --transport http flag - only the OAuth version was missing it.

🤖 Generated with Claude Code

The Claude Code CLI requires the --transport http flag when adding HTTP-based
MCP servers. Without it, the URL is interpreted as a stdio command, causing
the connection to fail.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@netlify
Copy link

netlify bot commented Jan 15, 2026

👷 Deploy request for tanstack pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 28bd65e

@tannerlinsley tannerlinsley merged commit 83f656f into TanStack:main Jan 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants