25 tools over stdio — code (L0/L0.5), knowledge (L1.5–L3), domain (L2.5), the global skill view (L4–L5), and a research surface (ask, requirements, incidents, workspace). Query your cross-project graph from any MCP-aware agent.
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"subnet": {
"command": "subnet",
"args": ["serve", ".", "--mcp"]
}
}
}
Replace "." with an absolute project path if you want the
server to operate on a fixed project regardless of where Cursor is invoked.
Add to ~/.claude/claude_desktop_config.json (macOS path may vary):
{
"mcpServers": {
"subnet": {
"command": "subnet",
"args": ["serve", "--mcp"]
}
}
}
Any MCP-compatible client that supports the stdio transport works the
same way. The command is subnet serve [path] --mcp; no
flags beyond --mcp.
Code (L0)
| Tool | Purpose | Key args |
|---|---|---|
subnet_search | Symbol search across code by name + kind. | query, kind?, limit? |
subnet_node | One symbol's details — signature, docstring, location. | name |
subnet_sync | Trigger code re-index. | full? |
subnet_analyze | Code-grounded analysis: per-file LLM summaries + architectural layers + tags (the hybrid L0 → semantic pass). | full? |
Knowledge (L1.5–L3)
| Tool | Purpose | Key args |
|---|---|---|
subnet_context | Primary tool. Builds context for a topic — facts + related code in one call. | task, limit? |
subnet_recall | Semantic + FTS query across conversations and facts; filterable by scope and grounding. | query, kinds?, scope?, includeEnrichment?, limit? |
subnet_decisions | List decisions / constraints / patterns for a topic or file. | topic?, file?, limit? |
subnet_business_logic | List business rules / invariants / entities. | topic?, file?, limit? |
subnet_concepts | List or inspect L3 concepts. Pass a conceptId for members + summary. | conceptId?, domain?, limit? |
subnet_explain | Structured systematic-thinking view of a concept (problem / constraints / options / decision / consequences). | conceptId |
subnet_triage_audit | Inspect kept vs dropped windows with rationale. | droppedOnly?, limit? |
subnet_verify | Run Verifier sweep on demand. | pruneBelow? |
subnet_ingest | Trigger incremental ingest + agent pipeline. | runTriage?, runExtract? |
subnet_status | Counts per layer. | — |
Domain (L2.5)
| Tool | Purpose | Key args |
|---|---|---|
subnet_domain_model | The business-domain graph — entities + evidence-grounded relationships, each showing its grounding. | entity?, limit? |
subnet_gaps | Open questions / knowledge gaps; names the gap and cites the evidence, never fabricates the answer. | limit? |
subnet_enrich | Run the enrichment pass — skills, entities/relationships, industry, gaps. | noAgent? |
Second brain (L4–L5)
| Tool | Purpose | Key args |
|---|---|---|
subnet_link | Cross-project — where else this concept appears, with relation kind and score. | conceptId |
subnet_skills | Global skill graph — technical + industry skills aggregated across projects, weighted by evidence. | scope?, cross?, limit? |
subnet_profile | Big-picture knowledge profile — industries, top technical skills, evidence mix. Pass prose for ProfileWriter-generated portfolio markdown. | prose? |
subnet_learn | Learning targets — industry-standard knowledge not yet grounded in your work. | limit? |
subnet_ask | Grounded Q&A — most relevant facts + concepts for a question, filtered to project-truth grounding (includeInferred to add model/external). | query, includeInferred?, limit? |
subnet_requirements | Product knowledge — requirements, features, actors, processes, metrics from docs + conversations. | query?, limit? |
subnet_incidents | Root-cause analysis — incidents linked to root cause + resolution (why X broke / how it was fixed). | query?, limit? |
subnet_workspace | Cross-project view — workspace umbrella, sibling repos, and emergently-related projects. | none |
When starting work on a new feature, prompt the agent to recall prior decisions before writing code:
"Before designing the payment retry flow, callsubnet_decisionswith topic 'retry' and tell me what we've already decided. Then callsubnet_business_logicfor 'payment' to surface invariants."
subnet_concepts with no arguments lists the top concepts in
a project ranked by member count. subnet_explain conceptId
expands one into a structured brief.
If a decision you remember discussing didn't surface, run
subnet_triage_audit droppedOnly:true to see what got filtered
and why. The rationale string captures the Triage Agent's reasoning;
if the filter was wrong, retune triage (bump prompt version or swap model).
Stdio only. The server logs to stderr (not visible to the MCP client) and speaks JSON-RPC 2.0 on stdout. No network sockets are opened.
Verify the server independently:
printf '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"0"}}}\n{"jsonrpc":"2.0","id":2,"method":"tools/list"}\n' \
| subnet serve . --mcp