Docs
Change impact analysis MCP for Cursor
This is a local stdio server. It uses the same impact engine as arc impact. It reads TypeScript, JavaScript, Python, and PHP. The repository stays on the machine.
Setup
In the project folder, run npx arcsight init. That writes .cursor/mcp.json, the Claude Code config, and the agent rules. Cursor starts the server with the project as the working directory. A path outside that project is refused. The block below is the same Cursor file, if you want to read it.
{
"mcpServers": {
"arcsight": {
"command": "arcsight",
"args": ["mcp"]
}
}
}Tools
check_file_impact
Hub size and the direct callers of one file. Read decision first. high means the count is over max. path is required.
check_diff_impact
Combined blast radius and the direct callers of the changed files. Read decision first. high means the count is over max. paths is required.
plan_fix
Call it only when you asked for a mechanical fix of a cycle, a layer edge, or an unused import. Pass confirm mechanical. It writes nothing. Skip it for a behavior change.
architecture_status
Primary language, top hubs, open boundaries, and the unresolved file count. Call it when impact evidence did not run or the caller set is unknown. Writes nothing.
Status
The server sets status in this order. ok means the count is within max, the target has no unresolved import, and no layer boundary is crossed. high means the count is over max. For one file, the count is the size of the hub. For a set of files, the count is their combined blast radius. The default max is 20. incomplete means the target has an unresolved import, so the caller set is unknown. blocked means a layer boundary is crossed, and the result names the from file and the to file. A boundary replaces incomplete. Incomplete replaces high.
Result
decision comes first. A known file names no importer. A skipped path is repeated at the end when the status is ok or high. directCallers lists every importer in the dependency graph when callerSet is known. count and affectedCount are the blast radius, or null when the caller set is unknown. The modules that do not import the target are affected, included only when includeAffected is true. next is arc impact plus the target path.
Questions
- Does the server upload the repository?
- The server speaks stdio on the machine. The repository stays on the machine.
- Does plan_fix edit files?
- plan_fix writes nothing. It returns the arc fix --prompt plan for mechanical fixes.
- What does status high mean?
- high means the count is over max. For one file, the count is the size of the hub. For a set of files, the count is their combined blast radius. The default max is 20.