Boundary integrates seamlessly with Cursor IDE through the Model Context Protocol (MCP). This guide covers setup, configuration, and best practices.
Boundary relies entirely on your IDE's code intelligence to provide comprehensive context. Cursor acts as Boundary's eyes and ears, using LSP, "Go to Definition", and "Find References" to gather the code context needed for thorough debates.
The collaboration is iterative: Boundary generates semantic queries about your codebase, and Cursor investigates using its superior code intelligence to provide context. This process repeats over multiple rounds until Boundary has everything needed to complete the debate.
Open Cursor's MCP settings (typically in Settings → MCP or via the MCP configuration file). Add Boundary as an MCP server:
{
"mcpServers": {
"boundary": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e", "OPENAI_API_KEY",
"-e", "ANTHROPIC_API_KEY",
"-e", "GOOGLE_API_KEY",
"ghcr.io/boundary-mcp/boundary-mcp:latest"
],
"env": {
"OPENAI_API_KEY": "your-key-here",
"ANTHROPIC_API_KEY": "your-key-here",
"GOOGLE_API_KEY": "your-key-here"
}
}
}
}After configuring the MCP server, restart Cursor to establish the connection. You should see Boundary available in Cursor's MCP tools.
Test the connection by asking Cursor to list available MCP tools. You should see Boundary's debate tools available:
debate_start - Initiate a new debate sessiondebate_continue - Continue an ongoing debate with contextlist_agents - List all available debate agents with their descriptions, biases, and evaluation axesrecord_decision - Record a decision after debate completionBoundary works best when you follow a three-step process. This approach ensures you have high-quality inputs and get the most valuable debate output.
Use the prepare-boundary-debate command in Cursor to analyze your question and gather context.
This command will:
Example:
/prepare-boundary-debate "Should we use Redis or PostgreSQL for caching?"Review the output from Step 1 and make any necessary adjustments before starting the debate.
Check that:
This refinement step ensures the debate has the best possible inputs, leading to more valuable insights.
Use the start-boundary-debate command with the prepared debate file from Step 1.
Simply provide the path to the prepared debate file. The command will automatically extract:
Example:
/start-boundary-debate .cursor/boundary-debates/my-decision.mdThe command will parse the prepared file and start the debate with all the refined inputs. Cursor will then work with Boundary iteratively, providing context as needed until the debate completes.
Note: Direct inputs are still supported for backward compatibility, but using a prepared debate file is recommended for the best results.
Boundary's debate process is iterative and collaborative:
debate_continue.You can help the process by:
When a debate completes, Boundary returns a decision map that includes:
For detailed guidance on interpreting decision maps, see Decision Maps.
After a debate completes, you can record the final decision using the record_decision tool. This creates a structured decision record that captures the decision, rationale, participants, and context for future reference.
Once a debate is complete, ask Cursor to record the decision. You need to provide:
When you record a decision, Boundary creates a comprehensive decision record that includes:
The decision record is saved in two formats:
Both files are saved in the same folder as the debate results, making it easy to find all related documentation together. The record includes links to related reports (executive summary and decision matrix) if they were generated during the debate.
Note: You can only record decisions for completed debates. The debate session must have a status of "complete" before recording is allowed.
record_decision tool to save decisions for future reference.