Skip to main content
Glama
lipey1

Cursor Agent MCP

by lipey1

cursor_agent_edit_file

Edit a file by describing the changes in natural language. Provide the file path and an instruction, and the agent applies the edit.

Instructions

Edit a file with an instruction (prompt-based wrapper).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNo
fileYes
applyNo
forceNoPass --force / --yolo so the agent can run shell without prompts. Env: CURSOR_AGENT_FORCE.
modelNoModel id for the CLI (e.g. auto, gpt-5, composer-2). Overrides CURSOR_AGENT_MODEL.
trustNoPass --trust (default true). Env: CURSOR_AGENT_TRUST.
promptNo
api_keyNoCursor API key (crsr_…). Prefer CURSOR_API_KEY / CURSOR_AGENT_API_KEY in MCP env.
dry_runNo
config_dirNoExplicit CURSOR_CONFIG_DIR override. Implies isolated config for this call.
executableNo
extra_argsNo
bare_configNoUse an isolated CURSOR_CONFIG_DIR (~/.cursor-agent-mcp by default) so the CLI does not load user MCPs/plugins. Much faster startup. Env: CURSOR_AGENT_BARE_CONFIG=1.
echo_promptNo
instructionYes
output_formatNotext
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided. Description does not disclose any behavioral aspects such as side effects, permissions required, or destructiveness. 'Edit' implies mutation but no further transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence is concise, but at the cost of under-specification. Could be more informative while remaining brief.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 16 parameters, 38% schema coverage, no output schema, and many sibling tools, the description is extremely insufficient. Lacks details on edit behavior, output, and differentiation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 38%. Description adds no meaning beyond what is in the schema. Does not explain how parameters interact or typical usage patterns.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the verb 'edit', the resource 'file', and the mechanism 'with an instruction (prompt-based wrapper)'. Distinguishes from sibling tools like cursor_agent_chat or cursor_agent_search_repo which do not edit files.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool vs siblings (e.g., cursor_agent_raw or cursor_agent_chat). No prerequisites, exclusions, or context for appropriate use.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lipey1/cursor-agent-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server