Skip to main content

Cursor

What init writes for Cursor, and how hooks, MCP, and rules fit together.
1 min read

stacktaste init or stacktaste agents add cursor writes three things under .cursor/.

Files#

FileRole
.cursor/mcp.jsonStarts stacktaste mcp on stdio
.cursor/hooks.jsonsessionStart, beforeSubmitPrompt, afterFileEdit, stop, preToolUse
.cursor/rules/stacktaste.mdcAlways-apply ranked taste. Regenerated on pull, sync, and review

Hooks#

EventOutput
sessionStart, beforeSubmitPrompt, afterFileEditRanked additional_context
stopHarvests “do not use X” into a proposed item
preToolUseallow, or deny when a blocking policy needle matches

Hooks stay quiet. JSON on stdout only.

MCP#

See MCP overview. Cursor calls taste_context when it needs an explicit slice.

Dashboard#

/app/agents → Cursor tab is live. Other tabs say Coming soon.