About Graft
Graft is an MCP server published by trailhq in the Blockchain category: one shared memory for every coding agent on your team. Claude Code, Cursor and Codex get a map of your code and your team's past decisions, so they pick up where you left off. Conduid read 6 tools from its source: graft_check_freshness, graft_file_api, graft_find_all, graft_find_code, graft_repo_map and graft_trace_calls. It is published to npm as @nanonets/graft and starts with npx.
The repository has 12K stars and 1.0K forks, is licensed MIT, and its last commit was on 30 Nov 2026. The latest release is v0.21.1. It follows v0.21.0, and the 5 most recent releases go back to v0.18.0. It passes all 4 static checks Conduid ran on the repository. Its topics include blockchain.
Install
claude mcp add graft -- npx -y @trailhq/trail-code mcpnpx -y @trailhq/trail-code mcpgit clone https://github.com/trailhq/Trail-CodeTools (6)
graft_check_freshnessnothinggraft_file_apia file path| Parameter | Type | Description |
|---|---|---|
| file * | string | repo-relative path (or unique basename) of the file |
graft_find_alla regex| Parameter | Type | Description |
|---|---|---|
| fixed | boolean | treat pattern as a literal string, not a regex |
| ignore_case | boolean | case-insensitive match |
| in | string | narrow to files at or under this repo-relative path prefix, e.g. server/src |
| pattern * | string | regex pattern (or literal string with fixed: true) |
graft_find_codea question| Parameter | Type | Description |
|---|---|---|
| full | boolean | inline whole definition spans instead of the default ≤8-line crux excerpts |
| in | string | narrow to nodes under this path prefix, filtered before scoring (segment-aware, like scopeOf) |
| limit | number | max results (default 5) |
| query * | string | what you want to understand, in plain words |
graft_repo_mapnothing| Parameter | Type | Description |
|---|---|---|
| max_dirs | number | max directory entries shown, rest counted into dropped (default 16) |
graft_trace_callsa symbol| Parameter | Type | Description |
|---|---|---|
| depth | any | transitive walk depth for blast radius (default 1 = direct edges only); pass "all" for the full connected closure — every source that would be affected |
| direction | string | "in" (default) = callers/dependents; "out" = callees/dependencies |
| in | string | narrow matches to nodes at or under this repo-relative path prefix, e.g. server/src |
| symbol * | string | bare name, qualified (Class.method), or package-qualified (pkg.Fn); a file path also works |
Security checks
Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 9.8K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
2 checks have not been run yet.
Releases
README
The repository's README runs to about 9.8K words, fetched 2 days ago. The original in the repository is authoritative.
Read full README