cursor

A setup agent for connecting Marko’s development guidance and MCP server to Cursor, an AI code editor based on VS Code. It writes project rules, MCP registration, and shared agent guidance files.

In plain words
What is it for?
Use it to configure Cursor for a Marko project, register the Marko MCP server, and generate always-applied Marko coding guidelines.
Why use it?
It avoids manually creating Cursor configuration and keeps Marko’s project rules available to the editor.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/marko-php/marko/cursor
Clone the repo
git clone --depth 1 https://github.com/marko-php/marko
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 743 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00024 $0.00743
Opus 5 $0.00012 $0.00371
Sonnet 5 $0.00005 $0.00149
Haiku 4.5 $0.00002 $0.00074

Measured 2d ago against content hash d92ef31649ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cursor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/docs-markdown/docs/ai-assisted-development/agents/cursor.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

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

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

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

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.

Read the full file on GitHub · 58 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 58 lines · 24 tokens per session scan A d92ef31649ec

Subscribe to this mod's changes

cursor is an agent published in the GitHub repository marko-php/marko (393 stars, last pushed 3d ago), licensed MIT. It adds 24 tokens to every session and 743 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.