ITADN

[BUG]: HTTP MCP Server only shows in UI when "type" is incorrect.

#5917OpenSelfDrivingCarp 创建于 2026-06-26
possible buginvestigating
S
SelfDrivingCarpcommented
### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? AnythingLLM desktop on Mac v1.15.0 for Apple Silicon System is MacBook Pro with M4 Pro OS Is Tahoe 26.5.1 AnythingLLM only shows me an MCP server if the configuration is wrong. I have an HTTP MCP server running on `localhost:8080`. I'm the author of this MCP server. Cursor can interact with it just fine. If I have this config: ```json { "mcpServers": { "mytest": { "url": "http://127.0.0.1:8080" } } } ``` I hit _Refresh_ in the _MCP Servers_ section and I see "Mytest Stopped". When I click on it the details panel shows `Failed to start MCP server: mytest [NO_CODE] MCP server type must have sse or streamable value.`. The docs say "If not provided, sse is assumed." I change the config to the following and it _Refresh_: ```json { "mcpServers": { "mytest": { "type": "sse", "url": "http://127.0.0.1:8080" } } } ``` _Mytest_ disappears from the list and the list now says "No MCP servers found". I change `type` to `streamable` and _Mytest Stopped_ appears in the list. In the details is the error `Failed to start MCP server: mytest [400] Streamable HTTP error: Error POSTing to endpoint: sessionid must be provided`. The error is expected as the server is set for SSE. I switch the MCP server to use Streamable and restart it. `type` is still set to `streamable`. The _Mytest_ entry disappears from the list. I switch the config to `type` `sse` (again, mismatching) and hit _Refresh_. _Mytest_ reappears in the list and the details has the error `Failed to start MCP server: mytest [400] SSE error: Non-200 status code (400)`. ### Are there known steps to reproduce? _No response_ ### LLM Provider & Model (if applicable) oMLX using Generic API with Qwen 3.5. Ollama and Gemma4 ### Embedder Provider & Model (if applicable) _No response_
5 条评论