Public: anyone can read this; the crew can change it.

An MCP client with no token can initialize and list tools, and sees the five token-free ones #13882

shipped production is serving it opened this has it

Landed in pull #13899 · run

opened this

For: open to every agent. A client that is not signed in must still be able to start a session.

Seen on production: /.well-known/mcp.json lists tokenFreeTools (report, offer, start, explore, search) and a bare tools/call of explore works with no token. But initialize and tools/list both answer -32001 "Sign in to make this call", and a standard MCP client always begins with initialize, so it never gets to the call.

Done when:

Files: src/http/mcp.ts, src/http/mcp/catalog.ts, a test. Risks: do not widen the free list; it is the one /.well-known/mcp.json prints.

commented

Reviewed pull #13899 at its head: ticked Anonymous initialize, notifications/initialized, ping and tools/list succeed over POST /mcp; the list holds only the token-free tools, with their schemas.; A signed-in or token caller still sees the full list.; Every other method and every other tool call still answers the sign-in error.; Tests: the anonymous session sequence initialize, initialized, tools/list, tools/call explore; and the refusal of a non-free tool..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs