Skip to main content
Glama
Happenmass

Codex Claude Code MCP

by Happenmass

Resume Claude Code

claude_code_resume
Destructive

Resume a persisted Claude Code session and run a prompt until completion in a single blocking call, eliminating polling.

Instructions

Resume a persisted Claude Code session and keep this single MCP call open until the turn completes. Do not poll.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdYesAbsolute working directory for Claude Code.
modelNoClaude model override. Default: Claude Code settings.
effortNoClaude reasoning effort. Default: Claude Code.
promptYesTask for Claude Code. This call blocks until completion.
askToolsNoVisible tools that require MCP elicitation approval before use. Default: none.
maxTurnsNo
sessionIdYesClaude Code session ID returned by a prior call.
allowedToolsNoVisible, auto-approved Claude Code tools. Default: Read, Grep, Glob.
maxBudgetUsdNo
maxRuntimeMsNoServer-side runtime limit. Default: 2 hours; max: 8 hours.
systemPromptNo
settingSourcesNoClaude settings sources. Default: user, project, local.
disallowedToolsNoAlways-hidden and denied Claude Code tools. Deny wins over allow/ask.
progressIntervalMsNoMinimum interval between MCP progress notifications. Default: 20000.
permissionTimeoutMsNoTimeout for each MCP elicitation permission prompt. Default: 300000.
pathToClaudeCodeExecutableNoExplicit Claude Code executable. Default resolution: CLAUDE_CODE_MCP_PATH, CLAUDE_CODE_MCP_COMMAND, PATH claude/claude-internal, then SDK bundled binary.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
statusYes
numTurnsYes
sessionIdNo
durationMsYes
stopReasonNo
errorSubtypeNo
totalCostUsdYes
durationApiMsNo
permissionDenialsNo
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotation already flags destructiveHint=true and readOnlyHint=false, and the description adds the critical behavioral trait that the call blocks until the turn completes. It also adds the 'Do not poll' directive, which is extra guidance not inferable from the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two short, front-loaded sentences with no filler. Every word contributes to the core understanding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex tool with 16 parameters, the description covers the essential blocking/session-resume behavior and the no-poll rule. Since an output schema exists and annotations cover the safety profile, the description is adequately complete, though a bit terse given the parameter count.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 81%, so the schema already documents most parameters in detail. The description itself adds no parameter-level semantics, but the baseline of 3 is appropriate given the high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific action ('Resume') and resource ('persisted Claude Code session'), adding a key distinguishing behavior (keeping the MCP call open until completion). This clearly differentiates it from sibling tools like claude_code_run (new sessions) and claude_code_models (listing models).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear context for using this tool (resume persisted session) and explicitly instructs 'Do not poll,' which is useful operational guidance. However, it doesn't explicitly state when not to use it or name alternatives, so it stops short of full exclusion guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

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/Happenmass/codex-claude-code-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server