Novgraph
OfficialConfigures Novgraph as an MCP server for Codeium's Windsurf editor via mcp_config.json, plus an AGENTS.md instruction pointer and a /novgraph workflow, giving the agent graph-backed answers about files, symbols, history and impact.
Sets up Novgraph for GitHub Copilot by writing the MCP server registration into VS Code's mcp.json, adding instructions to .github/copilot-instructions.md, and installing a /novgraph prompt so Copilot can query the codebase knowledge graph.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Novgraphwhat's the blast radius of changing src/auth.py?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
novgraph
A live knowledge graph of your codebase, queried by coding agents.
Command-line client for Novgraph, Novaya's proprietary hosted code knowledge graph. Coding agents query it over MCP or the shell for repository context that source search alone does not preserve: recorded intent, code that tends to evolve together, ranked change impact, and architecture context.
Live 0.1.7 sample: 96.04% to 99.81% smaller than complete cited-file reads on six measurable retrieval calls. These are directional product telemetry, not provider billing or a universal result against grep. Read the benchmark report.
This repository is the client only — auth, agent detection, MCP registration and request transport. Python 3.11+, standard library, no dependencies, no engine. In Hosted mode, indexing, storage and retrieval run on Novaya's servers.
uv tool install novaya # the PyPI package is `novaya`
novgraph install <KEY> # generate a key at https://app.trynovaya.comSovereign setup in development uses the same client: novgraph install sovereign
inside your checkout. It reuses your saved account key or prompts with hidden
input, indexes locally and installs the same agent skills and MCP tools.
The private local runtime is distributed separately and is not included in
this public client wheel. Automatic runtime delivery is still pending; this
command currently requires a running or importable private runtime. The
released flow will use uv tool install novaya followed by this single setup
command. Hosted setup remains novgraph install <KEY>.
install detects every supported agent on the machine, registers the MCP
server, writes a pointer into each agent's instruction file, adds a
/novgraph command, resolves which indexed codebase this checkout is, and
verifies each step. novgraph doctor re-runs those checks with an exit code.
What problem it solves
A coding agent starts each session with no memory of the repository. To answer "what does this touch", it greps, opens files, and reconstructs context that it loses at the end of the session. Source search is useful for current text, but it does not preserve the intent behind decisions or provide a repository-wide view of relationships and change impact.
Novgraph gives the agent that context directly. A query returns a focused answer and reports its estimated size against the complete files it cites:
◆ Novgraph · saved you an estimated ~191k tokens · ~622k this session
traced what changes with src/auth/session.py · vs reading the 12 files it citesThe API reports the estimated response size beside the estimated size of the
complete files that answer cites. In the published 0.1.7 sample, measurable
answers ranged from 96.04% to 99.81% smaller than those complete files.
Minimal local grep was cheaper for a simple symbol location; Novgraph became
smaller when the task required contextual relationship inspection. The full
results, paired commands, latency, raw summaries and failed ask case are in the
benchmark report.
Related MCP server: io.github.pmgarg/cgraphy
What Novgraph provides
Each repository gets a maintained knowledge graph designed for coding-agent questions. It can locate code, recall recorded decisions, identify related areas, rank likely change impact, and summarize architecture. Results include evidence and freshness information so the agent knows when to verify the current working tree.
Language coverage includes Python, JavaScript, TypeScript, Go, Rust, Java and C. The hosted service maintains the graph as the repository evolves.
Features
Recorded intent
Co-change context
Ranked blast radius
Architecture context
Precise code discovery
Continuous history
Visible context accounting
Freshness awareness
Knowledge graph vs. the alternatives
grep + file reads | static code graph | novgraph | |
Symbols, calls, imports | manual | yes | yes |
Commit intent | no | no | yes |
Code that tends to evolve together | manual | no | yes |
Ranked change impact with evidence | manual | partial | yes |
Precise identifier discovery | yes | partial | yes |
Context preserved as code evolves | n/a | no | yes |
Freshness reported | current text | depends on tool | yes |
Token cost reported | no | no | approximate response vs complete cited-file size |
Runs on your machine | yes | yes | no |
Commands
Setup
novgraph install <KEY> set up this machine and repository, then verify
novgraph install sovereign select local setup (matching private runtime required)
novgraph install - read the key from stdin
novgraph doctor re-run every check; non-zero exit on failure
novgraph doctor --json same, machine-readable
novgraph doctor --quick skip the MCP handshake and graph read
novgraph wire <agent> set up one agent (claude-code, codex, cursor, ...)
novgraph adapters list supported agents and what each one needs
novgraph key <KEY> replace this machine's key
novgraph upgrade update the client, then re-sync every bound repo
novgraph uninstall remove every entry and file it wroteQuerying the graph
Each verb works in any terminal inside a bound repository, and is also exposed as an MCP tool to agents.
novgraph summary what this project is
novgraph overview computed architecture
novgraph search <query> locate code by concept or exact name
novgraph why <path> recorded reasoning behind a file
novgraph connections <path> imports, callers, co-change
novgraph impact <path> what breaks, most certain first
novgraph recent [limit] recent commits and their intent
novgraph ask "<question>" a briefing composed from several reads
novgraph record-why "<why>" --intent "..." --reasoning "..." --commit <sha>
novgraph codebases which repositories this key can read
novgraph call <tool> --json '{...}' any tool, including newer than this clientAgent workflows
install writes a /novgraph command into each agent that supports one:
/novgraph review checks the current diff against co-change history
/novgraph brief <task> files, constraints, blast radius, a plan
/novgraph impact <file> what breaks, most certain first
/novgraph debug <error> ranked causes, each with evidence and a check
/novgraph record write a commit's reasoning back to the graph
/novgraph onboard [area] guided tour of an unfamiliar codebase
/novgraph summary the codebase at its latest indexed commit
/novgraph savings measured token savings for this sessionCodex has skills rather than slash commands, so there it is $novgraph.
What it writes
Agent | MCP registration | Instruction file | Command file |
Claude Code |
|
|
|
Codex |
|
|
|
Cursor |
|
|
|
GitHub Copilot | VS Code |
|
|
Gemini CLI |
|
|
|
Windsurf |
|
|
|
Cline |
|
|
|
OpenCode |
|
|
|
Plus .novgraph/rules.md, .novgraph/skills.md and .novgraph/blueprint.md
in the repository — generated, safe to commit.
Every edit is one named MCP entry and one marked block, added by
read-modify-write. A config file that cannot be parsed is left byte-for-byte
unchanged and reported. novgraph uninstall removes exactly what was written.
Key handling and data
The key is stored in the OS credential store: Windows DPAPI, macOS Keychain, libsecret via
secret-tool, or a0600file. It is never written to the repository, an agent config, or a log.NOVGRAPH_API_KEYoverrides the store when set — for CI.NOVGRAPH_API_BASEoverrides the endpoint.Requests carry the key, the query, and a per-session id. File contents are not sent. The hosted graph holds paths, symbol names, relationships, counts and recorded reasoning.
Indexing reads the repository through your GitHub or GitLab grant on the server side; the client never uploads source.
Requirements
Python 3.11 or newer. No third-party packages.
A repository indexed by Novgraph — connect it at app.trynovaya.com.
For the MCP path, an agent that speaks MCP over stdio. The shell verbs work anywhere.
Development
python -m pytest -q # 80 tests, no network, no dependenciesAdding an agent is one module in novaya/adapters/ plus an entry in
ADAPTERS; there are eight to copy from. See
CONTRIBUTING.md. Report vulnerabilities privately per
SECURITY.md.
License
Apache-2.0 for this client. The hosted service it queries is proprietary.
Maintenance
Related MCP Connectors
Repository knowledge graph MCP server for codebase understanding and debugging.
Codebase graphs, caller impact analysis, and recorded project context for AI coding agents.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Hosted code graph over MCP: exact callers, dependencies, and cross-repo blast radius for AI agents.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn in-memory knowledge graph MCP server that gives coding agents structural and semantic recall over codebases by indexing Python source, ADR documents, and project configuration, exposing 7 tools for search, traversal, context retrieval, and natural-language Q&A.-
- AlicenseNot gradedqualityAmaintenanceEnables AI coding agents to query a codebase as a knowledge graph, providing token-budgeted context, search, and impact analysis via MCP tools.23 PyPIMIT
- AlicenseNot gradedqualityAmaintenanceLocal-first CLI that mines git history for file-level co-change patterns and builds a queryable knowledge graph for AI coding agents, exposed via an MCP server.182 npmApache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to query a local, versioned knowledge graph of a software project, retrieving overviews, context packs, evidence, and explanations to make informed changes.MIT