GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
A queryable graph of a codebase: impact, callers, tests to run, history. No model, no network.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"glasir": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/attackwave/glasir:v0.11.6",
"serve",
"/tree"
]
}
}
}在终端中运行这条命令
claude mcp add glasir -- docker run -i --rm ghcr.io/attackwave/glasir:v0.11.6 serve /tree粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"glasir": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/attackwave/glasir:v0.11.6",
"serve",
"/tree"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"glasir": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/attackwave/glasir:v0.11.6",
"serve",
"/tree"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 Attackwave 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.11.6)于昨天进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Docker。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Deterministic code intelligence for repositories. Glasir builds a local, queryable graph of definitions, references, dependencies, and change impact, then serves bounded evidence over MCP. It gives engineering tools structural answers instead of an unfiltered file dump: what calls this, what breaks if it changes, and how two symbols connect.
*Glasir is the tree with golden leaves that stands before Valhalla, "the fairest among gods and men" — a tree whose every branch is visible from the ground.*
One Rust binary. No Python, no Node, no database, no GPU, and no model anywhere in the index or query path — the same tree and the same question always produce the same answer.
Production deployments pair the Core with Glasir Control for tenant policy,
mTLS boundaries, audited administration, cross-repository review, and
provider pull-request checks.
Install with the package manager you already use:
brew install attackwave/glasir/glasir # macOS, Linux
scoop bucket add glasir https://github.com/Attackwave/scoop-glasir scoop install glasir # Windows
Or download the archive for your platform from Releases, check it against the .sha256 beside it or its build provenance (gh attestation verify --repo Attackwave/glasir), and put glasir on your PATH:
| Platform | Archive |
|---|---|
| Linux x86_64 | glasir- -linux-x86_64.tar.gz |
| Linux ARM64 | glasir- -linux-arm64.tar.gz |
| macOS Apple Silicon | glasir- -macos-arm64.tar.gz |
| macOS Intel | glasir- -macos-x86_64.tar.gz |
| Windows x86_64 | glasir- -windows-x86_64.zip |
The Linux binaries are statically linked and run on any distribution, including Alpine and older enterprise releases. A binary downloaded by hand on macOS is not yet notarized, so macOS refuses its first start; clear the flag once, after checking the checksum: xattr -d com.apple.quarantine glasir. Homebrew installs are not affected.
Clients that read the MCP registry list Glasir as io.github.Attackwave/glasir; that entry runs the container image with the repository mounted read-only.
Then, in the repository you want to ask about:
glasir install .
That finds the coding assistants installed on your machine — by their program on PATH, their settings in your home directory, or their files in the project — and registers Glasir with each, in the project's own configuration:
| Assistant | File |
|---|---|
| Claude Code | .mcp.json |
| Codex | .codex/config.toml |
| Gemini CLI | .gemini/settings.json |
| Qwen Code | .qwen/settings.json |
| Antigravity | .agents/mcp_config.json |
| Cursor | .cursor/mcp.json |
| VS Code (Copilot) | .vscode/mcp.json |
| OpenCode | opencode.json |
The server it registers runs with --watch, so the graph follows your edits while the assistant runs. It also installs git hooks that keep the graph current after a pull, checkout or rebase. For Claude Code it adds a SessionStart hook to .claude/settings.local.json: in an analysed tree, the session starts with a note to load the graph tools, because Claude Code defers MCP tools and an assistant that has not loaded them searches text instead. --no-hook skips both kinds. A registration file it creates holds absolute paths to your machine, so it is added to .gitignore; one your team already tracks is merged into, never replaced, and nothing in your home directory is touched. With no assistant detected it writes a neutral glasir-mcp.json for any MCP client. --platform picks one explicitly.
Several assistants on one tree share one server. What a client starts is a small relay to that tree's backend, which it starts when none runs: one graph, one watcher, whatever number of assistants are open. The backend ends a minute after the last client closes, and is started again when one returns. After ten minutes without a request it lets the graph go and stops watching, and the next request loads it again (--sleep-after , 0 keeps it). A relay a client forgets to close costs a few megabytes and no CPU. glasir servers lists what runs; --stop-replaced ends a server a client replaced without closing it. On Windows each client keeps its own server.
Most assistants ask before they start a new server: Claude Code and Qwen Code want the server approved, Codex and Gemini CLI read project settings only in a folder you have trusted, and Antigravity asks before its first use of an MCP tool. install prints the step for each one it wrote.
In Claude Code the plugin does the same without a step per repository, once glasir is on your PATH:
/plugin marketplace add Attackwave/glasir
/plugin install glasir@glasir
It serves whichever git repository a session starts in, and starts nothing elsewhere. Its generated files go into .git/info/exclude, so nothing tracked changes. Use the plugin or glasir install in a tree, not both: each brings its own copy of the server.
Restart the assistant and ask it something about the code: *"what breaks if I change parse_config?"*, *"how does a request reach the database?"*. The answers come from impact, query_graph, shortest_path and twelve more tools listed under What it serves.
glasir status . # what is registered, what the graph holds
glasir why "your question" # what the search saw, when an answer surprises you glasir view . # the graph as a map in the browser, one region per subsystem glasir review # the uncommitted change as a Markdown review: risk, dependents, tests glasir export . > graph.json # the graph as node-link JSON, for another tool glasir servers # running servers; --stop-replaced ends those a client replaced glasir uninstall . # remove the registration and the hooks
Everything your .gitignore files leave in, at every level of the tree, minus build output and dependencies (target, node_modules, dot-directories). A .glasirignore beside them uses the same syntax and wins over them, so it can both exclude more and bring back what git ignores:
# .glasirignore
!plan.md # untracked, but worth asking about !/reference/ # git ignores the whole directory ... /reference/scans/ # ... of which only this part stays out
A tree holding a copy of itself, such as an amalgamated header or a vendored snapshot, defines each name twice, and calls to an ambiguous name stay unlinked. overview names such directories; exclude the copy here.
As in git, a file inside an ignored directory comes back only once the directory does (!/reference/ above). Only ignore files inside the tree count — not your global excludes file and not .git/info/exclude — so the same commit gives the same graph on every machine, whatever each developer ignores locally.
Instruction files for coding assistants (AGENTS.md, CLAUDE.md, GEMINI.md and their .local.md variants, COPILOT.md, OPENAI.md, CHATGPT.md) and CONTRIBUTING.md, CHANGELOG.md, CODE_OF_CONDUCT.md are left out by default: they describe how to work on the code in the words a question is asked in, and outrank the code they describe. A project that wants one indexed names it in .glasirignore, e.g. !AGENTS.md. A change to either file takes effect on the next analysis, and immediately under --watch.
Of .github, the workflows, local actions and scripts/ are indexed although it is a dot-directory: a workflow's jobs are symbols, needs connects them, and uses: ./… and the scripts a step runs connect the job to those files, so impact on a script and review of a workflow see each other.
Search finds text. A graph preserves the relationships that make a repository behave as a system.
For example, answering "what is affected if authorize changes?" with search requires finding candidate files, interpreting each call site, and repeatedly reconstructing transitive dependencies. impact follows stored, provenance-labelled edges and returns affected symbols grouped by distance. Likewise, shortest_path shows the evidence-backed route between two symbols instead of asking a caller to infer one from unrelated file excerpts.
| Need | Search and file reading | Glasir |
|---|---|---|
| Find text mentioning a name | Useful | Useful |
| Find direct callers | Manual interpretation required | Direct graph query |
| Assess transitive impact | Reconstruct dependencies repeatedly | Bounded traversal with edge provenance |
| Explain how A reaches B | Infer a path from excerpts | Return a concrete path |
The graph does not claim to translate arbitrary natural language. Search uses deterministic identifier and text matching; unresolved or ambiguous symbols remain visible as such rather than being guessed.
Glasir ships regression benchmarks, not vendor-comparison claims. They compare the checked-in corpus with a documented grep-and-read baseline and fail when a configured recall floor regresses. Results change as the corpus, questions and implementation change, so this README intentionally does not publish static percentages or token counts.
glasir benchmark .
glasir benchmark . --check python3 bench/scale.py target/release/glasir --check # 100k vs 1M lines
Benchmark methodology defines the corpus, baseline, token estimate, limits, and interpretation. It also explains why results from this repository are not a substitute for an evaluation on a customer's code.
Indexing and query latency depend on source shape, parser tier, storage, hardware, and the requested graph traversal. The analyse command reports the measured cold-index time and graph size for a repository; running it a second time measures snapshot reuse. Evaluate performance with the exact release, repository shape, and deployment limits that will be used in production.
Snapshots are stored beside the source tree and validated before reuse. A warm start maps the stored graph instead of reparsing the full tree, provided the source and extraction configuration still match.
Fifteen MCP tools, over stdio for a local editor or Streamable HTTP for a remote agent:
overview — the subsystems of an unfamiliar tree and the way into each; in a Rust workspace its crates, and each subsystem named by its cratequery_graph — the subgraph relevant to a question; given a file's path, every definition in that fileshortest_path — how one symbol reaches anotherexplain_node — callers, callees and subsystem of one symbolimpact — what breaks if this changes, grouped by distancecycles — dependency cycles, compiler-resolved edges only by defaultget_code_snippet — the source a symbol names, from the range the parser recorded, so nothing has to open the file or guess a line; a Markdown section returns that section, not the whole document, and following: N reads on through the next N definitions. An assembly routine that branches or falls into another says where it continuesfind_callers — the direct callers of one symbol, as one list, and the definitions that use it by name without calling it (a type in a signature, a constant re只显示了开头部分;其余内容请在仓库中阅读