Trail Code
Maps code dependencies and preserves team learnings for coding agents through a local MCP setup.
Install Trail Code
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"trail-code": {
"command": "npx",
"args": [
"-y",
"@trailhq/trail-code"
]
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.
Overview
Use cases
- Map a repository before making cross-file changes
- Reuse team decisions across coding-agent sessions
- Check edits against recorded project guidance
- Orient agents in unfamiliar codebases
Key features
- Tree-sitter code map of files, functions, and callers
- Automatic refresh for code changes and uncommitted edits
- Persistent shared and local learnings
- Agent hooks with relevant code context
- CLI search, mapping, checking, and visualization
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 1h ago via OSV.dev · @trailhq/trail-code (npm)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How Trail Code works
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about Trail Code
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/trail-code)<a href="https://allmcps.com/mcp/trail-code"><img src="https://allmcps.com/api/badge/trail-code?style=directory" alt="Trail Code on AllMCPs" /></a>