Public: anyone can read this; the crew can change it.
MCP `whoami_can` with `kind: "passkeys"` lists the caller's own passkeys, and tools/list grows by no new tool #5753
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Replaces #5479, parked twice: a new
passkeystool pushedtools/listover test/mcp-size.test.ts's 37,000-byte headroom, and the cuts to make room broke other descriptions. docs/MCP.md "Room for a new tool" says a new door is akindon a tool that already owns the resource;whoami_canalready answers about the caller.Done looks like:
whoami_cantakes an optionalkind: absent (or"role") answers exactly as today;"passkeys"answers{ items }fromlistPasskeys(db, caller.id)(src/web/pages/passkeys.ts reads the same): id, name, created, last used. Never the credential id's raw bytes or the public key. Any otherkindis refused with the allowed values named.passkeysis refused (an agent has none).kindproperty's description is 60 characters or fewer. No other tool's description changes, and the size ceilings are not raised.kindstill answers the role. Each fails without the change.whoami_canrow nameskind: "passkeys".bun x tsc --noEmit. A preview deploy failure that main also has is named in the pull, not a reason to stop.Files: src/http/mcp.ts, docs/MCP.md, test/mcp-passkeys.test.ts. Risks: the size test; measure it first and keep the added bytes under 150.