Rockhopper MCP Server

Rockhopper MCP Server

Enables AI tools like Claude, Cursor, and Copilot to interact with your Rockhopper workspace, including enrolled files, version history, reviews, comments, and cell-level change tracking.

Category
访问服务器

README

Rockhopper MCP Server

MCP (Model Context Protocol) server for Rockhopper. Lets AI tools like Claude, Cursor, and Copilot interact with your Rockhopper workspace — enrolled files, version history, reviews, comments, and cell-level change tracking.

Prerequisites

  • Node.js 18+
  • A Rockhopper account with at least one enrolled file
  • (Optional) A Personal Access Token — only required for headless / CI / scripted setups

Authentication

The server supports two auth modes. OAuth (recommended) is the default — no token to copy and paste. PAT stays available for headless scenarios.

OAuth (recommended)

On first launch, the server prints a short verification code to stderr and a URL to visit. Sign in once in your browser — the resulting bearer token is stored in your OS keychain (Keychain on macOS, Credential Manager on Windows, libsecret on Linux). Subsequent launches pick the token up silently.

Nothing to configure — just launch the server with no ROCKHOPPER_TOKEN set:

npx @rockhopper-co/mcp-server

You'll see (on stderr):

Rockhopper — sign in to authorize this MCP client.
Open: https://app.rockhopper.co/device?user_code=ABCD2345
(or visit https://app.rockhopper.co/device and enter code: ABCD2345)

Tokens default to a 60-minute lifetime. When yours expires, the next launch silently re-runs the device flow.

Linux: requires libsecret to be installed (apt-get install libsecret-1-dev on Debian/Ubuntu, dnf install libsecret on Fedora). If unavailable, fall back to the PAT path below.

Personal Access Token (headless / CI)

For non-interactive setups, generate a PAT in the Rockhopper web app under Settings > Personal Access Tokens (read-only or read-write scope) and set it as ROCKHOPPER_TOKEN. PATs take precedence over OAuth — if ROCKHOPPER_TOKEN is set, the device-grant flow is skipped.

Setup

1. Install

npm install -g @rockhopper-co/mcp-server

Or run directly with npx:

npx @rockhopper-co/mcp-server

2. Configure your AI tool

Claude Desktop / Claude Code

Add to your MCP config (~/.claude/mcp.json or Claude Desktop settings):

{
  "mcpServers": {
    "rockhopper": {
      "command": "npx",
      "args": ["-y", "@rockhopper-co/mcp-server"],
      "env": {
        "ROCKHOPPER_API_URL": "https://api.rockhopper.co"
      }
    }
  }
}

Leave ROCKHOPPER_TOKEN out to use OAuth (recommended). Set it if you want PAT auth instead.

Cursor

Add to .cursor/mcp.json in your project:

{
  "mcpServers": {
    "rockhopper": {
      "command": "npx",
      "args": ["-y", "@rockhopper-co/mcp-server"],
      "env": {
        "ROCKHOPPER_API_URL": "https://api.rockhopper.co"
      }
    }
  }
}

Environment Variables

Variable Required Default Description
ROCKHOPPER_TOKEN No Personal Access Token (starts with rh_pat_). When unset, OAuth device-grant flow runs on first launch.
ROCKHOPPER_API_URL No https://api.rockhopper.co Rockhopper API base URL

Postman

A starter Postman collection + environment files are available in postman/ for gateway smoke testing (/healthz, /mcp initialize, /mcp tools/list) across local/dev/staging/production.

Regenerate artifacts with:

npm run generate:postman

Available Tools

Tool Description
list_files List enrolled Excel files with optional search filter
get_file_versions Get version history for a specific file
get_file_comments Get comments and threaded discussions on a file
get_reviews Get review requests for a version or file
get_cell_history Get change history for a specific cell across versions
search_files Search enrolled files by name
get_unattributed_changes Get pending cell changes not yet committed to a version

Available Resources

Resource URI Description
Enrolled Files rockhopper://files All enrolled files in workspace
File Detail rockhopper://files/{fileMsId} Details for a specific file
File Versions rockhopper://files/{fileMsId}/versions Version history for a file
Version Detail rockhopper://versions/{versionId} Single version details
File Comments rockhopper://files/{fileMsId}/comments Comments on a file
Version Reviews rockhopper://versions/{versionId}/reviews Reviews for a version
Review Detail rockhopper://reviews/{reviewId} Single review details
Team Detail rockhopper://teams/{teamId} Team details with members
Unattributed Changes rockhopper://files/{fileMsId}/changes Pending changes

Available Prompts

Prompt Description
summarize-file-changes Summarize recent version changes and unattributed edits for a file
pending-reviews Show all pending review requests for the latest version of a file
unresolved-comments List all unresolved comments on a file for follow-up
file-overview Comprehensive overview: versions, comments, reviews, and changes

Write Tools (requires read-write scope)

Tool Description
create_version Commit uncommitted changes as a new semver version (major/minor/patch)
discard_changes Discard all uncommitted changes, revert to latest committed version
add_comment Add a comment to an enrolled file (optionally at a cell)
reply_to_comment Reply to an existing comment thread
resolve_comment Mark a comment as resolved (author only)
create_review_request Request a review on a file version
approve_review Approve a review request (assigned reviewer only)
cancel_review Cancel a pending review request (requester only)
update_file_description Update the display name of an enrolled file

Development

# Install dependencies
npm install

# Run in dev mode (auto-restart on changes)
npm run dev

# Build
npm run build

# Run tests
npm test

# Type check
npm run typecheck

Security

  • Tokens are scoped to the creating user — the MCP server can only access data the user has permission to see
  • read-only tokens cannot perform write operations (comments, reviews)
  • All API calls go through Rockhopper's existing authorization guards
  • Tokens can be revoked instantly from the Settings page
  • The MCP server runs locally and communicates with the API over HTTPS

Architecture

AI Tool (Claude/Cursor) <--stdio--> mcp-server <--HTTPS--> Rockhopper API <--> PostgreSQL

The MCP server is a thin adapter. It translates MCP tool/resource requests into Rockhopper REST API calls, authenticated with the user's PAT. All authorization is enforced server-side — the MCP server has no direct database access.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选