Codex Work Window MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Codex Work Window MCPPlan a 60-minute refactor in safe segments with checkpoints and a resume contract."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Codex Work Window MCP
Turn quota limits into governed work windows.
Codex Work Window MCP treats the Codex 5-hour allowance as a capacity-planning constraint rather than an interruption. The server plans bounded work segments, keeps a reserve, requires checkpoints at the right time, and creates a precise resume contract for long-running jobs.
This project does not bypass, increase, spoof or manipulate Codex quota. It only plans work around capacity reported by an approved quota provider.
Product idea
Quota capacity
│
▼
Work Window
│
├── Segment A ── checkpoint
├── Segment B ── checkpoint
└── PARK
│
reset
│
▼
Resume Contract
│
▼
Segment CThe useful abstraction is not “how much quota is left?” It is:
What is the largest safe piece of work that should start now, what reserve must remain, and exactly where should the job resume if capacity runs out?
Related MCP server: Codex Claude Code MCP
v0.1 tools
Tool | Purpose |
| Convert current capacity into a bounded segment admission. |
| Store a concise handoff: completed, pending, risks, next safe action. |
| Reconstruct the first safe action and stop conditions before resuming. |
Why this is different
Codex Work Window is designed around five operating concepts:
Reserve — never plan to consume the final percentage of capacity.
Segments — large jobs are admitted in bounded slices, not as one mega-run.
Job class — long/high-risk jobs receive shorter admitted segments.
Checkpoint quality — every checkpoint must name the next safe action.
Provider isolation — Codex quota-reading logic is isolated from the planner, reducing breakage if the host interface changes.
Status
v0.1.0 is a foundation release, not a production quota reader.
The policy engine, local state and MCP contract are implemented. The included quota provider is intentionally manual/environment-based so the orchestration can be tested without touching Codex credentials or depending on unstable host internals.
The next integration milestone is a read-only codex app-server provider,
implemented behind the QuotaProvider interface and validated on macOS first.
Requirements
Node.js 22.13+
npm
Install for development
npm install
npm run checkRun a safe local demo
WORK_WINDOW_QUOTA_PERCENT=58 npm run demoOptional reset time:
WORK_WINDOW_QUOTA_PERCENT=18 \
WORK_WINDOW_RESET_AT="2026-09-06T13:00:00+08:00" \
npm run demoRun as an MCP server
Build first:
npm run buildThen point your MCP client to:
node /absolute/path/to/codex-work-window-mcp/dist/src/index.jsFor v0.1 the process must receive WORK_WINDOW_QUOTA_PERCENT in its environment.
Do not present manual-provider values as real Codex readings.
Default policy
hard stop 8%
reserve 12%
caution 22%
cold segment 15 min
max segment 45 min
plan horizon 90 min
snapshot TTL 90 secThese are conservative development defaults, not claims about OpenAI's own quota policy. They are user-side planning controls and can be made configurable later.
Example: long ONZKO-style implementation job
Objective: refactor a WordPress integration module
Requested: 60 min
Quota: 58%
Job class: long
Work Window returns:
- OPEN
- admitted segment: bounded by forecast/policy
- reserve: 12%
- checkpoint required: yes
- validUntil: short-lived admission deadline
Before the segment ends:
- commit or leave a clean reversible state
- run the relevant tests
- call checkpoint_save
- state the exact next safe actionSafety principles
No credential collection.
No authentication-file reading in v0.1.
No daemon or background service.
No automatic purchases or quota-reset purchases.
No destructive resume action without separate authorisation.
Local state is stored per workspace under
.work-window/with restrictive file modes where supported.
See docs/SECURITY.md.
Roadmap
See docs/ROADMAP.md.
Attribution
This project is inspired by the problem and workflow explored by
valentine-89/codex-quota-guard-mcp, an MIT-licensed project by Val89.
See NOTICE.md.
Licence
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Adaptive plan/build/review cycles for AI coding assistants, persisted across sessions.
Goal and task planning MCP for Codex and AI agents, with evidence-backed completion.
421Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides Claude Code with programmatic session awareness to track context usage, session history, and task progress. It enables intelligent context reset recommendations and automatic synchronization of project planning documentation.5MIT
- AlicenseAqualityCmaintenanceEnables Codex to delegate long-running work to Claude Code via blocking MCP calls, with tools for model discovery, run, and resume without polling.3MIT
- AlicenseNot gradedqualityBmaintenanceGoverns and manages Qwen Code builder sessions with tools for previewing, starting, inspecting, queuing tasks, and stopping sessions, all within a scoped, redacted environment.MIT
- AlicenseNot gradedqualityCmaintenanceA durable MCP control plane for starting, observing, steering, continuing, cancelling, and handing off long-running coding agents, with bounded MCP calls and persistent worktrees.12MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/quangmai911/codex-work-window-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server