Cursor Setup
Add arifOS constitutional governance to Cursor, the AI-first code editor.
Prerequisites
- Cursor installed
- Cursor version 0.40+ (MCP support required)
Configuration
Step 1: Open MCP Settings
In Cursor:
- Open Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) - Search for "MCP: Open Settings"
- Or navigate to Settings → MCP Servers
Step 2: Add arifOS Server
Add to your MCP configuration:
{
"mcpServers": {
"arifOS": {
"url": "https://arifos.arif-fazil.com/sse"
}
}
}
Step 3: Reload Cursor
Reload the window or restart Cursor to apply changes.
Verify Installation
- Open a new chat with Cursor AI
- Ask: "What MCP tools are available?"
- You should see arifOS tools listed:
init_000agi_geniusasi_actapex_judgevault_999
Using arifOS in Cursor
Code Review with Governance
Review this function and verify your suggestions with arifOS before applying:
function processPayment(amount) {
// ... code here
}
Cursor will:
- Analyze the code
- Use
agi_geniusto verify suggestions - Use
asi_actto check for harmful changes - Only suggest changes that pass governance
Fact-Checking Documentation
Verify this JSDoc comment is accurate:
/**
* Sorts array in O(n) time using radix sort
* @param {number[]} arr - Input array
*/
arifOS will check the O(n) claim against F2 (Truth).
Safe Refactoring
Refactor this module, but use 888_HOLD for any changes affecting the database layer.
arifOS will pause and ask for confirmation before database-affecting changes.
Local Server for Development
For faster response times during development:
{
"mcpServers": {
"arifOS": {
"command": "python",
"args": ["-m", "arifos.mcp"]
}
}
}
Requires pip install arifos first.
Project-Level Rules
Create .cursorrules with governance instructions:
# Cursor Rules
## arifOS Integration
- Use arifOS tools for all code modifications
- 888_HOLD required for:
- Changes to authentication code
- Database schema modifications
- API endpoint changes
- Package version upgrades
## Floor Priorities
- F2 (Truth): All comments must be verifiable
- F6 (Empathy): Consider junior developers reading this code
- F4 (Clarity): Code should be clearer after changes
Troubleshooting
Tools Not Appearing
- Check MCP settings JSON syntax
- Ensure Cursor version supports MCP
- Reload window (
Cmd+Shift+R/Ctrl+Shift+R)
Slow Responses
The cloud server adds ~50ms latency. For faster development:
- Use local server mode
- Or run arifOS on your local network
Governance Too Strict
If you're getting too many VOIDs:
- Check which floor is failing
- Adjust your prompts to satisfy the floor
- Or explicitly ask to override (will be logged)
Best Practices
- Keep governance enabled — It catches real issues
- Use project rules — Customize for your codebase
- Trust 888_HOLD — High-stakes operations need confirmation
- Review audit trail — Check
/healthfor governance logs
Next Steps
- Python Integration — Direct API access
- MCP Examples — Request/response patterns
- Floor Reference — Understanding verdicts