Octopus MCP Server
Octopus Code Review — 编辑器插件
将 Octopus AI 代码审查带入你的编辑器。本仓库同时包含:
一个 MCP 服务器(
@octp/mcp),将 Octopus 以工具形式暴露出来,以及一个面向 Cursor 和 Claude 市场的插件,用于接入该服务器。
工具
工具 | 功能 |
| 验证连接并显示你的令牌属于哪个 Octopus 组织。 |
| 审查你的工作区改动。传入 |
| 向 Octopus 询问你的代码或过去的审查(回答会使用你已索引的仓库 + 审查历史)。 |
Related MCP server: mcp_review_code_tool
获取令牌
这些工具使用 Octopus 组织 API 令牌(oct_...)进行身份验证:
npx @octp/cli login或在你的 octopus-review.ai 设置中创建一个。将其放入插件配置中(切勿放入仓库)。
安装
Cursor — 从市场安装 "Octopus Code Review",然后在插件配置中设置你的 OCTOPUS_TOKEN。
Claude — 添加此市场并安装插件:
claude plugin marketplace add octopusreview/octopus-plugin
claude plugin install octopus-review然后在提示时设置你的令牌(作为敏感用户配置值存储)。
任何 MCP 客户端 — 直接运行服务器:
OCTOPUS_TOKEN=oct_... npx -y @octp/mcp配置
变量 | 必填 | 默认值 |
| 是 | — |
| 否 |
|
开发
npm install
npm run build
OCTOPUS_TOKEN=oct_... node build/index.js # a stdio MCP serverMIT 许可。Octopus 本身是独立产品;此插件仅代表你调用其公共 API。
Available Tools
3 toolsoctopus_askAsk OctopusA
Ask Octopus a question about your code or a past review. Octopus answers with context from your indexed repositories and review history.
Inputs: question (required), repoId, conversationId.
octopus_review_changesReview current changes with OctopusA
Run an Octopus code review on a unified diff (uncommitted/working changes). Pass diff directly, or pass repoPath and Octopus will run git diff for you. Returns findings and a summary.
Inputs: diff, model, title, repoPath.
octopus_statusOctopus statusA
Check the Octopus connection and show which organization the current API token belongs to. Use this to verify setup.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool handles a clearly distinct responsibility: verifying connectivity, reviewing a diff, and asking follow-up questions. There is zero overlap that could cause an agent to select the wrong tool.
All tools follow the same snake_case convention with the `octopus_` prefix, creating a predictable pattern. The verb-like suffixes (`status`, `review_changes`, `ask`) are consistent in style and clearly convey action.
At 3 tools, the server is at the minimal end of the ideal range, yet each tool genuinely earns its place and the count is well-scoped for the server's purpose. A couple of additional tools (e.g., configuration or history browsing) could make it feel more substantial.
The core workflow of connect → review → ask follow-ups is fully covered. Minor gaps include the lack of a direct way to list past reviews without using `octopus_ask` and no configuration or preference settings, but these are workable for common use cases.
Related MCP Connectors
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
AI code review for GitHub PRs with an MCP autofix loop for Claude Code and Cursor
Team memory for AI coding agents and code reviews, reviewed by humans and served over MCP.
The OpenRouter MCP server plugs OpenRouter into the AI tools you already use. Once connected, your assistant can pull live OpenRouter data (models, prices, your credits, rankings, and docs) and send quick test messages, all without leaving your editor.
Related MCP Servers
- AlicenseBqualityDmaintenanceAI-powered code review server that analyzes git diffs and PRs with context from project guidelines and task lists. Supports integration with Claude Code and Cursor via MCP.3MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for code review using OpenRouter API. Supports local code review via MCP or web interface.12ISC
- AlicenseNot gradedqualityDmaintenanceMCP server for reviewing code changes using LLMs, supporting Copilot, Ollama, and OpenAI-compatible endpoints.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for automated code review using AI agents. It analyzes code diffs or file paths for bugs, security issues, and style violations.MIT