r/ClaudeCode • u/TwistNo5735 • 5h ago
Built with Claude I spent two weeks fixing my MCP server's setup instead of adding features. Here's what broke and what I changed
I maintain CogniCore, an open-source memory server for Claude Code, Codex, Cursor and other MCP clients. It saves your session context so a new chat picks up where the last one stopped.
People installed it and then quietly gave up. So I stopped building features and fixed setup. Here's what I found.
Repo: https://github.com/cognicore-dev/cognicore-env (Apache 2.0)
What was actually broken
- My Claude Desktop docs never worked. The package name and the command differ, so
uvxneeds--from. Mine didn't have it. Anyone who copied the config got a server that never started, with no useful error, and nobody reported it. People don't file bugs about setup, they just leave. - Every client wants different field names. VS Code uses
servers(notmcpServers) and needs atype. Cline wantsstreamableHttp. Windsurf usesserverUrlinstead ofurl. Get one wrong and it often fails silently. - My own diagnostic tool crashed on Windows whenever its output was piped, because it printed a ✓ that Windows' default encoding can't handle.
- My own Codex setup was half-installed. The MCP server was configured, but the hooks that save sessions automatically were missing. I only found out when I built a proper check.
What I changed (merged)
- A one-line install for Claude Code at the top of the README, with no JSON to edit:
claude mcp add cognicore -- uvx --from "cognicore-env[mcp]==0.13.0" cognicore-mcp
For the hosted server it's claude mcp add --transport http …, and without --transport http the URL gets treated as a local command.
- Copy-paste config blocks for Cursor, VS Code, Cline and Windsurf, each with that client's real field names.
- Every
uvxcommand pinned to an exact version, with a test that fails CI if the docs fall behind the package version. - A plain table of what the server stores and where it sends anything. By default nothing leaves your machine, and each opt-in names its destination.
- Security updates for six dependencies in the shipped package.
What's in review: cognicore doctor
One command that checks the whole chain instead of just "is Python installed":
- Local server: the SDK is installed, the module loads, the command is on PATH
- Hosted server:
/healthresponds, and shows which commit is live - Sign-in: your token is accepted (skipped, not failed, if you never signed in)
- Hooks: installed and enabled for each client it finds
- An end-to-end test: saves a tagged memory, recalls it, deletes it
Every failure prints a fix: line. Each network call times out after 3 seconds, a crashing check doesn't stop the rest, and --offline skips the network entirely.
Lessons if you ship an MCP server
- Test your install docs on a clean machine. Your own machine lies to you.
- Pin launcher versions.
uvx pkgwith no version means every user runs something different. - Build a doctor command early. It found two real problems on my own machine the first time I ran it.
Next: fixing OAuth for Cursor (it sends a custom-scheme callback alongside localhost ones, and my server rejected the whole registration), then a first-use prompt so people actually make their first tool call.
What setup problems have you hit with MCP servers? Are there client quirks I've missed (Zed, JetBrains, Gemini CLI)?
•
u/AutoModerator 5h ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/tristan_laroubine 1h ago
"People don't file bugs about setup, they just leave" is exactly it. What finally showed me where they left was the server side: the OAuth client name at sign-in tells me which agent they connected from, and I keep a list of accounts that signed up but never made a first tool call. Before that I only had silence. Did your check come from someone finally reporting it, or from testing each client yourself?