-
Notifications
You must be signed in to change notification settings - Fork 133
Open
Labels
bugSomething isn't workingSomething isn't workingcliChanges that impact CLI functionalityChanges that impact CLI functionalityproxy
Description
Bug description
The thv mcp list <tools|prompts|resources> --server <workload-name> commands do not work with remote MCP servers when using the workload name.
It does work if you supply the local ToolHive Proxy URL though, like thv mcp list tools --server http://127.0.0.1:12461/mcp
Steps to reproduce
Run a remote MCP server like mcp-spec (no auth required):
thv run mcp-spec
Try to list the tools by referencing the workload name:
thv mcp list tools --server mcp-spec
Expected behavior
The list of tools should be returned.
Actual behavior
An error is returned. Note it's referring to SSE even though this is a streamable-http server.
Error: failed to start MCP transport: failed to connect to SSE stream: Get "": unsupported protocol scheme ""
I've also tried adding --transport streamable-http which results in a different error:
Error: failed to initialize MCP client: transport error: failed to send request: failed to send request: Post "": unsupported protocol scheme ""
Environment (if relevant)
- ToolHive version: v0.3.5
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcliChanges that impact CLI functionalityChanges that impact CLI functionalityproxy