Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
codebaseGraph
codebaseGraph is a local knowledge graph for AI coding agents. It builds a syntax-level searchable graph from
Python, Rust, Go, C, C++, Fortran, Markdown, and MDX files into a LadyBugDB-backed graph, then exposes search,
compact context, schema, query helpers, and read-only MCP tools.
The shipped CLI and MCP server are native Rust binaries.
Quick Start
For local development from this checkout:
Install creates:
.codebaseGraph/
config.json
manifest.json
<repositoryName>_graph.ldb
The install command performs first-time setup: it materializes the initial graph, writes or updates one marked
codebaseGraph block in AGENTS.md or CLAUDE.md, and installs a Codex MCP client entry unless skipped. After setup,
the MCP server watches the repo and refreshes the graph automatically; rerunning install is not part of the refresh
workflow.
Use codebase-graph reinstall only when local setup state needs to be recreated. It moves aside the existing
.codebaseGraph state, runs install again, and refreshes the selected MCP registration without removing unrelated MCP
client entries.
MCP Install
Supported clients are codex, claude, claude-project, github-copilot, lmstudio, hermes, openclaw,
generic, copilot-studio, and microsoft-copilot.
github-copilot writes VS Code workspace configuration to .vscode/mcp.json. copilot-studio and
microsoft-copilot are metadata-only targets: they print stdio and local HTTP connection details for manual Copilot
Studio onboarding and do not provision a hosted connector, TLS, OAuth, or remote deployment.
MCP Usage
Stdio is the default transport for local MCP clients:
HTTP is available for local endpoint clients:
Keep HTTP bound to 127.0.0.1 for normal use. Remote binding requires --allow-remote and a bearer token, but does
not provide TLS, rate limiting, authorization scopes, or a multi-user security model. HTTP clients must initialize first
and send the returned Mcp-Session-Id header on later requests.
Available MCP tools:
graph_healthgraph_searchgraph_contextgraph_schemagraph_query_helpersgraph_architecture_queriesgraph_querywith write-like statements blocked
CLI Workflow
Retrieval commands emit block format by default for agent-facing output. Use --json --pretty or --format json for
structured inspection.
Freshness is automatic while codebase-graph mcp start or codebase-graph watch is running. Use build only for an
explicit manual rebuild, and use plan to inspect what a manual build would touch:
Use .codebaseGraphignore, --include, --exclude, or .codebaseGraph/config.json materialization include/exclude
arrays to tune scanned paths. Git discovery respects .gitignore by default and falls back to filesystem scanning when
Git is unavailable.
Development
Release and Security
CI runs Rust formatting, linting, tests, advisory scanning, package dry-run checks, native package builds, and artifact smoke tests. See docs/release.md for the full release process and conda-forge checklist.
Report suspected vulnerabilities privately. See SECURITY.md for supported versions, reporting expectations, and the local-first MCP security boundary.
Troubleshooting
- Missing LadyBugDB: install
codebase-graphfrom crates.io, a release artifact, or this checkout. - Stale graph: ensure
codebase-graph mcp start --config .codebaseGraph/config.jsonorcodebase-graph watch --repo-root .is running; usecodebase-graph build --repo-root . --mode fullonly for an explicit manual rebuild. - Broken setup state: run
codebase-graph reinstallto recreate.codebaseGraphand refresh the selected MCP registration. - Broken client config only: rerun
codebase-graph mcp install --client <client> --verify. - PATH or executable issues: ensure the native
codebase-graphbinary is onPATH. - Unsupported files: binary, vendor, cache, virtualenv, build, dist,
.codebase_graph, and.codebaseGraphpaths are skipped. - Lock errors: stop other graph build or install processes using the same
.codebaseGraph/<repositoryName>_graph.ldb.