MCP Setup
Connect D0 to Cursor and other AI coding assistants via Model Context Protocol
What is MCP?
Model Context Protocol (MCP) is a standard that enables AI assistants to access context from external tools. D0 acts as an MCP server, providing your project's PRD, tasks, and requirements directly to AI coding assistants like Cursor, so they understand exactly what you're building.
With MCP
- • AI knows your project requirements
- • Code aligns with your PRD
- • Real-time task updates
- • No copy-pasting context
Without MCP
- • AI lacks project context
- • Generic, misaligned code
- • Manual context switching
- • Constant requirement explanations
Setting up MCP with Cursor
Safe Remote Integration
D0's MCP server uses streamable HTTP with no local processes—meaning no blackbox code runs on your computer. Cursor simply makes secure API calls to access your project data remotely.
1Get Your D0 MCP Credentials
- 1. Log in to your D0 account at https://app.d0.run
- 2. Navigate to Settings → MCP Integration
Never commit access keys to git repositories or share them publicly
2Quick Setup (Recommended)
The easiest way to connect D0 to Cursor:
- 1. In your D0 settings, click the Add MCP to Cursor button
- 2. This will automatically open Cursor and configure the MCP connection
3Manual Configuration (Alternative)
If the quick setup doesn't work, configure manually:
Option 1: Global Configuration
- 1. Open or create
~/.cursor/mcp.json
- 2. Copy the configuration from your D0 settings (click Copy button)
- 3. Paste it into the file and save
Option 2: Cursor Settings UI
- 1. Open Cursor Settings
- 2. Navigate to MCP Tools
- 3. Add a new MCP server with your D0 configuration
Sample configuration:
{
"mcpServers": {
"d0": {
"url": "https://api.d0.run/mcp",
"headers": {
"Authorization": "Bearer YOUR_ACCESS_KEY_HERE"
}
}
}
}
5Test the Connection
Test that everything is working by asking your AI assistant:
Try: "D0, get all my projects"
Try: "D0, what is the highest priority task for project PRJ-ABC?"
Try: "D0, implement the next task"
Troubleshooting
Connection Issues
- • Verify your API key is correct and has no extra spaces
- • Check that you have an active internet connection
- • Ensure the MCP server URL is
https://www.d0.run/mcp
- • Try restarting Cursor after configuration changes
No Projects Showing
- • Confirm you have at least one project created in D0
- • Check that your API key has access to your projects
- • Try refreshing the MCP connection in Cursor