Skip to content

Conversation

yigitkonur
Copy link

tried running the mcp cli examples from readme but transport flags didn't work as documented. looks like the api changed but readme wasn't updated.

fixed:

  • removed --transport flags from client commands (tools, resources, etc) - transport is auto-detected from urls now
  • fixed mcp new --transport=http examples - only stdio and sse are supported
  • updated examples to match actual cli behavior

tested all examples and they work now.

note: cli --help might also need updating to reflect these changes.

yigitkonur and others added 2 commits August 4, 2025 09:30
Remove incorrect --transport flags that don't exist in the CLI.
Transport is automatically detected from URL patterns:
- URLs ending with /sse use SSE transport
- HTTP/HTTPS URLs use streamable HTTP transport by default

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Remove incorrect --transport=http option which is not supported.
The mcp new command only supports stdio and sse transports.

Updated scaffolding examples to use correct transport options
and fixed streamable HTTP example to use SSE transport instead.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
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.

1 participant