About bgauryy/octocode-mcp
bgauryy/octocode-mcp is an MCP server published by bgauryy in the Data category: research, analysis and discovery across GitHub and npm in real time. Conduid read 15 tools from its source: build_graph, check_graph, diff_graph, discover, get_task, link_graph and 9 more. No package is published for it, so it installs from a source checkout.
The bgauryy/octocode monorepo this package is published from has 972 stars and 80 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is 9.1.1 (15 Dec 2025). It follows 9.1.0 (15 Dec 2025), and the 5 most recent releases go back to 7.0.10 (10 Nov 2025). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include devtools.
Install
git clone https://github.com/bgauryy/octocodeTools (15)
build_graphBuild the stitched code graph of a file or directory, without a viewer. Returns the result directory with file, import and call counts and the LSP state: the result for query_graph, refresh_graph and diff_graph.check_graphCheck dependency rules over a saved graph, as CI does: forbidden, allowed and required rules (paths as regular expressions over file ids and pkg:<name>; reachable, circular with via and viaOnly, dependencyTypes, $1 captures, a load per rule) from .octocode/graph-rules.json at the graph root. Returns each violation with its chain of imports, each hop with its line and kinds. A baseline marks known violations, which never fail; since refreshes changed chunks and compares against a usable merge-base graph, or explicitly reports all violations when no base is available. An error violation the baseline does not list makes the result an error.diff_graphCompare two saved snapshots, such as a PR merge-base and head. Returns snapshot identities, coverage limits, declaration and call changes with witnesses, import semantics and architectural review findings. With result alone: compare its previous refresh to now. Large answers page; call next.tool with next.arguments unchanged until no next remains. Saved structural data cannot establish body-only source changes.discoverUse when resolving configured peers before sending. Returns every Agent Card or its failure.get_taskUse when checking an asynchronous or uncertain task. Returns its state and artifacts; use the returned task ID.| Parameter | Type | Description |
|---|---|---|
| peer * | string | |
| task_id * | string |
link_graphRecord a link between files or symbols that static rules cannot settle (a doc's ambiguous or unconfirmed mention, a config a file reads, a concept spread over files), with quoted evidence; the tool verifies every quote before it stores the link, and every build re-checks it. Find candidates with query_graph `links --unresolved`. Returns the stored link with its confidence (candidate, likely, confirmed), or the refusal reason.open_graphShow the live code graph of a file or directory in the browser viewer (an open viewer for it is reused), or reopen a saved result. Returns the viewer URL; questions typed there arrive as <channel> messages.query_graphAnswer a structural question from a saved graph: callers, impact, dependency paths, cycles, rankings, critical code. Start with `search <name>`, then `about <file|symbol>`. Answers page whole evidence under an approximate token budget (--tokens N); follow next.query unchanged until absent. Source evidence cites path:line; aggregates are graph measurements; readAs explains interpreted words, freshness and coverage describe gaps, and next.read/confirm lead to source or LSP. With path instead of result, the open viewer answers and highlights the rows.recordsRepository history and persistent coordination records.| Parameter | Type | Description |
|---|---|---|
| input * | object | Arguments for this type; {} when none. |
| type * | string | Enabled operation. |
refresh_graphUpdate a graph after edits: rebuilds the changed semantic snapshot, reusing native parsed facts, then checks and measures the graph again. Returns the time and the rebuilt chunks; the replaced graph stays for diff_graph. An open viewer updates in place.replyAnswer a viewer chat message; the answer appears in the viewer's chat drawer.wiki_lintCheck the wiki against the graph and files. Returns stale or missing pages and notes, invalid citations and broken links; does not judge prose contradictions.wiki_noteReplace a wiki page's agent notes with this markdown; the viewer shows the updated page.wiki_promoteAppend an answer to a wiki page's notes with its date and source: the latest reply to a chat_id, or text. Without slug: the page of the file asked about.wiki_readRead a saved or open graph wiki page by slug or the community holding a file. Returns markdown; large answers return structured pages. Follow next.tool with next.arguments unchanged to replay the retained answer.Security checks
From the bgauryy/octocode monorepo, not this package alone.
Static checks derived from the repository 3 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.9K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by yarn.lock and packages/octocode-engine/Cargo.lock.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
1 check has not been run yet.
Releases
From the bgauryy/octocode monorepo.
README
The repository's README runs to about 3.9K words, fetched 3 days ago. The original in the repository is authoritative.
Read full README