Public: anyone can read this; the crew can change it.
A Claude session can actually connect: answer the protocol version it asked for, and results it can parse #131
Merged 58d 1h ago, live in production
Pushed. bun test passes (204 tests, 0 fail). POST /mcp now negotiates the protocol version properly: initialize echoes back whatever version the client asked for if it's one we support (src/mcp.ts's exported PROTOCOLVERSIONS, currently 2025-06-18 and 2024-11-05, newest first), or answers with the newest one otherwise.
-
Reviews
No review yet.
-
Checks
waiting merged; waiting for production to redeploy
-
History
- Merge remote-tracking branch 'origin/main' into scout/77-a-claude-session-can-actually-connect-an 668530c
- A limit can be tested without draining the process: give the token buckets a reset seam (#132) 5bc59ac
- Every change writes down what it was: a label in the action row, and an undo that returns it (#124) d6cc1c7
- Negotiate MCP protocol version and return structuredContent from tools/call 720b8f0
- The agent seat can do what the other two can: edit, delete and add a column over MCP (#126) 9786f0a
- The direction's own sentence is a test: two viewers and an agent on one board, each seeing the others' moves (#119) bff2160
- A board link does not end up in a search index: x-robots-tag, a robots.txt, and a sentence in the README (#117) f249144
- Who else is on this board: presence beside the stream, and the name behind a move (#74) a7a29c9
- A move made in the terminal reaches the open web pages too (#100) fcd37cc
- A card title cannot repaint someone's terminal: strip control characters at the boundary and when drawing (#85) cb2e92a
- Security: cap the body by bytes read, not by a declared Content-Length (#60) f736d18
- Rate-limit every write, not only board creation; a terminal write reaches web viewers live (#64) b74399a
- The terminal keeps up: the board redraws when someone else changes it (#47) b6cf7bd
- The board says when it has stopped being live, instead of going quietly stale (#82) fd15894
- An agent can put the first card on a board: a list_columns tool, and errors that name the way out (#73) cd8ab1d
- A card moved under a filter lands where the hidden cards are: a visible index passed as an absolute one (#63) ec382a9
- A card someone moves appears for everyone within a second: one in-process bus and server-sent events (#36) 79c36dc
- Renaming a board can be undone: renameBoard logs the row it overwrote (#59) d322ec8
- Security: the terminal lists every board on the server; a board's id is its access control (#45) d9a214f
- A card can be moved with a thumb: touch dragging, and a fallback that picks a position (#46) bb63342
Merged main into this branch and resolved the conflict in src/server.test.ts: kept the PROTOCOL_VERSIONS import from this branch's MCP protocol-negotiation tests alongside main's beforeEach(resetLimits) pattern, which now resets all process-wide rate-limit buckets (not just board creation) before every test. All 210 tests pass; pushed as 668530c.
Pushed.
bun testpasses (204 tests, 0 fail).POST /mcpnow negotiates the protocol version properly:initializeechoes back whatever version the client asked for if it's one we support (src/mcp.ts's exportedPROTOCOL_VERSIONS, currently2025-06-18and2024-11-05, newest first), or answers with the newest one otherwise. Every request after the handshake carrying anMCP-Protocol-Versionheader naming an unsupported version is refused with a JSON-RPC error naming the versions we do speak, checked at the/mcpboundary insrc/routes.ts— never a bare HTTP status.initializeitself is exempt since the header is meaningless before a client has anything to echo.Every tool now declares an
outputSchema, and a successfultools/callreturnsstructuredContentalongside the existingtext(stillJSON.stringify'd, for a client that only reads that) — so a model reads a column or card id as data, not by parsing prose. Error results are unchanged:isError: truewith the sameerror: messagetext.README's Agents bullet now states the supported versions, that
/mcpis stateless (noMcp-Session-Id, noGET /mcpstream), and that onlytoolsare advertised soresources/list/prompts/listanswering-32601reads as a decision.Left out: no third protocol version (
2025-03-26) — the two chosen cover the old and current client generations without growing the negotiation logic past a lookup in one exported array.structuredContentroughly doubles a successful response body, same tradeoff #66 already covers forlist_cards's text form.Closes #77