GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者による説明(英語の原文)
Committed, machine-readable codebase context and code map that tells agents where to look.
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"prelude": {
"command": "npx",
"args": [
"-y",
"prelude-context",
"serve"
]
}
}
}ターミナルでこれを実行します
claude mcp add prelude -- npx -y prelude-context serveプロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"prelude": {
"command": "npx",
"args": [
"-y",
"prelude-context",
"serve"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"prelude": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"prelude-context",
"serve"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント adjective-rob で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(1.11.0)がレジストリに届いたのは33 日前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには:GitHub, Desktop Commander, Cloudflare MCP
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況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
Cloudflare MCP servers
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
Project memory and a code map for AI agents: where to look, why the code is the way it is, and what a change will touch.
An agent with grep can find where a word appears. It cannot find out why the code is shaped the way it is, which tests cover a file, how many other files depend on it, or what the last session learned. That knowledge isn't in the source.
Prelude keeps it in the repo. It scans the project once and writes a small set of JSON files to .context/: the stack, the architecture, the constraints, the decisions, and a code map of every module, its exports, and what imports what. You commit those files, and agents add to them as they work. Every later session starts from them, through an MCP server, a generated CLAUDE.md / AGENTS.md, or plain stdout.
No embeddings, no server to host, no network calls. Regex heuristics over TypeScript/JavaScript, Python, Go, and Rust.
cd your-project
npx prelude-context init # writes .context/
Or install it, which gives you the prelude command used in the rest of this README:
npm install -g prelude-context
prelude init
Then give it a task phrase:
prelude locate preserve manual edits during update --limit 2
1. src/core/merger.ts · src/core (Core business logic) · score 32
exports: MergeResult, MergeChange, ContextMerger, trackMapFields why: decision: Manual edits are sacred, content preserve×25, manual×31, edit×9, update×6, matches all terms impact: imported by 4 files · tests: tests/map-merge.test.ts, tests/mcp-server.test.ts, tests/merge-preserve.test.ts decisions: Manual edits are sacred
One call returns the files to read, why each was picked, what depends on them, the tests to run afterwards, and the recorded decision that constrains the change. That is real output from this repository, which keeps its own .context/ committed. Browse it to see what Prelude writes.
Requires Node.js >= 20.19.
your-project/
└── .context/ ├── project.json what the project is ├── stack.json language, runtime, frameworks, tooling ├── architecture.json type, patterns, directories, entry points, routes ├── constraints.json rules and preferences ├── decisions.json architecture decisions and their rationale ├── map.json modules, exports, import graph, hub files ├── changelog.md project timeline └── .prelude/ state: which fields were inferred, which you edited
Commit .context/. Gitignore .context/*.session.json.
prelude compact prints the whole thing as one dense line per section, sized for a system prompt (a few hundred tokens for this repo):
[project] prelude-context | The open standard for expressing and maintaining machine-readable context about a codebase
[stack] TypeScript/JavaScript Node.js >=20.19.0 | pnpm | testing: Vitest [arch] type=cli | patterns: Utility modules | entry: bin/prelude.ts | dirs: bin (Executable entry points), src/commands (Command handlers), src/core (Core business logic), src/mcp (MCP server), ... [decisions] Manual edits are sacred (accepted); Regex heuristics, not AST parsers (accepted); Schemas are the contract (accepted); ... [map] hubs: src/utils/fs.ts(25), src/runtime/context.ts(20), src/schema/index.ts(18), ... | src/core (Core business logic): state-manager.ts, infer.ts, map-scanner.ts +15 | ...
| Question | Where Prelude gets the answer |
|---|---|
| Why is this code the way it is? | decisions.json: decisions and rationale, recorded by you or by an agent with prelude_record_decision |
| What depends on this file? | map.json: the resolved import graph, importer counts, hub files |
| Which tests cover it? | map.json: the test files that import it |
| What did the last session learn about this module? | Module notes, written with prelude annotate or prelude_annotate_module and never overwritten |
| What must I not do here? | constraints.json |
| How does this repo talk to that one? | relatedProjects in project.json, served across repos in workspace mode |
prelude locate attaches the first four to every file it returns. On a freshly initialised project the decisions and notes are empty; the import graph and tests are there from the first run, and the rest accumulates as people and agents record it.
locate find files?bench/locate-bench.ts replays a repository's git history: each commit subject is a query, the files that commit changed are the answer, and the repo is checked out at the parent commit so nothing sees the change itself. The baseline is a grep for each query term over the same files, ranked by distinct terms matched. Share of queries with a correct file in the top 8:
| Repo | Source files | Ranked grep | prelude locate |
|---|---|---|---|
| cobra (Go) | 37 | 95% | 96% |
| flask (Python) | 82 | 83% | 86% |
| hono (TypeScript) | 361 | 88% | 97% |
| ripgrep (Rust) | 100 | 64% | 79% |
| typer (Python) | 629 | 76% | 74% |
| express (JavaScript) | 147 | 87% | 90% |
| Average | 82% | 87% |
The top result is correct 48% of the time, against 39% for grep. Up to 100 commits per repo. The scoring weights were chosen using these same six repositories, so treat the numbers as in-sample; run the script on your own repo to check (see CONTRIBUTING.md). File-finding is the baseline here, not the point: the table above is.
Keep them. Prelude generates both (prelude export --format claude-md, --format agents-md) and can bootstrap from one you already have (prelude init --from-claude-md). The difference is what sits underneath:
prelude diff --check exits 1 when the committed context no longer matches the code, so CI catches the drift.prelude locate turns a task phrase into a short list of files with the reason each was picked, the tests that cover it, and the decisions that apply. A prose file can't do that.prelude update refreshes the first kind and never touches the second.Prelude runs as an MCP server over stdio.
From a project that has a .context/ directory, register the server with Claude Code:
claude mcp add prelude-context -- npx -y prelude-context serve
For any other client, the server command is npx -y prelude-context serve --root /path/to/project:
{
"mcpServers": { "prelude-context": { "command": "npx", "args": ["-y", "prelude-context", "serve", "--root", "/path/to/project"] } } }
prelude mcp-config --client claude-code | cursor | codex | claude-desktop prints the exact snippet for your machine and client. The read tools are annotated read-only, so clients that honour tool annotations can run them without asking.
| Tool | What the agent gets |
|---|---|
prelude_compact | The token-budgeted overview (about 800 tokens by default), including the [map] line |
prelude_locate | The files most relevant to a task phrase, each with reasons, importer count, covering tests, applicable decisions, and notes |
prelude_map | Hubs and modules, one module in detail, or one file's exports and importers |
prelude_query | Context filtered by topic, directory scope, or type |
prelude_record_decision | Appends a decision to decisions.json so later sessions inherit it |
prelude_annotate_module | Corrects a module's purpose or adds notes in map.json; never overwritten by update |
prelude_status | Which context files exist |
Resources: prelude://context/full, prelude://context/compact, prelude://context/map, and prelude://context/{type} for a single file.
Register each codebase once, register Prelude once in your agent harness, and every session can see all of your projects: what each one is, how they relate, and where to look inside any of them.
# once per repo
cd ~/code/backend && prelude init && prelude workspace add . cd ~/code/frontend && prelude init && prelude workspace add .
prelude mcp-config --workspace --client claude-code
In workspace mode every tool takes an optional project, and three more tools appear:
| Agent call | What it gets back |
|---|---|
prelude_projects | One block per project: purpose, stack, entry points, API surface, hub files, related projects |
prelude_locate(query="billing checkout") | Searches every project when project is omitted |
prelude_link_projects(from="frontend", to="backend", relation="consumes", contract="REST /api/v1, JWT bearer") | Records the relationship in frontend's project.json |
prelude_workspace_refresh | Rebuilds the workspace index |
prelude workspace list | index | status | remove manage the registry at ~/.prelude/ (override with PRELUDE_HOME).
The GitHub Action has two modes. Guard (check: "true") runs prelude diff --check and fails the job when the committed .context/ has drifted from the code. Update (the default) runs prelude update and opens a pull request when .context/ changed. Use both: guard pull requests, update on main.
# .github/workflows/prelude.yml
name: Prelude Context on: pull_request: push: branches: [main] paths: [package.json, pyproject.toml, Cargo.toml, go.mod, "src/**"]
jobs: check: if: github.event_name == 'pull_request' runs-on: ubuntu-latest steps:
冒頭だけを表示しています。続きはリポジトリで読めます