Skip to content

MCP server development, named by 12 of 26 clients

A public endpoint whose tools change things

Give an agent a key
that only opens one door.

So press the button. It opens a real session against the live server, writes something inside the grant, then tries two things one step outside it and shows you what came back.

This drives the same endpoint your Claude would connect to. Nothing here is a recording.

Read-only tools are easy to hand out. The question that decides whether anybody trusts an agent with a write is where the check lives, and a rule written into a prompt is a request: the model can be talked out of it, and a model that has been talked out of it still reports success.

Or point your own Claude at it

claude mcp add --transport http aoc https://www.ayushopchauhan.com/api/mcp

Ask it to open a session, then ask it to write into a collection that is not yours. Watch it be told which grant it would need. The transport hands the session id back in the Mcp-Session-Id header, so a compliant client starts sending it on its own and the tool list changes without anybody doing anything.

Four things it does that a permission check does not

01

The check runs at the write, not at connect

A session is looked up on every call, so an expired or narrowed grant takes effect on the next request rather than the next reconnect. Everything in lib/mcp/store.ts calls the same decision function before it touches the database, and none of those functions takes an argument that skips it.

02

The tool list is filtered by the grant

A session that was not granted delete is not offered delete_note. Most servers advertise every tool and check permission when it is called, which turns the list into a menu of things to try. Filtering the list means the model never forms the intention, and the call is checked anyway.

03

A refusal names the grant that was missing

Not "forbidden". An agent told only that something failed retries the same call. An agent told it needs the "delete" operation, and that it holds "read" and "write", can either ask for a wider session or stop.

04

Refusals are logged as loudly as successes

Every attempt is written to the audit table with the collection it named, the grant that was missing, and how long it took. A log that only records what worked tells you nothing about what was attempted, which is the half an auditor cares about.

What everyone else has been doing to it

The last 24 calls from every visitor, 0 of them refused. Content is left out; this is who did what, not what they wrote.

07:10:02allowedopen_sessionguest-917fd9e16578
07:07:02allowedopen_sessionguest-21f19de5f481
07:00:01allowedopen_sessionguest-a412dddcba74
06:50:02allowedopen_sessionguest-b5f28f78c93e
06:40:02allowedopen_sessionguest-00b024b515cb
06:30:02allowedopen_sessionguest-d9caf0515495
06:20:01allowedopen_sessionguest-cacdd12b905b
06:10:02allowedopen_sessionguest-6cb4752f16ee
06:07:02allowedopen_sessionguest-f30441517789
06:00:03allowedopen_sessionguest-b39ac5c43f88
05:50:02allowedopen_sessionguest-1f5613cd0fbf
05:40:02allowedopen_sessionguest-bc85d14a6fad
05:30:02allowedopen_sessionguest-171015bfd944
05:20:02allowedopen_sessionguest-82c3c266a520
05:10:03allowedopen_sessionguest-0e7933c05965
05:07:02allowedopen_sessionguest-3cac49848b9e
05:00:02allowedopen_sessionguest-83355d8d94ac
04:50:02allowedopen_sessionguest-1328fb99b2b9
04:40:02allowedopen_sessionguest-18e336f578f0
04:30:02allowedopen_sessionguest-867f3bc1a68b
04:20:02allowedopen_sessionguest-ee7861398362
04:10:02allowedopen_sessionguest-9ff451c00c0a
04:07:02allowedopen_sessionguest-f97c01e6e1a1
04:00:03allowedopen_sessionguest-d35ff8af6bd7

What this is not

There is no login. A session id is the only credential, anyone holding one can use it, and it lasts an hour. That is the right shape for a public demonstration and the wrong shape for real data, where the session would be issued against an identity rather than to whoever asked.

The documents are notes in a table. Pointing the same boundary at something that matters is a change of storage.

53 unit tests cover the decision function and 54 more drive this endpoint over HTTP. Both suites exist because a boundary that is correct and not wired in is the same as no boundary, and only the second kind of test can tell you which one you have.

The same server also carries the read-only tools behind the site console. The address guard is a box you can attack, the eval scores the engine on precision and recall, the token measurement prices the same question four ways, and every defect any of it has had is written down.

Agents · MCP server development · 12 of 26 clients asked for it

Need this on your own system?

Tell me what is broken. I will tell you what it takes, honestly, including when the answer is that it is not worth building. The code ends up in your account, not mine.