Skip to content

Moving transport from SSE to streamable-http, docker containers restarting #1357

Not planned

Description

@dennisnoto-etana

have been running servers in SSE transport mode. Try to switch to http streamable mode but docker containers constantly restart. mcp fetch server is the only one that I could switch.

brave-search-mcp-server does not work
thv run --transport streamable-http --name web-search --proxy-port 2101 --env BRAVE_API_KEY=yourkey --env BRAVE_MCP_TRANSPORT=stdio npx://brave/brave-search-mcp-server

filesystem does not work

thv run --transport streamable-http --name filesystem --proxy-port 2102 --volume /Users/dennisnoto/Documents/NotoData-Dev/MCP/mcp_data/common_data:/projects filesystem -- /projects

mcp-py-repl does not work
thv run --transport streamable-http --name python-interpreter --proxy-port 2103 --volume /Users/dennisnoto/Documents/NotoData-Dev/MCP/mcp_data/common_data:/mnt/data/ ghcr.io/evalstate/mcp-py-repl:latest -- run -i --rm --pull=always

My own mcp server does not work
thv run --transport streamable-http --name etana-trade-mcp --proxy-port 2106 --volume /Users/dennisnoto/Documents/NotoData-Dev/MCP/mcp_data/etana-trade-mcp/data:/app/data/ uvx://etana-trade-mcp

All work for SSE transport mode, but all restart when adding transport param. What am I missing here?

thv logs show

0m MCP server not initialized yet, skipping health check for .....
0m MCP server not initialized yet, skipping health check for filesystem
0m MCP server not initialized yet, skipping health check for python-interpreter
0m MCP server not initialized yet, skipping health check for web-search

Activity

  1. added
    bug
    on Aug 11, 2025
  2. changed the title [-]Moving from SSE to http-streamable, mcp servers restarting[/-] [+]Moving from SSE to streamable-http, mcp servers restarting[/+] on Aug 11, 2025
  3. changed the title [-]Moving from SSE to streamable-http, mcp servers restarting[/-] [+]Moving transport from SSE to streamable-http, mcp servers restarting[/+] on Aug 11, 2025
  4. changed the title [-]Moving transport from SSE to streamable-http, mcp servers restarting[/-] [+]Moving transport from SSE to streamable-http, docker containers restarting[/+] on Aug 11, 2025
  5. jhrozek commented on Aug 18, 2025

    @jhrozek
    Contributor

    hey @dennisnoto-etana I'll take a look to get to the root of it. Thanks for filing the issue!

  6. jhrozek commented on Aug 18, 2025

    @jhrozek
    Contributor

    I apologize for the delay @dennisnoto-etana. I wonder if the root cause is a bad description of the --transport flag versus the --proxy-mode flag. The --transport flag controls how you talk to the MCP server whereas the --proxy-mode flag controls what you expose by the proxy to the outside world (e.g your IDE).

    If you want to expose your brave search MCP server as a streamable http you likely want:

    thv run --name web-search --proxy-port 2101 --proxy-mode streamable-http --foreground --env BRAVE_API_KEY=yourkey --env BRAVE_MCP_TRANSPORT=stdio npx://brave/brave-search-mcp-server
    

    Then I was able to at least connect with MCP inspector to http://localhost:2101/mcp and list tools.

    Let us know if this helps.

  7. JAORMX commented on Sep 11, 2025

    @JAORMX
    Collaborator

    Any updates on this issue? Is it still a problem?

  8. mabunixda commented on Sep 26, 2025

    @mabunixda

    @jhrozek when you deploy this one on Kubernetes, the proxy container will not transfer to the running state because the health check is not okay.

    I got the same issue with mcp/youtube-transcode .. it is running on proxyMode: sse but does not work with proxyMode: streamable-http

    I wanted to switch over because open-webui is starting to support mcp servers as streamable as experimental feature

    is this related to #817 ? this issue is not solved/closed ...

  9. JAORMX commented on Sep 26, 2025

    @JAORMX
    Collaborator

    Gotcha, that's good to know. we'll get this sorted @mabunixda !

  10. jhrozek commented on Nov 24, 2026

    @jhrozek
    Contributor

    Closing this one. --transport sets how ToolHive talks to the MCP server (stdio in these examples). --proxy-mode controls what the proxy exposes to clients, so thv run --proxy-mode streamable-http ... is probably what you want.

    If the containers still restart with that flag, please reopen with the output of thv logs. The Kubernetes health-check report in the thread should go in its own issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions