About the Ref Plans MCP Server
Ref Plans has its own MCP server, separate from the Ref Context MCP server. It lets coding agents read, write, and manage your plans directly. The streamable HTTP endpoint is available athttps://api.plan.ref.tools/mcp.
Two modes
Plan-specific mode — Work on a single plan by appending the plan ID to the URL:Authentication
The Ref Plans API accepts authentication in three ways:- As a header:
x-ref-api-key: YOUR_API_KEY - As a query parameter:
?apiKey=YOUR_API_KEY - OAuth: Include neither header nor query param and your MCP client will initiate OAuth sign-in.
Team-scoped access
To access plans under a specific team, add the team ID as a query parameter:Available tools
Plan-specific mode provides:Read— Read the current plan contentWrite— Write or replace plan contentEdit— Edit specific sections of the planManual— Access built-in planning guidance topicsComments— Read and write comments on the planPrLinks— Attach pull request links to the plan
List— List your plansCreate— Create a new plan
Agent orchestration tools
When agent orchestration is enabled in Factory Settings, these additional tools become available in both plan-specific and general mode:LaunchAgent— Launch a sub-agent on Cursor, Devin, or ref-thread to work in parallel. Specify the harness type, a prompt with full context, and the plan IDs to associate the agent with.SendMessage— Send messages to child agents or back to a parent agent. Used for coordination — child agents report completion (with PR URLs), and parents send follow-up instructions.
- Factory Settings enabled — Go to Settings > Factory MCP at plan.ref.tools and toggle on the master switch
- Per-harness toggles — Enable the specific harnesses you want to use (Cursor, Devin)
- API keys configured — Set up Cursor and/or Devin API keys in Settings > Agent Settings
GitHub tools
A separate set of MCP tools for working with GitHub issues and pull requests is available at:GetIssue— Get issue details and comments from an indexed repositoryCommentOnIssue— Post a comment on a GitHub issueSearchIssues— Search issues in an indexed repositoryReadPR— Read PR details, list changed files, and read diffs for specific filesReviewPR— Submit a review (approve, request changes, comment) on a PRMergePR— Merge a PR or mark a draft PR as ready for reviewSearchPRs— Search pull requests in an indexed repository
- GitHub account connected at ref.tools/resources
- Repos added — Add the repositories you want to use with GitHub tools
ReviewPR and MergePR availability depends on your GitHub permissions settings. See the GitHub integration page for setup details.
Installation Guides
Choose your coding environment below to get started:Cursor
Connect Cursor to Ref Plans.
Claude Code
Connect Claude Code to Ref Plans.
Claude Desktop
Connect Claude Desktop and Web to Ref Plans.
VS Code
Connect VS Code to Ref Plans.
Antigravity
Connect Antigravity to Ref Plans.
Windsurf
Connect Windsurf to Ref Plans.
Cline
Connect Cline to Ref Plans.
Kiro
Connect Kiro to Ref Plans.
Roo Code
Connect Roo Code to Ref Plans.
Goose
Connect Goose to Ref Plans.
Amp
Connect Amp to Ref Plans.
Augment
Connect Augment to Ref Plans.
ChatGPT
Connect ChatGPT to Ref Plans.
Devin
Connect Devin to Ref Plans.
OpenCode
Connect OpenCode to Ref Plans.
Codex CLI
Connect Codex CLI to Ref Plans.
Droid CLI
Connect Factory Droid CLI to Ref Plans.
Gemini CLI
Connect Gemini CLI to Ref Plans.