1. Conduid
  2. RAG
  3. Mache
MCP server · RAG

Mache

IDE-style navigation for structured data — code, JSON, YAML. Jump to definitions, find callers, follow references. Available as an MCP server or a mounted folder.

53Fair

Scored 20 hours ago · breakdown

About Mache

Mache is an MCP server published by agentic-research in the RAG category: iDE-style navigation for structured data — code, JSON, YAML. Jump to definitions, find callers, follow references. Available as an MCP server or a mounted folder. Conduid read 20 tools from its source: find_callees, find_callers, find_clones, find_definition, find_smells, get_architecture and 14 more. No package is published for it, so it installs from a source checkout.

The repository has 46 stars and 2 forks, and its last commit was on 1 Dec 2026. Conduid has no tagged release on record for it. Its topics include agentic-research, art-ecosystem, capnproto, cobra, code-intelligence and fuse-filesystem.

Install

From source
git clone https://github.com/agentic-research/mache

Tools (20)

find_calleesFind what a function/method calls. Use for 'what does X invoke?', 'dependencies of X'. Note: generic names (String, New, Error) may have false positives — prefer qualified calls.
ParameterTypeDescription
path *stringConstruct directory path (e.g. 'go/graph/methods/GetCallees')
find_callersFind all constructs that reference a symbol. Use for 'who calls X?', 'where is X used?', 'find usages of X'. More accurate than grep for symbol lookup.
ParameterTypeDescription
kindstringOptional construct-kind filter applied to the CALLERS (e.g. kind=method narrows to method-callers only). Accepted values: function, method, type, constant, variable, import. Omit to return all kinds.
token *stringSymbol or token name (e.g. 'GetCallers', 'ParseVuln')
find_clonesFind duplicated logic: sets of functions that are structural copies of each other (same shape, possibly different names and constants), ranked by how much code one shared helper would remove. Use for 'what is duplicated?', 'what should be a helper?', 'is there already a copy of this function?'. Each set lists every copy with file, line and a snippet, and what DIFFERS between the copies: `identical_modulo_renames` is true when one helper can replace them as they stand; otherwise `differences` lists each constant, operator, or called function / field / type that is not the same in every copy, which a shared helper must take as a parameter. Read the differences before merging copies. Go only. Exact-structure clones of whole functions only: near-miss copies and repeated blocks inside otherwise different functions are not detected (the response says so). Requires a leyline-parsed .db (the _ast table).
ParameterTypeDescription
include_testsbooleanAlso report sets with fewer than two copies outside test files (default false).
limitnumberMax sets (default 50).
min_nodesnumberSmallest duplicated structure to report, in syntax nodes (default 24, which skips one-line accessors). 0 reports everything.
source_idstringOnly sets with a copy in this source file (e.g. 'internal/ingest/engine_walk.go'). The set still lists its copies elsewhere.
find_definitionFind where a symbol is declared. Use for 'where is X defined?', 'where does X come from?'. Default match is anchored: case-sensitive exact, then case-insensitive exact. Set fuzzy=true to also fall back to substring suggestions when no anchored match exists (recommended only for short queries in unfamiliar codebases — fuzzy is noisy in monorepos).
ParameterTypeDescription
fuzzybooleanFall back to substring matching when no anchored match is found (default false). Symbols shorter than 4 characters are never fuzzy-matched.
kindstringOptional construct-kind filter to disambiguate when the same name appears in multiple kinds. Accepted values: function, method, type, constant, variable, import. Omit to return all kinds.
symbol *stringSymbol name to find definition for (e.g. 'GetCallers' or 'auth.Validate')
find_smellsRun structural code-smell rules against the parsed _ast table. Call with no arguments for the registry listing; call with `rule` to scan. Rules look for patterns like 'magic int literal in a binary expression' (Go) — useful for sweeping a monorepo before adding named constants. Each finding includes line/column and a short snippet so editors can jump to it. Requires a leyline-parsed .db (the _ast table).
ParameterTypeDescription
limitnumberMax findings (default 200).
rulestringRule ID to run. Omit to list available rules.
source_idstringLimit the scan to one parsed source file (matches _source.id, e.g. 'main.go').
get_architectureStructured architectural analysis of the codebase. Returns entry points (high fan-in), key abstractions (most defs), dependency layers (community-based), test files, API surface (exported symbols), file count, and language breakdown. Use after get_overview for deeper orientation.
get_communitiesFind clusters of related code using Louvain modularity detection. Use for 'what code works together?', 'find subsystems'. Requires dense cross-references. Hub tokens (referenced by more than max_fan_in nodes — `err`, `t`, `len`) are pruned before projection and reported: they cost K(K-1)/2 edges each and join everything to everything, which both dominates runtime and collapses real clusters into one blob. Use summary=true plus limit for large codebases.
ParameterTypeDescription
granularitystringCell size: 'construct' (AST nodes, default), 'file', or 'dir'. File/dir cells answer 'which files/packages belong together' — the decomposition question — by aggregating along the fs hierarchy already encoded in every node id.
limitnumberMaximum communities returned, largest first (default 50, 0 for all). Detection routinely finds thousands; returning them all overruns the response budget.
max_fan_innumberPrune tokens referenced by more than this many nodes before projecting (default 100, 0 disables). Measured on a 50k-line Go repo: 100 keeps 98.5% of tokens, removes 99.2% of edge work, and raises modularity from 0.543 to 0.985.
min_sizenumberMinimum community size (default 2)
scopestringPath prefix filter, e.g. 'cmd/'. Only nodes under this prefix participate.
summarybooleanReturn summary only (ID, size, top 5 members per community) instead of full member lists. Recommended for large codebases.
get_dataflowBounded interprocedural reference flow for a symbol through the existing node_refs caller/callee projection. Every edge is labeled node_ref; this is not LSP-confirmed binding, SSA, taint, or data-dependence analysis.
ParameterTypeDescription
depthnumberMax traversal depth from 1 to 5 (default 2)
directionstringTraversal direction: 'callers', 'callees', or 'both' (default 'both')
kindstringOptional construct-kind filter applied to the starting symbol roots. Accepted values: function, method, type, constant, variable, import.
symbol *stringFunction or symbol name to resolve through node_defs
get_diagnosticsGet diagnostics (errors, warnings) for symbols and files. Returns what leyline's parse recorded (symbol_kind "parse" for a file that parsed with errors, "unprojected" for one it could not project), then the language server's diagnostics. If LSP data is missing and 'file' is provided, auto-enriches via ley-line daemon.
ParameterTypeDescription
filestringSource file path — triggers automatic LSP enrichment if _lsp table is missing
kindstringOptional construct-kind filter applied to result NodeIDs. Accepted values: function, method, type, constant, variable, import. Omit to return all kinds.
limitnumberMax results (default 50)
symbolstringSymbol name to filter by (optional, returns all if empty)
get_diagramRender a mermaid diagram of the projected system's structure. Uses community detection to group related code, then renders the quotient graph (classes + cross-class edges) as mermaid syntax. Edge labels show the most significant boundary tokens (above-mean weight).
ParameterTypeDescription
compactbooleanCompact mode: render classes as labeled nodes with member count instead of subgraphs with full member listings. Better for large codebases.
exclude_testsbooleanExclude test files (*_test.go, Test*, Benchmark*) from community detection. Produces cleaner domain-focused labels.
layoutstringLayout direction: TD (top-down), LR (left-right), BT (bottom-top), RL (right-left). Default: TD
namestringDiagram name from schema (default: full system view)
get_impactChange impact analysis: given a symbol, trace through the refs graph to show affected callers and/or callees (multi-hop BFS traversal). Use for 'what would be affected if I change X?', 'blast radius of modifying Y'.
ParameterTypeDescription
depthnumberMax traversal depth (default 2)
directionstringTraversal direction: 'callers' (who calls this), 'callees' (what this calls), 'both' (default 'both')
kindstringOptional construct-kind filter applied to the STARTING symbol's root (e.g. kind=function picks the function-Encoder as the BFS root when both a type and function are named Encoder). Traversal at depth>0 follows callers/callees regardless of their kind. Accepted values: function, method, type, constant, variable, import. Omit to use all matching roots.
symbol *stringSymbol name to analyze (e.g. 'GetCallers', 'auth.Validate')
get_overviewSTART HERE when exploring a codebase. Returns top-level structure, node counts, cross-reference stats, and a usage guide for all tools.
get_sheaf_statusReturns the ley-line daemon's sheaf cache state (generation counter, valid/total entries, defect score) AND the local subscriber state (whether mache is receiving sheaf.invalidate events, last event seen, last generation observed). Use to decide whether cached find_callers / find_definition / get_architecture results are still fresh after an edit. Returns {available: false, reason: ...} when the daemon is not reachable rather than erroring — safe to call periodically.
get_type_infoGet type signature and documentation for a symbol from LSP hover data. Returns the language server's type information (e.g. function signatures, struct definitions). If LSP data is missing and 'file' is provided, auto-enriches via ley-line daemon.
ParameterTypeDescription
filestringSource file path — triggers automatic LSP enrichment if _lsp_hover table is missing
kindstringOptional construct-kind filter to disambiguate when the same name appears in multiple kinds. Accepted values: function, method, type, constant, variable, import. Omit to return all kinds.
symbol *stringSymbol name to look up (e.g. 'NewEncoder', 'Model')
list_directoryBrowse the projected tree. Use instead of ls/find for 'what's in directory X?', 'list packages under Y'. Use empty path for root.
ParameterTypeDescription
exclude_testsbooleanExclude Test* and Benchmark* entries (default false). Recommended for large packages.
pathstringDirectory path (empty for root)
read_fileRead the text content of one or more file nodes. Pass a single path or a JSON array of paths for batch reads.
ParameterTypeDescription
modestringProjection: 'full' (default, whole content), 'signatures' (declaration line of every construct under a directory node — ~18x smaller than reading the file and needs no line offsets, best for orienting in unfamiliar code), or 'map' (names only).
pathstringSingle file node path
pathsstringJSON array of file node paths for batch read, e.g. ["path/a", "path/b"]
resolve_refResolve a typed cross-language ref token (scheme:locator) to its target. Part of the cross-language ref graph (mache-q43l, ADR-0016). Supports `mod:` (local-relative paths, ./X or ../Y, resolved against base_path — e.g. following a Terraform `module { source = ... }` reference) and `gomod:` (a Go import path, resolved via `go list` against the served project's own go.mod — e.g. `gomod:golang.org/x/sync/singleflight`). Other schemes return a `remote_hint` so the caller knows resolution was skipped. A successful resolution returns `graph_path`: pass it to list_directory/find_definition/find_callers/read_file to query the resolved code directly, no separate clone or ingest step needed.
ParameterTypeDescription
base_pathstringFile or directory the locator is interpreted relative to. Required for `mod:` locators; unused for `gomod:`.
token *stringTyped ref token in `scheme:locator` form (e.g. `mod:./modules/vpc` or `gomod:golang.org/x/sync/singleflight`).
searchSearch for symbols by name pattern. Use instead of grep -r for 'find functions named X', 'find all X*', 'search for *auth*'. SQL LIKE wildcards: % = any chars. role=definition finds declarations.
ParameterTypeDescription
limitnumberMax results (default 100)
pattern *stringSearch pattern, e.g. 'Login%' or '%auth%'
rolestringFilter by role: 'definition' (where symbol is declared), 'reference' (where symbol is used). Default: returns references.
typestringFilter by construct type in path, e.g. 'functions', 'methods', 'types', 'structs'
semantic_searchFind code by meaning using embedding similarity. Use for 'find code that does X', 'functions related to authentication', 'error handling patterns'. More flexible than pattern search — finds conceptually similar code even without exact name matches. Requires ley-line daemon with --embed flag.
ParameterTypeDescription
knumberMax results (default 10)
query *stringNatural language description of what you're looking for
write_fileWrite new content to a source file node. Pipeline: validate (tree-sitter, always) → format (gofumpt/hclwrite, opt-out via format=false) → atomic splice into source file → update graph. The node must have a source origin. Set format=false when the caller (LLM, pre-commit) already owns formatting and wants mache to splice verbatim.
ParameterTypeDescription
content *stringNew content to write
formatbooleanRun the language formatter (gofumpt for Go, hclwrite for HCL) before splicing. Default true. Set false when formatting is owned upstream — validation still runs.
path *stringFile node path (e.g. 'go/graph/methods/MemoryStore.GetCallees/source')

Security checks

6 checks have not been run yet.

Questions

About Mache

How do I install Mache?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Mache safe to use with an AI agent?

Its trust score is 53 out of 100 (fair). Conduid hasn't run static security checks on this repository yet, so review the source yourself before granting it credentials. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Mache still maintained?

Yes — the last commit was 2 days ago. The repository has 46 stars and 2 forks.

What tools does Mache provide?

Conduid read 20 tools from the source: find_callees, find_callers, find_clones, find_definition, find_smells, get_architecture, get_communities, get_dataflow and 12 more. 17 of them publish their parameters, listed under Tools above.