From c84a40e8299918d7b152e764a1cf4dbee27ce650 Mon Sep 17 00:00:00 2001 From: GuDaStudio Date: Thu, 13 Nov 2025 17:58:38 +0800 Subject: [PATCH] =?UTF-8?q?v0.6.1=EF=BC=9A=E5=A2=9E=E5=8A=A0--profile?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/codexmcp/server.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/codexmcp/server.py b/src/codexmcp/server.py index 902922b..dc3a722 100644 --- a/src/codexmcp/server.py +++ b/src/codexmcp/server.py @@ -167,6 +167,10 @@ async def codex( description="Run every command without approvals or sandboxing. Only use when `sandbox` couldn't be applied.", ), ] = False, + profile: Annotated[ + Optional[str], + "Configuration profile name to load from `~/.codex/config.toml`. Default user configuration is applied; this parameter remains inactive unless explicitly specified by the user.", + ] = None, ) -> Dict[str, Any]: """Execute a Codex CLI session and return the results.""" # Build command as list to avoid injection @@ -178,6 +182,9 @@ async def codex( if model is not None: cmd.extend(["--model", model]) + if profile is not None: + cmd.extend(["--profile", profile]) + if yolo: cmd.append("--yolo")