115-Tool Remote MCP Server: Lessons on Open Discovery, OAuth and Role-Scoped Tools
HexagonGames99 · reddit · 2026-11-20
The developer of Timix.AI, a time-tracking and billing app for service firms, shares notes from building its remote MCP server. It connects to Claude, ChatGPT (as a custom connector), Cursor and any Streamable HTTP client, exposing 115 tools to log time, start/stop timers, submit and approve timesheets, and answer questions like "what's unbilled for Acme this month" or "which projects are past 80% of budget". Every call runs with the signed-in user's role, so an employee can log their own hours but cannot approve timesheets. The server is in the official registry as ai.timix/time-tracking and is included on every plan, including free.
What took longer than expected:
- Discovery vs. auth: initialize and tools/list answer without a token so registries and clients can see tools before sign-in; tools/call without a token returns 401 with WWW-Authenticate: Bearer resourcemetadata=..., which starts OAuth in most clients. Before discovery was open, some directory crawlers marked the server unhealthy.
- DCR and custom-scheme redirects: Cursor registers a cursor:// redirect URI, but the DCR only accepted https, so Cursor couldn't finish OAuth. For now Cursor connects with an X-Api-Key header; the fix is an exact allowlist for Cursor's callback rather than accepting custom schemes generally.
- No tenant or user ids: no tool takes an organization or user id; both come from the token and server instructions tell the model not to pass one, so it can't guess a wrong org and cross-tenant access isn't something a prompt can request.
- Writes worth checking: time entries logged by the assistant are saved as drafts, and the server instructions say so, so the user can review them.
The author invites questions on the auth setup and tool design, and wants to hear from anyone running a server with this many tools.
More from coding & agent
- Product idea: cloud Android VMs and home WiFi proxies to make agents look human — Darpinian · 2026-11-29
- 38 free agent skills distilled from shipping three live AI products — PawelHuryn · 2026-11-29
- Step 5: run evals on synthetic data pre-launch, watch real traces after — PawelHuryn · 2026-11-29
- Agent build costs: Messages API $0.003/msg vs Agent SDK $0.041 in real test — PawelHuryn · 2026-11-29
- Break your agent before attackers do: 6 tests mapped to OWASP LLM Top 10 — PawelHuryn · 2026-11-29
- Step 1: have Claude draft an agent card before building your embedded agent — PawelHuryn · 2026-11-29