ozagia
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ozagia
Ozma advanced graph integration agent. A live code graph for LLM coding agents: index a repository into typed nodes (files, symbols, tests, docs, imports, call edges), keep it current while the agent edits, and put it in the agent's path. MIT licensed.
Status: alpha. The library and the MCP server work today; the tool-capture
plugin and the agent harness are planned (see docs/plans/).
What it does
Graph index: files, symbols, tests, docs, imports, git history and known failures as one graph snapshot, with project-specific nodes added by adapters.
Retrieval: ranked repo map (PageRank over references), fused lexical and graph code search, symbol-level callers, callees and impact, architecture summary. Optional language-server refinement (pyright, rust-analyzer).
Graph-addressed edits: Python symbol and AST ops, Rust/Lua CST ops, Markdown section ops, JSON path ops. Preview by default, base hash check, atomic write, backup. A diff is output only, never input.
Evals: a leakage-checked retrieval eval, a break/fix agent eval with selectable agent backends (OpenCode, Claude Code), and an index bench.
Related MCP server: MindGraph
Ways to use it
depth | how | status |
Library |
| works |
MCP server | any MCP client (OpenCode, Claude Code, Cursor, ...) gets the graph tools next to its own | works |
OpenCode plugin | captures | planned (verified feasible on OpenCode 2.3) |
Claude Code hooks | partial capture: rewrite or block calls, add graph context | planned |
Harness |
| planned |
Quick start
uv pip install -e '.[all]' # or: pip install -e '.[all]'
cd /path/to/your/repo
ozagia-memory build # writes .ozagia/graph.json
ozagia-memory search "retry backoff"
ozagia-memory context "make the retry loop give up after five attempts"Add .ozagia/ to the repository's .gitignore.
MCP (OpenCode opencode.json):
{
"mcp": {
"ozagia": {
"type": "local",
"command": ["/path/to/venv/bin/python", "-m", "ozagia.integrations.mcp.server"],
"environment": {"OZAGIA_ROOT": "/path/to/your/repo"}
}
}
}Configuring a repository
Without configuration ozagia indexes the whole checkout, skipping the usual
build and cache directories. A .ozagia.toml at the root narrows the source
directories, sets the docs to index, extra import roots and skip names, and
names adapters. The full schema is in src/ozagia/config.py.
[index]
source_dirs = ["src", "tools"]
test_dirs = ["tests"]
docs = ["README.md", "docs/**/*.md"]
[adapters]
modules = ["tools.my_adapter:register"]An adapter is a register(registry) function that adds indexers (extra node
and edge types), edit engines, MCP tools or graph queries. See
src/ozagia/adapters.py. Ocelot's adapter
(tools/ozagia_ocelot_adapter.py in https://github.com/ozmalabs/ocelot) is a
worked example: it adds seed manifests and rules as graph nodes.
Research mode
Use ozagia-mcp --mode research --root /path/to/workspace for source-backed
research graphs, or --mode combined to expose research and coding tools
together. Coding mode remains the default. See research mode
for setup, optional dependencies and model/Lean limitations.
Origin
ozagia was extracted, with its history, from the Ocelot repository, where it
was built as Ocelot's dev tooling. Most docs under docs/ still use Ocelot as
the example repository, and docs/results/ holds the measurements made on
Ocelot.
Development
See AGENTS.md.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables LLM agents to efficiently understand and navigate a codebase by providing semantic search over symbols and a reference graph, replacing expensive grep/glob calls with structured tools like definition lookup, caller/callee queries, and change-impact analysis.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to query and analyze code across multiple repositories through a unified knowledge graph, with tools for symbol search, impact analysis, and graph algorithms.54 npmMIT
- FlicenseNot gradedqualityBmaintenanceProvides efficient code navigation and graph-based analysis for AI agents, enabling symbol resolution, callers, implementations, and type schemas with minimal token usage.-
- AlicenseNot gradedqualityDmaintenanceProvides semantic codebase understanding via a graph, enabling AI agents to search, explore, and plan changes with whole-repo context in a single tool call.33MIT