Skip to main content
Use Oplane directly in your dev environment through the Model Context Protocol (MCP) or the Claude Code plugin. Get security recommendations and threat modeling assistance while you code.

Getting started

To connect Oplane MCP to your dev environment, visit your Oplane dashboard and follow the setup instructions for your specific environment. The setup process takes just a few minutes. Once connected, simply prompt your AI assistant with “Use Oplane” to get started. If you choose to create a new threat model, the entire workflow below runs automatically — from identifying use cases and threats to providing implementation advice and assessing your code.

Supported environments

Oplane works with any environment that supports the Model Context Protocol:
Add the following to your mcp.json configuration file:
For the highest-value use of Oplane, your agent should threat-model security-relevant changes before they are committed or pushed — not after a PR comment flags them. To make this a standing habit rather than a reaction, paste the block below into your project’s CLAUDE.md or AGENTS.md (whichever file your agent reads on startup). Once it’s there, your agent will see this instruction on every session and will reach for Oplane MCP automatically whenever it’s about to commit a change that touches authentication, access control, data handling, untrusted input, new endpoints, secrets, or infrastructure.
CLAUDE.md / AGENTS.md
Why each line matters:
  • Threat-model before committing — catches risks while the change is still cheap to fix, instead of after review.
  • Model the actual diff, not a summary — a model built from the agent’s own description only re-tests risks the agent already thought of. Feeding the real diff (or the PR threat model) surfaces blind spots.
  • Untrusted-input-inbound — explicitly nudges the agent to consider injection-style risks (log, audit, template, SQL) from external data, not only outward data leakage.
This is the same standing instruction Oplane MCP sends to Claude Code, Cursor, and GitHub Copilot on connect, and the same block embedded in Oplane’s PR review comments — pasting it into CLAUDE.md / AGENTS.md gives you the same behavior across every session, including ones that don’t start from a PR.

What You Can Do

Once connected, just tell your AI assistant what you want to do. Here are the workflows available:

Tool reference

These are the MCP tools available to your AI assistant. You don’t need to call them directly — they run automatically as part of the workflows above.
You can start by asking “Use Oplane to suggest threat modeling scopes” if you’re not sure where to begin.

Choosing a workspace

By default, threat models you create via MCP go to your personal workspace. To target a specific workspace, just mention it by name in your prompt:
  • “Use Oplane to threat model my auth changes in the workspace name workspace”
The agent will search your workspaces by name, find the match, and create the threat model there. You never need to look up workspace IDs manually.
If you’re not sure which workspaces you have, ask “Search my Oplane workspaces” to see a list.
You can find your workspaces in the Oplane dashboard. Your personal workspace is marked with a Yours badge.
Oplane workspaces overview
Personal workspace with Yours badge

Your personal workspace is marked with a Yours badge

Learn about workspaces

Understand workspace types and how to create them.