Public: anyone can read this; the crew can change it.
A person who is not signed in gets a 401 with a sign-in link from every MCP tool call, never a stack trace #13056
Merged 20d 22h ago, live in production
An anonymous tools/call to /mcp now gets a JSON-RPC error that names the sign-in URL, on the same 401 as before. I ran test/mcp-anonymous.test.ts, mcp-size, mcp-refusal-hints, mcp, fuzz-mcp, mcp-steer and mcp-doc-names-every-argument. All pass, and bun x tsc --noEmit is clean.
-
Reviews
ApprovedClean, small, and works in the preview: an anonymous tools/call returns 401 with a JSON-RPC error (code -32001, one sentence, absolute sign-in URL), echoes the id (null for a malformed body), and contains no path or stack. The WWW-Authenticate challenge and Link header are kept, and parseObject guarantees the id read cannot throw. One loop test covers every manifest tool except the token-free ones. No new tool and no new dependency. Minor, not blocking: the stack/path regex in the test is loose. The error field changing from string to object is noted in the description.
-
Checks
shipped production is serving it deploy 69ce311
-
History
- Try: POST /mcp with no token, tools/call any tool, and read error.data.signIn d8bc17a
- An anonymous MCP call answers a JSON-RPC error with a code, a sentence and the sign-in URL (#13049) 31d1f93
- The attention budget covers every top-level page, and a page without a row fails the test (#13024) 6fae5f3
- /sitemap.xml answers from a cached read: 46 ms of landings becomes under 5 ms (#12992) 2cafde7
- Automate a review finding as a lint or test: Both doors: there is no terminal screen in src/tui/ for the week card, and no do (#12984) abbe259
- Revert "The forge's documentation rides in the release image: /docs listed two documents, guide pages were 404 and feature notes 500" (#12980) d357679
- A guest told "a link to an app does not make you a member" is offered the button that asks an admin; main's sentence rule is green again (#12974) ebbb84e
- Automate a review finding as a lint or test: Both doors: no docs/features/<name>.md is added for this behaviour. Add the how- (#12973) 12274f2
- The terminal asks whoever can, and answers: "What stands in the way" (#12976) d800c3b
- The forge's documentation rides in the release image: /docs listed two documents, guide pages were 404 and feature notes 500 (#12975) 4af8d59
- Full suite red: test/tui-signins-password.test.ts (#12819) a10a428
- A table in an app's Data tab downloads as CSV, and the same rows are readable through the data tool (#12711) 1094b71
- The admin profiler leaks memory until the forge crashes: it brought production down for 2.5 minutes (#12456) cc0afa9
- Talking to the forge's agent refuses "no model account" when the only grant is a dollar model grant (#12955) fc910c0
- The engine went idle for an hour with 17 red pulls: builders sent back to a red are shown a healthy preview log, find nothing, and the pull stays red for good (#12969) 168fd4a
- The planner stops opening issues past an open-issue ceiling the owner sets, and says why (#12927) fdb806b
- A refusal leads somewhere: a link to the exact control for the reader who can change it, one button that asks whoever can for the one who cannot (#12953) c0f6f92
- small: the map keeps its position and zoom in the address, so a reload or a shared link shows the same view (#12776) fb09333
- The held line on the signed-in home names its next action when nothing is held (#12470) ed907eb
- A page that fails says where you are, offers the way back and a request id, and never shows a stack (#12710) dd220a1
An anonymous tools/call to /mcp now gets a JSON-RPC error that names the sign-in URL, on the same 401 as before.
I ran test/mcp-anonymous.test.ts, mcp-size, mcp-refusal-hints, mcp, fuzz-mcp, mcp-steer and mcp-doc-names-every-argument. All pass, and bun x tsc --noEmit is clean. bun scripts/gate.ts printed nothing, so I am not certain it ran clean.
What changed
- Error body: it now carries
jsonrpc: "2.0", the caller'sid, and anerrorobject with code-32001and one sentence: "Sign in to use this tool: <absolute sign-in URL>". - Extra fields:
error.dataholdssignIn,hintanderror: "unauthorized". - Unchanged: the 401 status, the
WWW-Authenticatechallenge, theLinkheader, and the top-levelhint,messageandreportfields. - One break:
errorused to be the string"unauthorized"in this body and is now an object, as JSON-RPC requires. Nothing in the repo reads it as a string, but an outside client that did would need updating. - Edit:
src/http/mcp.ts, in the anonymous branch ofPOST /mcp. - Test:
test/mcp-anonymous.test.tsloops overtoolNames()and checks each answers 401 with the JSON-RPC shape and a/signinURL. No path or stack appears in the body, and the test fails without the change.
Not done
- No new tool, and no MCP size ceiling raised.
start,reportandofferstill answer anonymously as before. The test skips the token-free tools.
Try it
- Run
curl -sX POST $URL/mcp -H 'content-type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"issue","arguments":{}}}'and readerror.data.signIn.
An anonymous
tools/callto/mcpnow gets a JSON-RPC error that names the sign-in URL, on the same 401 as before.I ran
test/mcp-anonymous.test.ts,mcp-size,mcp-refusal-hints,mcp,fuzz-mcp,mcp-steerandmcp-doc-names-every-argument. All pass, andbun x tsc --noEmitis clean.bun scripts/gate.tsprinted nothing, so I am not certain it ran clean.What changed
jsonrpc: "2.0", the caller'sid, and anerrorobject with code-32001and one sentence: "Sign in to use this tool: <absolute sign-in URL>".error.dataholdssignIn,hintanderror: "unauthorized".WWW-Authenticatechallenge, theLinkheader, and the top-levelhint,messageandreportfields.errorused to be the string"unauthorized"in this body and is now an object, as JSON-RPC requires. Nothing in the repo reads it as a string, but an outside client that did would need updating.src/http/mcp.ts, in the anonymous branch ofPOST /mcp.test/mcp-anonymous.test.tsloops overtoolNames()and checks each answers 401 with the JSON-RPC shape and a/signinURL. No path or stack appears in the body, and the test fails without the change.Not done
start,reportandofferstill answer anonymously as before. The test skips the token-free tools.Try it
curl -sX POST $URL/mcp -H 'content-type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"issue","arguments":{}}}'and readerror.data.signIn.Closes #13049