Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion src/codexmcp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,16 @@ async def codex(
description="The model to use for the codex session. This parameter is strictly prohibited unless explicitly specified by the user.",
),
] = "",
reasoning_effort: Annotated[
Optional[Literal["low", "medium", "high", "xhigh"]],
Field(
description=(
"Override Codex config `model_reasoning_effort` (thinking budget). "
"Allowed values: low, medium, high, xhigh. "
"If omitted, uses the config/profile default."
),
),
] = None,
yolo: Annotated[
bool,
Field(
Expand All @@ -203,7 +213,10 @@ async def codex(

if profile:
cmd.extend(["--profile", profile])


if reasoning_effort is not None:
cmd.extend(["--config", f'model_reasoning_effort="{reasoning_effort}"'])

if yolo:
cmd.append("--yolo")

Expand Down