stacklok / stacklok/toolhive

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

Open
#1,357 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
2.2k
Forks
300
Avg merge
1d 15h
Merged PRs (30d)
184

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the listed thv run commands with streamable-http and compare their logs with the working SSE mode. Trace the container startup and health-check behavior around “MCP server not initialized yet”; done means the affected containers stay running and complete initialization under streamable-http.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
infrastructure, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.