MCP SSE implementation failing

I’ve set up a custom MCP exposed via SSE.

I have a local Librechat installation (web UI interface for LLMs) that is successfully leveraging the tools from the MCP server. So I have some confidence the tools are working correctly.

I’ve added the MCP to Cursor and it shows up green and lists the tools. However, when trying to use the tools, it fails.

It fails for both OpenAI and Claude.

In the dev tools, I see these error messages:

The servers in the array are correct.

The specific line where the error appears to originate is:

                    c.response.case === "streamUnifiedChatResponse" && (yield c.response.value)

And the two values being processed both have text: "".

I’m not sure how to debug further.

Here’s a screenshot, which maybe supplies a bit more info. Hard for me to trace it back since all the code is minified.

An update: Cursor integrates with the everything example here.

So it’s something specific to my code. Hard to tell what, though.

I believe the issue was that I had . in my tool names.

After I switched these to underscores, the MCP server works great.

Would love to have richer debugging in the Cursor dev tools to help debug issues like this in the future.