MCP connection issues
MCP server won't connect
Checklist, in order:
- Token works? Run the curl test in API errors. 401 → fix the token first.
- URL right?
https://api.writemars.com/mcp/— note it's the API domain (api.writemars.com), not the app domain (writemars.com). - Header name right? Exactly
X-API-Key. - Transport right? It's Streamable HTTP — in Claude Code that's
--transport http, notsse. - Test the protocol by hand:
A JSON response listing 26 tools means the server side is healthy and the issue is client config.curl -s -X POST https://api.writemars.com/mcp/ \-H "X-API-Key: writemars_pat_..." -H "Content-Type: application/json" \-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
- Claude Code:
claude mcp listshows per-server status;claude mcp remove writemars+ re-add fixes a stale token. Full setup in Claude Code. - Claude Desktop: native connectors can't send custom headers — you must use the
mcp-remotebridge (setup), which needs Node.js installed.
Codex
codex mcp get writemarsprints the resolved config for the server — the fastest way to spot a wrong URL or a missing env var.- The IDE extension reads the same
~/.codex/config.tomlas the CLI, but a GUI-launched editor may not see env vars from your shell profile, sobearer_token_env_varresolves empty. Launch the editor from a terminal (code .) or switch to statichttp_headers. - Very old Codex builds need
experimental_use_rmcp_client = truein~/.codex/config.tomlfor Streamable HTTP; current versions need no flag. Full setup in Codex.
Still lost on what's set up where? Start from the MCP overview.
"The agent created/changed something — where do I see it?"
Open the post in the app → Activity. Post/content actions use the same activity paths as the app and are attributed to the token's owner (you). See Collaboration.