Skip to main content
Glama
Octopus MCP Server

Octopus MCP Server

Octopus Code Review — 编辑器插件

将 Octopus AI 代码审查带入你的编辑器。本仓库同时包含:

  • 一个 MCP 服务器(@octp/mcp),将 Octopus 以工具形式暴露出来,以及

  • 一个面向 Cursor 和 Claude 市场的插件,用于接入该服务器。

工具

工具

功能

octopus_status

验证连接并显示你的令牌属于哪个 Octopus 组织。

octopus_review_changes

审查你的工作区改动。传入 diff,或传入 repoPath,它会为你执行 git diff。返回发现的问题 + 摘要。

octopus_ask

向 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

配置

变量

必填

默认值

OCTOPUS_TOKEN

是

—

OCTOPUS_API_URL

否

https://octopus-review.ai(自托管 Octopus 时设置此项)

开发

npm install
npm run build
OCTOPUS_TOKEN=oct_... node build/index.js   # a stdio MCP server

MIT 许可。Octopus 本身是独立产品;此插件仅代表你调用其公共 API。

Available Tools

3 tools
octopus_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

    A4.1/5.0

    Scored across 3 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    Related MCP Servers