mirror of
https://github.com/leonvanzyl/autocoder.git
synced 2026-01-30 06:12:06 +00:00
Resolve command to long message
This commit is contained in:
@@ -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()),
|
||||
},
|
||||
|
||||
@@ -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()),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user