Cursor
Cursor is an AI-first code editor built on VS Code. devai:install configures it with a .cursor/rules/marko.mdc project rules file and MCP server registration.
Prerequisites
Section titled “Prerequisites”- Cursor installed: cursor.sh/download
marko/devaiinstalled (see Installation)
What devai:install writes
Section titled “What devai:install writes”Running marko devai:install with Cursor detected produces the following files:
.cursor/rules/marko.mdc # Project guidelines and conventions (alwaysApply: true).cursor/mcp.json # MCP server registration (marko mcp:serve)AGENTS.md # Shared guidelines file (devai-managed marker block)Cursor does not implement LSP registration and no skills are distributed for Cursor.
.cursor/rules/marko.mdc
Section titled “.cursor/rules/marko.mdc”The .cursor/rules/marko.mdc file is written with alwaysApply: true frontmatter so it is always included in Cursor’s context. The YAML frontmatter stays the first line of the file; the devai-managed guidelines sit below it inside a <!-- BEGIN/END marko:devai --> marker block, so you can add your own rules outside the markers without losing them on re-run. It contains merged Marko guidelines:
- Module structure and naming conventions
- Available MCP tools and usage patterns
- Project-specific guidelines from every installed package’s
resources/ai/guidelines.md
MCP registration
Section titled “MCP registration”The .cursor/mcp.json file registers marko mcp:serve as an MCP server using the mcpServers key. Cursor’s AI can invoke tools like find_event_observers and validate_module during chat and Composer sessions.
AGENTS.md
Section titled “AGENTS.md”devai:install writes the shared AGENTS.md guidelines inside a <!-- BEGIN/END marko:devai --> marker block: created if absent, and on later runs only the marked region is refreshed, so content you add outside the markers is preserved. Remove the markers to take full ownership — devai then leaves the file alone. See Editing generated files.
Manual verification
Section titled “Manual verification”- Open your project in Cursor.
- Open the AI chat panel and ask:
What Marko MCP tools are available? - Ask:
Search Marko docs for "events"—search_docsshould return results if a docs driver is installed. - Confirm
.cursor/rules/marko.mdcexists and containsalwaysApply: true. - Check that
.cursor/mcp.jsonreferencesmarko mcp:serveundermcpServers.
Agent-specific tips
Section titled “Agent-specific tips”- Composer sessions: Use Cursor’s Composer for multi-file Marko tasks. The
validate_moduletool lets it verify its own output before presenting it to you. - MCP in chat: Type
@mcpin the Cursor chat to surface available MCP tools. The Marko tools appear automatically once.cursor/mcp.jsonis in place.