AR

agentic-research/mache

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

46 stars 2 forks 质量 70 趋势 32Apache-2.0

结构化数据的IDE风格导航——代码、JSON、YAML。跳转到定义,查找调用者,跟踪引用。可作为MCP服务器或挂载文件夹使用。

概览

Mache 将结构化数据投影为可导航的图。将声明式模式指向任何结构化源——JSON 文档、SQLite 数据库、源代码——mache,将投影展示为 MCP 工具或挂载的文件系统,使代理(或你)可以探索拓扑结构,而无需 grep 平面文件。 一个引擎,多个投影。示例/项目CVE订阅(NVD、KEV)、Notion导出、Trivy扫描结果、Terraform、Markdown、LLM对话日志以及使用与Go或Rust源项目相同的机制的审计轨迹。——最完善的投影,图中新增函数、类型、交叉引用、调用链、结构气味规则以及可选的LSP级丰富功能。 Mache(/mɑʃe/ mah-shay):来自纸浆——原料,被压碎后再成型。 这就是旗舰应用——代码智能在代码库上的30秒路径。

概述(AI 翻译)

Mache 将结构化数据投影为可导航的图。将声明式模式指向任何结构化源——JSON 文档、SQLite 数据库、源代码——mache,将投影展示为 MCP 工具或挂载的文件系统,使代理(或你)可以探索拓扑结构,而无需 grep 平面文件。

一个引擎,多个投影。examples/ 项目中的模式包含CVE数据源(NVD、KEV)、Notion导出、Trivy扫描结果、Terraform、Markdown、LLM对话日志和审计追踪,这些机制与项目Go或Rust源代码相同。代码智能是该引擎的旗舰应用——最成熟的投影,图中获得了函数、类型、交叉引用、调用链、结构嗅觉规则以及可选的LSP级丰富功能。

Mache(/mɑʃe/ mah-shay):源自纸浆——原料,被碾碎后再成型。

快速开始

这就是旗舰应用——在Go代码库上实现代码智能——的30秒路径。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Mache

Mache projects structured data into a navigable graph. Point a declarative schema at any structured source — JSON documents, SQLite databases, source code — and mache exposes the projection as MCP tools or a mounted filesystem, so an agent (or you) can explore the topology instead of grepping flat files.

One engine, many projections. The schemas in examples/ project CVE feeds (NVD, KEV), Notion exports, Trivy scan results, Terraform, Markdown, LLM conversation logs, and audit trails with the same machinery that projects Go or Rust source. Code intelligence is the flagship application of that engine — the most-developed projection, where the graph gains functions, types, cross-references, call chains, structural smell rules, and optional LSP-grade enrichment.

Mache (/mɑʃe/ mah-shay): from papier-mâché — raw material, crushed and remolded into shape.

Quick start

git clone https://github.com/agentic-research/mache.git
cd mache && task build && task install
mache init --global   # installs the keepalive HTTP daemon (:7532) + registers detected editors

That’s the 30-second path for the flagship application — code intelligence on a Go codebase. mache init --global installs a per-user supervisor (launchd on macOS, systemd --user on Linux) that keeps the shared mache HTTP daemon alive on localhost:7532 and registers it with Claude Code and any detected editors — no terminal to babysit. Then mache init (no flag) inside a project records what that project serves.

Two things new users hit:

  • HTTP is the canonical transport. One shared daemon serves every project, routing per session via the MCP roots protocol. --stdio exists only as an escape hatch for CI / sandboxes / headless agents and is never registered for editor use (see ADR-0022).
  • ley-line-open is a hard requirement, not an add-on. Since v0.18.0 mache has no in-process parser: leyline parse produces the _ast database that every source projection reads. task install provisions the pinned binary from a checkout; mache install does the same from a release asset or package-manager install, where there is no Taskfile. Point mache at a directory or a pre-built .db — both route through leyline; a pre-built .db just skips the parse step and can carry LSP/embedding enrichment.

To project non-code data instead, hand mache serve (or the root mount form, mache ) a schema with --schema and point it at your JSON or SQLite source — the example schemas cover NVD, KEV, Notion, Trivy, Terraform, and more.

在 GitHub 查看完整 README

安装

docker run --rm -i mache:0.22.0 serve --stdio /path/to/source
新手?先看 mcpskill.org 教程 →