Claude Code Directive 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., "@Claude Code Directive MCPEnable Claude Code directive until next Friday"
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.
Claude Code Directive MCP
claude-code-directive-mcp is a local stdio MCP server that lets an agent temporarily add a global Codex AGENTS directive requiring Claude Code usage until a configured expiry date.
It is designed for temporary, opt-in delegation policy:
Adds one clearly marked block to the effective global Codex instruction file.
Uses Codex precedence: non-empty
AGENTS.override.md, otherwiseAGENTS.md.Skips project-local
.codexdirectories unless explicitly opted in.Records a manifest and creates a user-level cleanup timer.
Removes only the exact marked block recorded in the manifest.
Adds guardrails for Claude context, Main Codex context, retries, parallelism, and rate limits.
Never asks for or stores secrets.
Install
git clone <repo-url>
cd claude-code-directive-mcp
npm install
npm run install:codexRestart Codex after installation so the new MCP server is loaded.
The installer writes a user wrapper to:
~/.local/bin/codex-claude-code-directive-mcpand registers this MCP server in:
${CODEX_HOME:-~/.codex}/config.tomlRelated MCP server: codex-bridge
MCP Tools
claude_directive_enable
Enable or update the temporary directive.
Example arguments:
{
"expiresAt": "2026-08-17T23:59:59",
"timezone": "Europe/Berlin",
"cleanupDelayMinutes": 5,
"maxClaudePromptChars": 60000,
"maxClaudeOutputChars": 20000,
"maxClaudeRuntimeSeconds": 900,
"maxClaudeRetries": 1,
"mainContextReservePercent": 25,
"maxClaudeCallsPerTask": 3,
"maxParallelClaudeAgents": 2,
"minSecondsBetweenClaudeCalls": 30
}claude_directive_status
Reports discovered Codex homes, effective global instruction files, marker counts, scheduler state, manifest content, and optional Claude CLI status.
claude_directive_disable
Runs the idempotent cleanup and disables/removes the one-time user scheduler.
Cleanup
On Linux with a working user systemd, the MCP creates a user timer named:
codex-claude-code-directive-cleanup.timerThe timer executes:
${CODEX_HOME:-~/.codex}/maintenance/cleanup-temporary-claude-code-directive.pyThe cleanup script uses the manifest to remove only the exact marked directive block. It is safe to run repeatedly.
Budget And Rate Guardrails
The directive generated by this MCP tells the main agent to:
keep a Main Codex context reserve,
cap Claude prompt and output size,
cap Claude runtime and retries,
limit per-task Claude calls and parallel Claude agents,
wait between separate Claude calls unless parallelism is justified,
stop fast retry loops on rate limits, context limits, timeouts, or overload.
The MCP writes these rules into the global instruction block; it does not have privileged access to live provider token counters.
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityAmaintenanceMCP server that enables Claude Code to send code and plans for review by OpenAI Codex, returning structured feedback inline.9423MIT
- AlicenseAqualityDmaintenanceMCP server that lets Claude Code ask GPT Codex for adversarial planning, code review, debugging, research, and risk triage without leaving your project workflow.961MIT
- Alicense-qualityBmaintenanceMCP server enabling Claude to consult Codex (GPT-5.x) mid-task for second opinions, plan/diff review, brainstorming, and codebase exploration via structured debates and permission-controlled interactions.2MIT
- AlicenseBqualityDmaintenanceMCP server that enables Claude Code to delegate code generation and debugging to OpenAI Codex, with stall detection and auto-recovery.28MIT
Related MCP Connectors
Paid remote MCP for Claude Code skill update gate MCP, structured receipts, audit logs, and reviewer
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
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/ClydeLemot/claude-code-directive-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server