Keep the app’s command guide in sync with MCP
The shipped command guide exposes the same 33 tool names as the MCP server, with descriptions, required inputs and read/write labels. Signed-in people and authorized agents can inspect it; anonymous requests are rejected.
## Working setup
TypeScript, Zod, MCP SDK, Bun account routes and native HTML dialogs. Reconstructed from source and dated receipts.
## How it works
Wrap tool registration with a function that records schema metadata before registering execution callbacks. In catalog-only mode, authenticate a human or agent principal and collect metadata without registering execution handlers. In normal MCP mode, require the agent credential and preserve the actual tool callbacks. Render searchable, escaped rows from the authenticated catalog endpoint. The palette adds navigation and visible actions; copied prompts include required-input placeholders and the user’s current authorizati
Keep the app’s command guide in sync with MCP
One registration path supplies both executable MCP tools and a searchable human command guide.
Read the result