setsu
Click on "Install 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., "@setsu@setsu how does authentication work?"
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.
Documentation · Quickstart · Commands · Privacy · Roadmap
npx @setsu-ai/cli init # detect agents, build the graph, wire up MCP
setsu context "How does auth work?" # token-budgeted evidence, not the whole repoAvailable on npm as @setsu-ai/cli · latest version 0.1.0-beta.1 (2026-09-08) · for Claude Code, Codex, Cursor, Copilot and Kiro
🧠 What is SETSU?
AI coding agents rediscover your repository from raw files on every task: grep, read, re-read, repeat. That loop burns your context window and your money.
SETSU builds a persistent code graph of your repository once (tree-sitter parse → symbols and typed edges → PageRank and communities → SQLite), keeps it fresh incrementally, and answers questions with token-budgeted evidence packs — the smallest set of signatures, snippets, and graph paths that answers the question, with provenance on every edge.
🗺️ Persistent code graph — symbols, calls, imports, implements, tests; typed and provenance-labeled
🎯 Token-budgeted retrieval — every pack has a hard budget; a greedy value/cost packer fills it
🔀 Adaptive routing — graph traversal, lexical FTS, repo map, or hybrid, chosen per task
⚡ Incremental — content-addressed cache; unchanged files are never reparsed
🔌 MCP-native — five tools, stdio only, no network listener
📉 Instruction doctor — measures what your CLAUDE.md/rules actually cost per session
🧪 Learns locally — which strategy works for which task class, on your machine only
🔒 No API key. No account. Source never leaves your machine.
Related MCP server: lens
⚙️ How it works
AI CODING AGENT (Claude / Codex / Cursor / ...)
│ setsu_context("How does checkout reach Stripe?")
▼
┌──────────────────┐
│ SETSU ROUTER │ task classifier
└────────┬─────────┘
┌─────────────────┼──────────────────┐
▼ ▼ ▼
Graph traversal Lexical / FTS5 Repo map (PageRank)
└─────────────────┼──────────────────┘
▼
TOKEN BUDGET PACKER
▼
ContextPack (~1,300 est. tokens)
path: CheckoutController → CheckoutService → PaymentGateway → StripeAdapterBelow the retrieval layer: files → content hash → tree-sitter parse → symbol + edge extraction → import resolution → PageRank + Louvain communities → SQLite (FTS5 included) → incremental watcher.
⚡ Quickstart
npm install -g @setsu-ai/cli # or npx @setsu-ai/cli init
setsu init # detect agents, build the graph, offer MCP install
setsu context "How does checkout reach the payment gateway?" --explain
setsu doctor # what your agent setup costs per session
setsu optimize --dry-run # what SETSU would improve, as diffs🧰 Commands
Command | What it does |
| Detect agents, create |
| Token-budgeted evidence pack; |
| Definition, signature, callers, callees |
| Shortest relationship chain with edge types + provenance |
| Blast radius: dependents, affected tests and files |
| Incremental reindex (or keep it fresh continuously) |
| Context Efficiency Score, instruction cost, thresholds for CI |
| Guidance + MCP install with backup/rollback; advisory dedupe |
| Learned strategy scores; rate the last pack |
| Exactly what is stored where; delete it all |
| The 5-tool MCP surface over stdio |
| Grep-first baseline vs SETSU, estimated tokens, honest numbers |
🔒 Privacy
Everything is local: the graph lives in ~/.setsu/repos/<id>/graph.db, usage
learning in ~/.setsu/setsu.db. No network calls, no telemetry, no accounts.
Task terms are hashed with a per-device salt before storage; raw prompts are
never persisted. setsu privacy inspect lists every stored category and
location; setsu privacy purge --yes deletes all of it.
🗺️ Roadmap
Version | Focus | Status |
v0.1 | TS/JS + Python graph, hybrid retrieval, MCP, doctor/optimizer, local learning | this release |
v0.2 | Java/C#/Go/Rust, deep LSP enrichment, Kiro/Copilot deep adapters, framework route + test + database graphs, retrieval bandit | planned |
v0.3 | Optional semantic retrieval, cross-agent config compiler, Graphify import, Serena bridge, memory provider SDK | planned |
🤝 Contributing
Contribution ladder — pick your entry point:
Benchmark task — add a task to
benchmarks/; retrieval quality lives and dies by real questionsFixture + golden — a code pattern we extract badly makes a great failing test
Language extractor —
packages/parsers/src/extractors/has the pattern to followAdapter depth — deepen Copilot/Kiro config generation in
packages/agentsCore — router, packer, graph algorithms
npm install && npm test is all it takes to start. Every PR needs tests.
📄 License
Apache-2.0 © 2026 Aritra Ghosh · NOTICE · Third-party notices
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Shared memory for coding agents. Stop re-explaining your codebase every session.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Persistent memory and knowledge graphs for AI agents. Hybrid search, context checkpoints, and more.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI coding agents to efficiently query code context via a symbol graph, reducing token usage by up to 20x.697476-
- AlicenseNot gradedqualityBmaintenanceProvides token-efficient code retrieval for coding agents by indexing repositories and enabling ranked snippet search, symbol outlines, and surgical line reads.MIT
- FlicenseNot gradedqualityCmaintenanceProvides persistent codebase memory and semantic context for AI agents via AST-aware chunking and symbol graph indexing.1-
- AlicenseNot gradedqualityAmaintenanceProvides AI agents with causal code memory by indexing repositories into a graph of symbols and edges, enabling context-aware retrieval of relevant code slices.3MIT