toolhive icon indicating copy to clipboard operation
toolhive copied to clipboard

MCP list commands don't work with remote servers using workload name

Open danbarr opened this issue 4 months ago • 0 comments

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

danbarr avatar Sep 30 '25 14:09 danbarr