Skip to main content

mcp and hook

Stdio helpers Cursor launches. Do not run these by hand unless debugging.
1 min read

Cursor starts these. They print JSON only. No Clack UI.

mcp uses the CLI host (API when a token exists). See MCP overview.

hook <event> reads JSON on stdin. Events: sessionStart, beforeSubmitPrompt, afterFileEdit, stop, preToolUse.