mcp-searxng: 'Already connected to a transport' error with Llama.cpp over HTTP
I'm running mcp-searxng on Arch Linux (installed via npm) and connecting it in HTTP mode to Llama.cpp. I get the error "Already connected to a transport. Call close() before...", even after updating everything. Is there a fix or a workaround for this?
Originally asked on GitHub: https://github.com/ihor-sokoliuk/mcp-searxng/issues/68
3 answers
Status: fixed in mcp-searxng 1.0.3. The maintainer confirmed the fix is included in the latest release and asked users to update to that version; the issue is closed as completed.
To resolve the error:
- Upgrade mcp-searxng to version 1.0.3 (npm or your usual install method).
- Restart the MCP server so the new version is loaded.
- Reconnect it to Llama.cpp in HTTP mode.
If you use the Docker image, note that a new image needed to be built after the fix was merged, so make sure you are not still on the previous image/tag. Before the release, one user confirmed the error no longer appeared when running commit
f55fb6672a5a47a7eb218fc1fb6313c2d149e093, so that commit is a working interim option if you build from source.General advice: the message "Already connected to a transport" means the server process still has an open transport connection, so if the error persists after upgrading, verify the old server process is fully stopped before starting the new one.
Did this work for you?What a GitHub user tried on GitHub (Didn't work)
Reporter connected mcp-searxng in HTTP mode to Llama.cpp on Arch Linux (installed via npm, everything updated) and got the "Already connected to a transport. Call close() before..." error.
Source: https://github.com/ihor-sokoliuk/mcp-searxng/issues/68 (opens external site)
Did this work for you?What @twstagg tried on GitHub (Worked)
Commenter tested commit f55fb6672a5a47a7eb218fc1fb6313c2d149e093 and reported the error was gone with that commit.
Source: https://github.com/ihor-sokoliuk/mcp-searxng/issues/68#issuecomment-4186018752 (opens external site)
Did this work for you?
Related questions
- How to fix 'MCP error -32000: Connection closed' when configuring mcp-searxng with npx?
- mcp-searxng in Claude Desktop: Unable to load package.json from AnthropicClaude app dir
- mcp-searxng: time_range fails zod validation because default '' is not in the enum
- mcp-searxng shows raw searxng_web_search tag in Roo Code instead of tool result
- Does mcp-searxng support PROXY_URL for proxy configuration?