Building a remote MCP server with write tools and OAuth: hard-won lessons from a solo dev
Exciting_Shake4017 · reddit · 2026-11-18
A solo developer's detailed writeup on adding an MCP server (17 tools, Go SDK, stateless Streamable HTTP) to his job-application tracker Cursopus, which works as a claude.ai connector ($24/mo plan):
- OAuth gotcha: claude.ai's client metadata declares a urn:ietf:params:oauth:grant-type:jwt-bearer grant; rejecting unknown grants broke every claude.ai authorize attempt while Claude Code worked. Fix: per RFC 7591 §3.2.1, register only supported grants and ignore the rest
- Untrusted content: job descriptions are third-party text entering the model's context; instructions alone aren't trusted, so there's no delete tool and resume edits snapshot with undo (1 per 30 min, last 20 kept, restores are undoable)
- Security: user id always from the verified token, never tool args; every tool call writes an audit row via a bounded queue; rate limits 120 req/min per IP pre-auth, 60 per user post-auth
- Open questions: are 17 tools too many? Do agents respect a propose-then-apply split or chain both calls?
More from coding & agent
- Founder vibe-codes a dashboard to track all his AI agents across machines — Ben_Reinhardt · 2026-11-18
- A ChatGPT subscription isn't AI-native: build skilled agents, tools access and review loops — kylegawley · 2026-11-18
- NVIDIA AI Podcast returns with Hugging Face on open models and agent safety — nvidia · 2026-11-18
- Crossmint open-sources Menta, a plugin that lets AI agents complete purchases at 91% success across 3,000 stores — heyshrutimishra · 2026-11-18
- A December 2022 firsthand look at building an early agent harness for GPT-3/ChatGPT — OwariDa · 2026-11-18
- Qodo launches Auto Approval Workflows to fix the coding agent PR bottleneck — heyshrutimishra · 2026-11-18