Model Context Protocol · Native MCP Server (21 Tools)

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.

Transport
Streamable HTTP
Endpoint
/api/v1/agent
MCP Protocol
2025-11-25
Rate Limit
120 req / min

How to Connect

Select your environment below for instant copy-paste setup.

Run this single terminal command to add OGFocus to Claude Code:
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"
check_circle Claude Code will automatically discover all 21 OGFocus tools upon your next terminal session.
API Key Security & Scopes

Granular 3-Tier Permission Model

Configure your API key with exact permissions. Unauthorized operations are immediately rejected server-side with HTTP 403 Forbidden.

Tier 1 · Read-Only visibility

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)
Key Value: read_only
Tier 2 · Read & Write edit_note

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)
Key Value: read_write
Tier 3 · Full Control admin_panel_settings

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
Key Value: all / read_write_delete
Complete Tool Directory

21 Native MCP Tools

Available out-of-the-box for all connected agents, IDEs, and autonomous bots.

task_alt

Tasks & Subtasks Management (5 Tools)

ogfocus_list_tasks Read

List Backlog & Tasks

Fetches tasks with project tags and nested subtasks. Filter by status or project.

Args: status, project_id, limit
ogfocus_create_task Write

Create Task or Subtask

Creates a new task. Pass parent_task_id to create a child subtask.

Args: title*, priority, due_date, project_id, parent_task_id
ogfocus_update_task Write

Update Task Details

Modifies title, priority, due date, notes, or moves the task to another project container.

Args: task_id*, title, priority, due_date, notes, project_id
ogfocus_complete_task Write

Complete or Reopen Task

Marks task complete (+3 Karma) or passes completed: false to reopen it cleanly.

Args: task_id*, completed (bool)
ogfocus_delete_task Delete

Delete Task & Subtasks

Soft-deletes the task and its child subtasks. Completed Karma is permanently preserved.

Args: task_id* · Requires Tier 3
flag

Strategic Missions (4 Tools)

ogfocus_list_missions Read

List Strategic Missions

Retrieves high-level missions with project counts and completion statistics.

Args: status (active|completed|all)
ogfocus_create_mission Write

Create New Mission

Establishes a new top-level mission objective on the builder roadmap.

Args: title*, description
ogfocus_update_mission Write

Update Mission Details

Updates title, description, or marks a strategic mission active or completed.

Args: mission_id*, title, description, status
ogfocus_delete_mission Delete

Delete Mission Cascading

Soft-deletes the mission and cascades safely to child projects and tasks.

Args: mission_id* · Tier 3
folder

Projects & Containers (4 Tools)

ogfocus_list_projects Read

List Project Containers

Lists projects with parent mission links, colors, and live task counters.

Args: mission_id, status
ogfocus_create_project Write

Create Project Container

Creates a project stream under an optional mission with custom hex color.

Args: name*, mission_id, description, color
ogfocus_update_project Write

Update Project

Modifies project name, assigned mission parent, description, or color theme.

Args: project_id*, name, mission_id, color, status
ogfocus_delete_project Delete

Delete Project Container

Soft-deletes the project and cascades cleanly to all assigned tasks and subtasks.

Args: project_id* · Tier 3
local_fire_department

Habits & Battle Board (6 Tools)

ogfocus_get_habits Read

Read Battle Board Habits

Inspects all active habits, current streaks, lock timers, and today's completion status.

Args: status (active|paused|all)
ogfocus_create_habit Write

Create Daily Habit

Establishes a new discipline habit with frequency, duration, lock window, and alarms.

Args: title*, period_type, timer_duration, lock_mins
ogfocus_update_habit Write

Update Habit Parameters

Modifies habit title, schedule timing, timer duration, or lock period limits.

Args: habit_id*, title, timer_duration, lock_mins
ogfocus_log_habit Write

Log Habit Completion

Toggles today's completion on the Battle Board, increments streak, and awards Karma.

Args: habit_id*, date (YYYY-MM-DD optional)
ogfocus_pause_habit Write

Pause / Resume Habit

Temporarily pauses or resumes a habit to protect streak integrity during travel.

Args: habit_id*, paused (bool)
ogfocus_delete_habit Delete

Delete Habit Safely

Soft-deletes habit from board while permanently preserving historical Karma logs.

Args: habit_id* · Tier 3
bolt

Focus Blocks & Builder Gamification (2 Tools)

ogfocus_get_metrics Read

Builder Karma, Integrity & Ranks

Retrieves real-time Karma score, Integrity percentage, Builder Rank (e.g. Relentless, Flow State), active streaks, and execution statistics.

Scope: metrics Arguments: None
ogfocus_log_focus_session Write

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.

Scope: focus Args: duration_mins* (1–1440)

Full REST API Lifecycle Endpoints

Direct HTTP interface matching 100% of Chrome Extension capabilities with granular permission gates.

Base: https://www.ogfocus.com/api/v1/agent
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
Anti-Cheat & Safety

Zero-Trust Execution Engine

Immutable metrics, server-owned verification, and strict permission gates.

lock

Immutable Gamification

Karma, Integrity, and Ranks are strictly computed server-side in PHP/MySQL. Agents cannot fabricate scores or bypass execution requirements.

verified_user

Zero-Trust Boundaries

Every task, habit, and focus block undergoes strict ownership validation against the authenticated API key. Cross-account pollution is impossible.

speed

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.