MCP (Model Context Protocol) server for gitant. Gives AI agents structured access to a gitant node via the daemon REST API.
Install and run from GitHub — releases or clone + build.
Full setup guide: gitant-daemon docs/QUICKSTART.md
git clone https://github.com/GrayCodeAI/gitant-mcp.git
cd gitant-mcp
make build
make runRequires Node.js 20+.
Or download a tagged release tarball, extract, and run node dist/index.js (pre-built dist/ is included in release artifacts).
| Variable | Default | Description |
|---|---|---|
GITANT_DAEMON_URL |
http://localhost:7777 |
Daemon base URL |
GITANT_UCAN_TOKEN |
— | Bearer UCAN token (required for write operations) |
Point your MCP client at the built entrypoint (adjust the path):
{
"mcpServers": {
"gitant": {
"command": "node",
"args": ["/path/to/gitant-mcp/dist/index.js"],
"env": {
"GITANT_DAEMON_URL": "http://localhost:7777",
"GITANT_UCAN_TOKEN": "your-delegated-ucan-token"
}
}
}
}get_daemon_status— Health + node statusget_network_status— libp2p peers and listen addressesdiscover_federation— Federated node discovery (requires--p2p)get_bootstrap_peers— List federation bootstrap multiaddrsattest_agent— Cross-peer agent trust attestationlist_repos,get_repo,create_repo,delete_repo,fork_repositorypush_code— Push git objects + ref updatespush_packfile— Push base64-encoded packfile + ref updatesclone_repo
List tools accept optional offset and limit pagination parameters.
get_file,list_files,search_code
create_issue,list_issues,get_issue,close_issueadd_issue_comment,list_issue_commentsopen_pr,list_prs,get_pr,review_pr,merge_prlist_pr_comments
Use string IDs for issues/PRs (e.g. issue-1734567890123456789, pr-1734567890123456789).
list_refs,create_branch,get_commit_log,diff_commits,get_commit_parents
generate_did,resolve_did,list_agents,get_agent,get_agent_profiledelegate_capability,verify_ucan,revoke_ucan,list_revocations
- Full CRUD/list tools for each domain (see
src/index.ts)
Push a version tag — GitHub Actions builds and attaches a tarball:
git tag v0.1.0 && git push origin v0.1.0See Release workflow.
See PLAN.md in gitant-daemon for the full product roadmap.