Skip to main content

MCP and hooks

What Cursor launches. StackTaste Alert lives here.
1 min read

You do not start these. Cursor does. They print JSON only — no prompts.

MCP#

stacktaste mcp is stdio. Cursor reads .cursor/mcp.json and launches the same binary that ran init. Logged in, tools can create and review over the API. See MCP overview.

Hooks#

stacktaste hook <event> reads JSON on stdin.

EventRole
sessionStart, beforeSubmitPrompt, afterFileEditRanked taste
stopHarvest a correction into a proposed item
preToolUse, beforeShellExecution, beforeMCPExecutionGate

After a CLI upgrade, run stacktaste agents add cursor so the new gate events are in .cursor/hooks.json.

StackTaste Alert#

When a blocking policy matches a tool, shell command, or MCP call:

  1. The call is denied. The agent cannot run it.
  2. The user sees StackTaste Alert, the policy title, and the full why.
  3. The agent is told to ask the user about an exception, wait for an explicit yes, and not retry or work around the block.
Warning

Confirming in chat does not turn the policy off. Propose an exception, then accept it from stacktaste review or the dashboard. The original policy still matches until it is changed.