Cursor Integration
Cursor can connect directly to Forge Pool through the native MCP server.
Once connected, Cursor agents can:
- discover Forge capabilities
- inspect execution contracts
- execute deterministic workloads
- retrieve compact results
- analyze uncertainty distributions
- preserve replay metadata
- assist Studio-oriented orchestration workflows
Forge MCP transforms Cursor from a coding assistant into an execution client for deterministic probabilistic workloads.
Why Cursor
Cursor is one of the most widely adopted AI development environments.
By connecting Cursor to Forge Pool, agents gain access to an execution substrate capable of:
- Monte Carlo simulation
- scenario exploration
- graph propagation
- ensemble reasoning
- uncertainty analysis
- replay-aware execution
Rather than generating answers alone, agents can execute workloads and reason over resulting evidence.
Requirements
Before connecting Cursor, ensure you have:
- a Forge Pool account
- a Forge project
- a project-scoped token
- a recent Cursor version with MCP support enabled
Recommended token type:
fpak_...Project-scoped tokens provide:
- deterministic routing
- isolated execution context
- project attribution
- safer billing boundaries
- simplified credential management
MCP Endpoint
Forge Pool MCP endpoint:
https://api.forgepool.io/mcpAuthentication:
Authorization: Bearer fpak_...Configure Cursor
Create or update:
~/.cursor/mcp.jsonExample configuration:
{
"mcpServers": {
"forge": {
"url": "https://api.forgepool.io/mcp",
"headers": {
"Authorization": "Bearer fpak_..."
}
}
}
}Replace the example token with your actual project token.
Restart Cursor
After modifying the MCP configuration:
- Save the file.
- Fully close Cursor.
- Reopen Cursor.
- Reopen your workspace.
Cursor loads MCP servers during startup.
Verify Connection
Open:
Settings → Tools & MCPYou should see:
forgewith a healthy connection indicator.
A successful connection means Cursor can communicate with the Forge MCP server.
Verify Tool Availability
Open a new Cursor Agent chat and ask:
Use Forge MCP.
List available Forge tools.Typical tools include:
forge_capabilities_list
forge_capabilities_search
forge_capability_describe
forge_execute
forge_run_status
forge_run_resultIf these tools appear, Cursor is correctly connected.
Important: Agent Mode vs Codex Mode
Cursor may expose different tool surfaces depending on the active execution mode.
A green MCP indicator confirms that the Forge server is connected.
However, tool visibility can still depend on:
- Agent mode
- Codex mode
- MCP settings
- workspace context
- Cursor version
If Forge tools do not appear:
- Verify Forge is connected.
- Restart Cursor.
- Open a new Agent session.
- Ask Cursor to list available MCP tools.
This behavior is controlled by Cursor rather than Forge.
Recommended Execution Lifecycle
Cursor agents should follow:
search
↓
describe
↓
build
↓
execute
↓
retrieve
↓
analyzeThis minimizes invalid payloads and improves deterministic behavior.
Capability Discovery
Recommended prompt:
Use Forge MCP.
Search for insurance catastrophe loss capabilities.
Return the five most relevant direct execution profiles.
Do not execute anything yet.Expected MCP tool:
forge_capabilities_searchAgents should discover capabilities before attempting execution.
Capability Inspection
After selecting a capability:
Use Forge MCP.
Describe the most relevant capability.
Summarize required arguments and provide a minimum valid payload.
Do not execute.Expected MCP tool:
forge_capability_describeCapability contracts should always be inspected before payload construction.
Building Execution Payloads
After inspecting the contract, Cursor can construct a valid payload.
Example:
{
"payload": {
"ctx": {
"billing": {
"mode": "test"
}
},
"op": {
"name": "mc",
"version": 1,
"profile": "insurance.loss.v1"
},
"policy": {
"target": "cpu",
"verify": "none",
"min_agents": 1,
"max_agents": 4
},
"args": {
"iterations": 100000
}
}
}This is only an example.
Capability-specific contracts remain authoritative.
Safe Execution
Recommended prompt:
Use Forge MCP.
Build a valid payload.
Execute it in test mode.
Retrieve compact results.Expected tools:
forge_execute
forge_run_resultRecommended billing mode:
{
"billing": {
"mode": "test"
}
}Test mode should be used during exploration and validation.
Example End-to-End Prompt
Use Forge MCP.
1. Search for insurance catastrophe loss capabilities.
2. Select the most relevant direct execution capability.
3. Describe the capability.
4. Build a minimum valid payload.
5. Execute in test mode.
6. Retrieve compact results.
7. Summarize expected value, uncertainty spread, tail risk, and replay metadata.This workflow mirrors the recommended Forge execution lifecycle.
Understanding Results
Forge Pool returns distributions rather than single predictions.
Cursor should focus on:
- expected value
- median
- P05
- P50
- P95
- P99
- uncertainty spread
- tail behavior
- scenario sensitivity
The average alone rarely captures the most important signal.
Replay Metadata
Many Forge workloads return replay-aware metadata.
Cursor should preserve:
- job_id
- trace_id
- request_id
- replay tokens
- execution identifiers
Replay metadata enables:
- auditability
- governance review
- deterministic verification
- reproducibility
- scenario comparison
Replay information should be treated as part of the result surface.
Studio-Oriented Workflows
Forge MCP may expose Studio-oriented tools.
These allow Cursor to:
- discover Studio templates
- inspect orchestration graphs
- assist workboard creation
- review graph structure
- prepare template imports
Agents assist orchestration.
The Forge runtime remains authoritative.
Security Recommendations
Use project-scoped tokens.
Do not:
- paste tokens into prompts
- commit tokens into repositories
- share production tokens between environments
Recommended:
- separate development tokens
- separate staging tokens
- separate production tokens
- periodic token rotation
Immediately revoke exposed credentials.
Troubleshooting
Forge Does Not Appear
Verify:
Settings → Tools & MCPCheck:
- MCP configuration file
- JSON validity
- Cursor version
- full application restart
MCP Tools Do Not Appear
Verify:
https://api.forgepool.io/mcpand:
Authorization: Bearer fpak_...Then:
- restart Cursor
- open a fresh Agent session
- request available MCP tools
Authentication Errors
Confirm:
Authorization: Bearer fpak_...and ensure the token is active.
Project-scoped tokens are recommended.
Cursor Guesses Payload Fields
Ask Cursor:
Use forge_capability_describe before constructing the payload.
Do not invent profile-specific arguments.Capability contracts are the source of truth.
Results Are Too Large
Request compact results:
Retrieve compact results only.or:
{
"format": "compact"
}Compact results are optimized for AI-assisted reasoning.
Best Practices
Cursor agents should:
- search before execution
- inspect contracts before payload construction
- execute in test mode first
- preserve replay metadata
- analyze uncertainty explicitly
- explain tail risk
Cursor agents should not:
- invent capability identifiers
- guess arguments
- skip contract inspection
- suppress validation feedback
- execute production workloads without approval
Next
Learn the Forge MCP architecture:
Continue with:
→ Windsurf
→ VS Code
Or return to:
