From 9816621e99357fb2929b7dd978449f64ce841e1b Mon Sep 17 00:00:00 2001 From: Auto Date: Mon, 12 Jan 2026 13:39:34 +0200 Subject: [PATCH] Resolve command to long message --- client.py | 5 ++--- server/services/assistant_chat_session.py | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client.py b/client.py index fdf6d54..7074fef 100644 --- a/client.py +++ b/client.py @@ -198,9 +198,8 @@ def create_client(project_dir: Path, model: str, yolo_mode: bool = False): "command": sys.executable, # Use the same Python that's running this script "args": ["-m", "mcp_server.feature_mcp"], "env": { - # Inherit parent environment (PATH, ANTHROPIC_API_KEY, etc.) - **os.environ, - # Add custom variables + # Only specify variables the MCP server needs + # (subprocess inherits parent environment automatically) "PROJECT_DIR": str(project_dir.resolve()), "PYTHONPATH": str(Path(__file__).parent.resolve()), }, diff --git a/server/services/assistant_chat_session.py b/server/services/assistant_chat_session.py index cf18241..73a17e6 100755 --- a/server/services/assistant_chat_session.py +++ b/server/services/assistant_chat_session.py @@ -231,7 +231,8 @@ class AssistantChatSession: "command": sys.executable, "args": ["-m", "mcp_server.feature_mcp"], "env": { - **os.environ, + # Only specify variables the MCP server needs + # (subprocess inherits parent environment automatically) "PROJECT_DIR": str(self.project_dir.resolve()), "PYTHONPATH": str(ROOT_DIR.resolve()), },