Context7
Up-to-date docs for AI agents
作者による説明(英語の原文)
AGENTS.md and project memory for AI coding agents that stays correct: rules checked against git
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"repocanon": {
"command": "npx",
"args": [
"-y",
"repocanon",
"mcp"
]
}
}
}ターミナルでこれを実行します
claude mcp add repocanon -- npx -y repocanon mcpプロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"repocanon": {
"command": "npx",
"args": [
"-y",
"repocanon",
"mcp"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"repocanon": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"repocanon",
"mcp"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント awalhadi で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(0.7.1)がレジストリに届いたのは5 日前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには:Context7, Codebase Memory, Exa
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
Verified AGENTS.md and project memory for AI coding agents. One small .ai/ folder tells Claude Code, Cursor, GitHub Copilot, OpenAI Codex, Gemini CLI, Windsurf and Cline how your project works, and git checks that it is still true.
Sponsored by [Framimo](https://framimo.com) — turn any clip into GIF, WebP, AVIF or MP4, right in your browser.
In 30 seconds
AGENTS.md + .ai/) that every AI coding agent reads: the rules, decisions and gotchas your code can't show..cursor/rules, Copilot instructions, GEMINI.md, .windsurfrules, .clinerules…RepoCanon keeps one knowledge layer (AGENTS.md + .ai/), points every tool you use at it, and uses git to tell you which docs went stale after a code change. It runs locally, calls no LLM and has zero dependencies.
Requires Node.js 18+ and a git repository.
cd your-project
npx repocanon init # pick your AI tools (↑/↓, space, enter)
What you'll see
◆ repocanon init · shop
Stack Node.js, Express Tools Claude Code, Cursor
Files
Generated ✓ Module map 2 module(s) → .ai/INDEX.md · Scoped rules up to date ✓ Skills 3 file(s) updated: .ai/skills/rc-verify-change/SKILL.md, .claude/skills/rc-verify-change/SKILL.md, .agents/skills/rc-verify-change/SKILL.md
✓ Knowledge layer created
Next npx repocanon setup connect the MCP server to your tools npx repocanon prompt fill brief for your agent to fill the docs (or ask it over MCP) npx repocanon doctor check the result
Then let your agent fill the docs. Either:
npx repocanon setup, details): tell your agent *"Fill the RepoCanon docs"*. It calls rc_prepare_fill and writes .ai/*.md itself.npx repocanon prompt fill and paste the output into your agent.Finally, check the result and commit:
npx repocanon doctor # lint: size caps, TODOs, broken paths, token budget, content agents can infer
git add -A && git commit -m "Add RepoCanon knowledge layer" npx repocanon stamp --all # mark the docs verified at that commit git commit -am "Verify RepoCanon docs"
What doctor shows
◆ repocanon doctor · shop
Warnings (1) ! scoped rule files are out of date (2: .cursor/rules/rc-billing.mdc, AGENTS.md) — run: npx repocanon rules
Info (1) i 27 TODO placeholder(s) remain in .ai/ — run: repocanon prompt fill
Token budget Entry context (AGENTS + PROJECT + INDEX) ~662 tokens Whole repo source ~820 tokens Entry share of the repo 80.73% → estimates: word-aware for docs, bytes/4 for code
Freshness █████████░ 91/100
! 1 warning · 1 note(s)
Next npx repocanon prompt fill npx repocanon rules npx repocanon doctor run again after fixing
Every command prints the same shape: a header, rows, a one-line verdict, then Next: the exact commands to run. Symbols always come with a word, so the output also works without colour (NO_COLOR=1, --no-color, CI logs, screen readers).
| Symbol | Means | Symbol | Means | |
|---|---|---|---|---|
✓ | ok / fresh | + | file created | |
! | warning / stale | ~ | file updated | |
✗ | error / broken | - | file removed | |
i | info / unverified | = / · | unchanged |
Every command has --help with options and examples: npx repocanon status --help. --json and --format=github give machine-readable output for scripts and CI.
npx repocanon adopt --dry-run # preview: what goes where, what gets removed
npx repocanon adopt # import into .ai/ (creates it if needed) git add -A && git commit -m "Adopt RepoCanon" npx repocanon adopt --move # originals become pointers, so tools stop reading two copies
adopt reads CLAUDE.md, GEMINI.md, .windsurfrules, .clinerules, .github/copilot-instructions.md, .cursorrules, always-on .cursor/rules/*.mdc, repo-wide Copilot instructions and Cline's memory-bank/. It routes each section to the right doc (glossary → DOMAIN, decisions → DECISIONS, progress → STATE, overview → PROJECT, the rest → CONVENTIONS), drops directory trees, dependency lists, pasted code and secrets, and tells you how many tokens that saved. Rules that are already scoped to certain files stay where they are. Re-running skips what was already imported; --move never touches a file with uncommitted changes.
AGENTS.md entry point every agent reads: commands, a digest of your rules and decisions, Definition of Done
.ai/ PROJECT.md purpose, stack, boundaries INDEX.md path → module map (auto block refreshed by analyze) DOMAIN.md business rules, states, invariants, glossary CONVENTIONS.md coding style and patterns DECISIONS.md why things are built this way STATE.md current focus and recent changes modules/ .md one doc per module: purpose, invariants, flow, code map, gotchas .repocanon.json config (presets, modules, excludes, chosen tools) CLAUDE.md, .cursor/… small pointer files, only for the tools you pick
Docs are a semantic index, never a copy of the code. When docs and code disagree, code wins and the doc gets fixed.
init opens a picker for the AI tools that should read the knowledge layer. AGENTS.md is always written; each tool you pick gets a small pointer file:
| id | Tool | File written |
|---|---|---|
claude | Claude Code | CLAUDE.md (@AGENTS.md import) |
cursor | Cursor | .cursor/rules/project.mdc |
copilot | GitHub Copilot | .github/copilot-instructions.md |
gemini | Gemini CLI / Antigravity | GEMINI.md |
windsurf | Windsurf | .windsurfrules |
cline | Cline | .clinerules |
codex | OpenAI Codex / ChatGPT | nothing extra — reads AGENTS.md natively |
init reopens the picker with your saved choice and marks each tool set up or detected. If nothing changed it prints Up to date.init offers to remove its RepoCanon block. Only that block goes: your own text stays, and a file is deleted only if nothing else is in it.--targets=claude,cursor, --targets=all or --targets=none; --yes keeps the saved choice; --prune removes blocks of tools you no longer select.npx repocanon rules turns each filled module doc into rule files that a tool loads only while the agent edits that module's files — no tool call, no extra tokens anywhere else:
| Tool | File | Loaded when editing |
|---|---|---|
| Cursor | .cursor/rules/rc- .mdc (globs, alwaysApply: false) | files under the module's code_paths |
| GitHub Copilot | .github/instructions/rc- .instructions.md (applyTo) | the same files |
| Codex, Claude Code (opt-in) | /AGENTS.md with a pointer to the module doc | anything in that folder |
.ai/modules/ .md stays the single source. Generated files say so in their header; edit the doc, then run rules again.init. Nested AGENTS.md pointers are off by default; turn them on with "nestedAgents": true in .repocanon.json.init runs rules for you, doctor warns when the files are out of date, and rules --check fails CI until they're regenerated.npx repocanon skills (also run by init) writes an Agent Skill that tells agents how to verify a change in *this* repo: .ai/skills/rc-verify-change/SKILL.md. Only its one-line description sits in the agent's context; the body loads when the agent is about to say "done".
package.json / composer.json scripts (run with your package manager), Makefile, justfile, Taskfile.yml, and the run: steps of .github/workflows/*.yml or .gitlab-ci.yml. Each one says where it was found, duplicates are merged, and steps run in order: format → lint → typecheck → test (an aggregate make check comes first)..ai/skills/ is the one place to edit. Change the generated skill and RepoCanon stops regenerating it; add your own .ai/skills/ /SKILL.md and it is copied out too.| Tool | Skills folder |
|---|---|
| Claude Code | .claude/skills/ /SKILL.md |
| Cursor, Codex, Gemini CLI, GitHub Copilot (VS Code) | .agents/skills/ /SKILL.md |
Copies are written only for the tools you chose, carry a "Generated by RepoCanon" header, and are removed when you deselect the tool. A skill of the same name that RepoCanon didn't write is never overwritten. Skills with an invalid name (lowercase, hyphens, must match the folder), a missing description or a secret are not copied, a
冒頭だけを表示しています。続きはリポジトリで読めます