Connect AI Agents to OGFocus
Turn your AI assistants (Claude Code, Cursor, Codex, ChatGPT, Antigravity, and autonomous bots) into execution partners. Manage strategic missions, project roadmaps, task hierarchies with subtasks, daily habits on the Battle Board, and focus blocks with real-time Karma tracking.
How to Connect
Select your environment below for instant copy-paste setup.
claude mcp add --transport http --scope user ogfocus https://www.ogfocus.com/api/v1/agent \
--header "X-OGFOCUS-KEY: your_api_key_here" \
--header "X-OGFOCUS-SECRET: your_api_secret_here"
Granular 3-Tier Permission Model
Configure your API key with exact permissions. Unauthorized operations are immediately rejected server-side with HTTP 403 Forbidden.
Read-Only Access
Ideal for dashboard widgets, backlog summary agents, and external progress monitoring bots that should never mutate your execution data.
- check Inspect Missions, Projects, & Tasks
- check View Battle Board Habits & Streaks
- check Read Karma, Integrity & Builder Ranks
- close Create / Update / Toggle Data
- close Delete Any Record (403 Forbidden)
read_only
Read & Write (Safe)
Perfect for AI coding co-pilots (Claude Code, Cursor). Can create tasks, mark completion, add subtasks, and log focus blocks without risking accidental record deletion.
- check Full Read & Inspection Capabilities
- check Create & Update Tasks & Subtasks
- check Create Strategic Missions & Projects
- check Log Habit Completions & Focus Blocks
- close Delete Any Record (403 Forbidden)
read_write
Read, Write & Delete
For fully autonomous agents managing complete software roadmaps, backlog pruning, project cleanups, and multi-tier mission lifecycles.
- check All Read & Write Operations
- check Soft-Delete Tasks & Nested Subtasks
- check Cascading Mission & Project Deletions
- check Archive & Soft-Delete Battle Board Habits
- shield Historical Karma & Logs Permanently Preserved
all / read_write_delete
21 Native MCP Tools
Available out-of-the-box for all connected agents, IDEs, and autonomous bots.
Tasks & Subtasks Management (5 Tools)
List Backlog & Tasks
Fetches tasks with project tags and nested subtasks. Filter by status or project.
Create Task or Subtask
Creates a new task. Pass parent_task_id to create a child subtask.
Update Task Details
Modifies title, priority, due date, notes, or moves the task to another project container.
Complete or Reopen Task
Marks task complete (+3 Karma) or passes completed: false to reopen it cleanly.
Delete Task & Subtasks
Soft-deletes the task and its child subtasks. Completed Karma is permanently preserved.
Strategic Missions (4 Tools)
List Strategic Missions
Retrieves high-level missions with project counts and completion statistics.
Create New Mission
Establishes a new top-level mission objective on the builder roadmap.
Update Mission Details
Updates title, description, or marks a strategic mission active or completed.
Delete Mission Cascading
Soft-deletes the mission and cascades safely to child projects and tasks.
Projects & Containers (4 Tools)
List Project Containers
Lists projects with parent mission links, colors, and live task counters.
Create Project Container
Creates a project stream under an optional mission with custom hex color.
Update Project
Modifies project name, assigned mission parent, description, or color theme.
Delete Project Container
Soft-deletes the project and cascades cleanly to all assigned tasks and subtasks.
Habits & Battle Board (6 Tools)
Read Battle Board Habits
Inspects all active habits, current streaks, lock timers, and today's completion status.
Create Daily Habit
Establishes a new discipline habit with frequency, duration, lock window, and alarms.
Update Habit Parameters
Modifies habit title, schedule timing, timer duration, or lock period limits.
Log Habit Completion
Toggles today's completion on the Battle Board, increments streak, and awards Karma.
Pause / Resume Habit
Temporarily pauses or resumes a habit to protect streak integrity during travel.
Delete Habit Safely
Soft-deletes habit from board while permanently preserving historical Karma logs.
Focus Blocks & Builder Gamification (2 Tools)
Builder Karma, Integrity & Ranks
Retrieves real-time Karma score, Integrity percentage, Builder Rank (e.g. Relentless, Flow State), active streaks, and execution statistics.
Log Deep Work Focus Blocks
Records a deep work session in minutes. Automatically converts to 25-minute Focus Blocks and awards +10 Karma per Focus Block completed.
Full REST API Lifecycle Endpoints
Direct HTTP interface matching 100% of Chrome Extension capabilities with granular permission gates.
| Method | Endpoint | Min Tier | Description | Payload / Params |
|---|---|---|---|---|
| GET | /tasks | Read | List tasks with nested subtasks | ?status=pending&limit=50 |
| POST | /tasks | Write | Create task (pass parent_task_id for subtasks) | {"title": "API Docs", "priority": "high"} |
| PUT | /tasks/{id} | Write | Update title, priority, or project | {"title": "Updated title", "priority": "urgent"} |
| POST | /tasks/{id}/complete | Write | Complete task (+3 Karma) or reopen | {"completed": true} |
| DELETE | /tasks/{id} | Delete | Soft-delete task and child subtasks | None |
| GET | /missions | Read | List all top-level strategic missions | ?status=active |
| POST | /missions | Write | Create new high-impact mission | {"title": "Ship Q4 Release"} |
| PUT | /missions/{id} | Write | Update mission description or status | {"status": 2} (completed) |
| DELETE | /missions/{id} | Delete | Cascading soft-delete to projects & tasks | None |
| GET | /projects | Read | List projects with live task tallies | ?mission_id=3 |
| POST | /projects | Write | Create project under optional mission | {"name": "Frontend", "color": "#BFFF00"} |
| PUT | /projects/{id} | Write | Update project name, color or status | {"name": "Mobile iOS"} |
| DELETE | /projects/{id} | Delete | Cascading soft-delete to project tasks | None |
| GET | /habits | Read | Read Battle Board habits & streaks | ?status=active |
| POST | /habits | Write | Create new discipline habit | {"title": "Read 30 mins", "period_type": "day"} |
| POST | /habits/{id}/log | Write | Log habit completion & award Karma | {"date": "2026-10-20"} |
| POST | /habits/{id}/pause | Write | Pause or resume habit protection | {"paused": true} |
| DELETE | /habits/{id} | Delete | Soft-delete habit (preserves Karma log) | None |
| GET | /metrics | Read | Builder Karma, Integrity & Ranks | None |
| POST | /focus/session | Write | Record deep work (+10 Karma/block) | {"duration_mins": 50} |
| HEADER | X-OGFOCUS-TEST-MODE | Any | Simulate mutation with full rollback (dry-run) | X-OGFOCUS-TEST-MODE: 1 |
Zero-Trust Execution Engine
Immutable metrics, server-owned verification, and strict permission gates.
Immutable Gamification
Karma, Integrity, and Ranks are strictly computed server-side in PHP/MySQL. Agents cannot fabricate scores or bypass execution requirements.
Zero-Trust Boundaries
Every task, habit, and focus block undergoes strict ownership validation against the authenticated API key. Cross-account pollution is impossible.
Stateless & Rate Limited
Zero browser session cookies (PHPSESSID) are issued. API requests are rate limited to 120 req/min with standard Retry-After headers.
terminal Agent System Prompt (Copy-Paste)
Drop into your .cursorrules, Claude Project Prompt, or custom agent instructions.
You are an autonomous Execution Partner integrated with OGFocus via MCP.
Your mission is to help the user execute relentlessly: inspect their execution backlog, manage strategic missions and projects, break down tasks with subtasks, track daily discipline habits, and record deep work sessions.
MCP Server: https://www.ogfocus.com/api/v1/agent
Core Execution Workflow:
1. Backlog & Roadmaps: Inspect pending tasks, active missions, and projects:
- Call ogfocus_list_tasks with {"status": "pending"}
- Call ogfocus_list_missions and ogfocus_list_projects
2. Task & Subtask Creation: Break down complex features:
- Call ogfocus_create_task with title and priority.
- For subtasks, include parent_task_id of the parent task.
3. Task Completion: When a task is completed:
- Call ogfocus_complete_task with the task_id.
4. Deep Work Logging: When finishing a focused coding block:
- Call ogfocus_log_focus_session with duration_mins.
5. Daily Habits: When the user completes a daily discipline commitment:
- Call ogfocus_log_habit with habit_id.
6. Permissions & Anti-Cheat: Respect API key tiers (Read-Only, Read & Write, Full Delete). Karma and Rank calculations are strictly verified and awarded by the server.