Skip to content

Wrong transport when listing MCP servers with JSON/mcpservers format #1717

@JAORMX

Description

@JAORMX

Bug description

when listing MCP servers with toolhive, I expect to see the transport that's being served, especially if I'd like to use this as the configuration file. Instead, I see the transport of the underlying MCP server.

Steps to reproduce

With some running MCP servers, run:

$ thv list --format mcpservers
A new version of ToolHive is available: v0.2.15
Currently running: v0.2.15-19-gb51cf15a
{
  "mcpServers": {
    "github": {
      "type": "stdio",
      "url": "http://127.0.0.1:30049/sse#github"
    }
  }
}

Expected behavior

I expect to see this instead:

thv list --format mcpservers
A new version of ToolHive is available: v0.2.15
Currently running: v0.2.15-19-gb51cf15a
{
  "mcpServers": {
    "github": {
      "type": "sse",
      "url": "http://127.0.0.1:30049/sse#github"
    }
  }
}

Environment (if relevant)

  • OS/version: Fedora Linux 42.20250904.0 (Silverblue)
  • ToolHive version: v0.2.15-19-gb51cf15a

Additional context

NONE

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggoPull requests that update go code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions