# CHRONOS-AGENT

> CHRONOS-AGENT is an open-source MCP server for developer tools. Rust MCP server for AST-based symbol editing, refactoring and blast-radius checks in code. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, Windows, VS Code, Self-hosted
- **Repository:** https://github.com/ptai-eng/chronos-agent
- **MCP Registry name:** io.github.ptai-eng/chronos-agent
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-19

## About

The README says CHRONOS-AGENT is a single Rust binary that gives MCP clients a code graph built with Tree-sitter parsing and an embedded KuzuDB database. Instead of relying on grep and line-range reads, it re-parses the target file before each symbol edit and runs a two-stage gate that checks syntax and signature changes against callers.

Refactoring is edge-verified: identifiers are classified from the AST so that real calls, tests and imports are separated from ambiguous candidate sites, and multi-file writes roll back atomically if something fails. The project states that it needs no language server daemon, though an opt-in LSP hydration mode is available in v1.8.1.

The README targets developers using coding agents such as Claude Code, Cursor, Codex or Copilot on repositories in seven language families. Write tools are disabled when the server runs with the readonly flag.

## Features

- **Fresh-parse AST symbol editing:** Edits re-read the file and re-parse it with Tree-sitter before replacing or inserting a symbol body.
- **Two-stage edit gate:** A syntax check and a signature check against callers run before an edit is applied.
- **Edge-verified multi-file rename:** Renames separate verified call and import sites from ambiguous candidates and roll back on failure.
- **Blast-radius analysis:** Reports impact via PageRank, reverse-traversal entrypoints, and Git co-change history.
- **Read-only mode:** A readonly flag hides mutating tools and blocks disk writes while keeping previews available.
- **Sandboxed script engine:** Embedded Rhai scripts run with no filesystem, network or process access and an operation cap.

## Good for

- Renaming a function across a multi-file codebase without touching local variables or comments
- Checking which callers and tests a signature change would affect before editing
- Giving a coding agent a single-call context lookup instead of repeated grep and file reads
- Finding runtime hotspots and nested loop depth in a project

## Install

### Claude Code (Terminal)

```sh
claude mcp add chronos-agent -- docker run -i --rm ghcr.io/ptai-eng/chronos-agent:1.8.1
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "chronos-agent": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/ptai-eng/chronos-agent:1.8.1"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "chronos-agent": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/ptai-eng/chronos-agent:1.8.1"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "chronos-agent": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/ptai-eng/chronos-agent:1.8.1"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "chronos-agent": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/ptai-eng/chronos-agent:1.8.1"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "chronos-agent": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/ptai-eng/chronos-agent:1.8.1"
      ]
    }
  }
}
```

## Tools

- `chronos_analyze_file`: Parse a source file, sync the graph, and run a review audit.
- `chronos_query_hotspots`: Rank runtime bottlenecks, PageRank hubs and nested loop hotspots.
- `chronos_blast_radius`: Compute blast radius, verification surfaces and co-change data.
- `chronos_mutation_gate`: Run covering tests against mutant builds.
- `chronos_contract_status`: Drain queued contract alerts from the pre-tool gate.
- `chronos_query_graph`: Run read-only OpenCypher queries over the knowledge graph.
- `chronos_search_graph`: Search symbols with BM25 tokenization and filters.
- `chronos_get_snippet`: Read exact line ranges with callers, callees and covering tests.
- `chronos_get_architecture`: Index the workspace and extract clusters and hotspots.
- `chronos_hydrate_telemetry`: Load runtime metrics from profiler output files.
- `chronos_generate_agents_md`: Generate agent instruction files for supported AI clients.
- `chronos_explore`: Single-call context lookup with wildcards, outlines and batch queries.
- `chronos_edit_symbol`: Fresh-parse symbol edits with syntax and signature gating.
- `chronos_refactor_symbol`: Edge-verified rename, safe delete and usage preview.

## FAQ

### Does CHRONOS-AGENT require a language server running in the background?

The README says no: the default mode is zero-daemon, and language server disambiguation is opt-in.

### Which languages are supported?

The README lists seven language families: TypeScript/JavaScript, Python, Rust, Go, C/C++ and Java.

### How is CHRONOS-AGENT installed for MCP clients?

The README shows an npx command using @ptai-eng/chronos-mcp, prebuilt install scripts, Homebrew, and an OCI container image.

### Is CHRONOS-AGENT free?

Yes. CHRONOS-AGENT is open source, so you can use and self-host it for free.

### How do I add CHRONOS-AGENT to Claude Code?

Run this command in your terminal: claude mcp add chronos-agent -- docker run -i --rm ghcr.io/ptai-eng/chronos-agent:1.8.1

### What are the best alternatives to CHRONOS-AGENT?

The closest alternatives to CHRONOS-AGENT are Coding Tools MCP, Lens MCP, Agentsbestfriend, Agent Lsp and Codehelper.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Coding Tools MCP](https://ai-powered.com/mcp/coding-tools-mcp): Coding Tools MCP is an open-source MCP server for developer tools.
- [Lens MCP](https://ai-powered.com/mcp/lens-mcp-2): Lens MCP is an open-source MCP server for developer tools.
- [Agentsbestfriend](https://ai-powered.com/mcp/agentsbestfriend): Agentsbestfriend is an open-source MCP server for developer tools.
- [Agent Lsp](https://ai-powered.com/mcp/agent-lsp): Agent Lsp is an open-source MCP server for developer tools.
- [Codehelper](https://ai-powered.com/mcp/codehelper): Codehelper is an MCP server for developer tools.
- [Daimonos](https://ai-powered.com/mcp/daimonos): Daimonos is an open-source MCP server for developer tools.
- [Edit MCP](https://ai-powered.com/mcp/edit-mcp): Edit MCP is an open-source MCP server for developer tools.
- [Krusch Context MCP](https://ai-powered.com/mcp/krusch-context-mcp): Krusch Context MCP is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/chronos-agent
