Skip to main content

agentless-mcp

agentless-mcp provides tree-sitter-based code navigation, repository structure analysis, and patch validation for local repositories. It exposes the same functionality through a command-line interface and a read-only stdio MCP server.

Install

uv tool install agentless-mcp

Install the MCP server support when needed:

uv tool install "agentless-mcp[mcp]"

Before analyzing a language for the first time, download and verify its grammar:

agentless-mcp warmup

CLI

Most commands analyze the repository containing the current directory. Use --repo PATH to select another repository. Add --json where supported for machine-readable output.

Navigate code

agentless-mcp map --focus src/app.py
agentless-mcp tree --depth 3
agentless-mcp skeleton src/app.py
agentless-mcp expand py:src/app.py::App.run
agentless-mcp slice src/app.py --lines 40:80
agentless-mcp find-symbol App
agentless-mcp refs App.run
agentless-mcp explain App.run

These commands provide repository maps, directory trees, symbol overviews, full symbol bodies, source slices, symbol lookup, references, and symbol context. Symbol IDs are printed by map and skeleton and can be passed to expand, refs, explain, and related commands.

Analyze structure

agentless-mcp path App.run Database.connect
agentless-mcp cycles
agentless-mcp communities
agentless-mcp diagram > modules.mmd
agentless-mcp html > modules.html

These commands find relationships between symbols or files, report import cycles, group related files, and export Mermaid or interactive HTML graphs.

Validate patches

The CLI also supports deterministic patch workflows:

agentless-mcp patch parse --file change.patch
agentless-mcp patch check --file change.patch --repo /path/to/repo
agentless-mcp patch apply --file change.patch --repo /path/to/repo
agentless-mcp lint --candidates ./candidates --repo /path/to/repo
agentless-mcp validate --candidates ./candidates --repo /path/to/repo \
  --test-cmd 'pytest -q'
agentless-mcp vote --verdicts verdicts.jsonl

Patch candidates can use SEARCH/REPLACE text or the package's edits.json format. validate runs candidates against the repository tests, and vote ranks the candidates that pass.

Cache and capabilities

Parsing happens on demand. Build an optional repository cache to improve repeated queries:

agentless-mcp index --repo /path/to/repo
agentless-mcp capabilities --repo /path/to/repo

Use --no-cache on repository-scoped commands to bypass the cache.

MCP server

The server communicates over stdio and exposes read-only repository tools. Start it with one or more explicitly allowed repository roots:

agentless-mcp-server --root /path/to/repo

The MCP tools are:

Tool Purpose
repo_map Rank relevant files and symbols within a token budget
list_dir List the repository tree
get_symbols_overview Show declarations without symbol bodies
expand_symbols Return full symbol bodies
read_slice Read selected source lines
find_symbol Find symbols by name
find_referencing_symbols Find references and callers
explain_symbol Show a symbol with its relationships
analyze_structure Query paths, cycles, communities, or diagrams
resolve_locations Resolve class, function, and line locations
capabilities Report loaded grammars and cache state

The MCP server does not apply patches or execute repository commands.

Supported languages

The bundled grammars support Bash, C, C++, C#, Go, HCL, Java, JavaScript, JSON, Kotlin, Lua, PHP, Python, Ruby, Rust, Scala, SQL, Swift, TOML, TSX, TypeScript, and YAML. Run capabilities to see the grammars available in the current installation.

License

MIT. See LICENSE and NOTICE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentless_mcp-0.3.1.tar.gz (252.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentless_mcp-0.3.1-py3-none-any.whl (282.6 kB view details)

Uploaded Python 3

File details

Details for the file agentless_mcp-0.3.1.tar.gz.

File metadata

  • Download URL: agentless_mcp-0.3.1.tar.gz
  • Upload date:
  • Size: 252.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for agentless_mcp-0.3.1.tar.gz
Algorithm Hash digest
SHA256 f5c43349b65afc36c00b3a7f6fb6b199dd70df10e3a41b312830e2fe479b0cbb
MD5 8ee0be155a2236dec96d546626b86358
BLAKE2b-256 6e01c1ad0536b70893385838e0aa17d030320138b63d120007e082ca59b3b3dc

See more details on using hashes here.

File details

Details for the file agentless_mcp-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: agentless_mcp-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 282.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for agentless_mcp-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9dc84c69bce67524fa3b21bd5d86c2f242dcd0698b43ddaf3ac53f6bd658cffa
MD5 3d67eb3bfcf0648cfc0bc3526b6113e6
BLAKE2b-256 aea7dd402ca0ff93b47cb33191e916ff82586c1b31aa127588c9d840c9227ef6

See more details on using hashes here.

Release history Release notifications | RSS feed

0.7.0

2 files

0.6.7

2 files

0.6.6

2 files

0.6.5

2 files

0.6.4

2 files

0.6.3

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.1

2 files

0.5.0

2 files

This release

0.3.1 This release

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page