mirror of
https://github.com/leonvanzyl/autocoder.git
synced 2026-02-02 15:23:37 +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
|
"command": sys.executable, # Use the same Python that's running this script
|
||||||
"args": ["-m", "mcp_server.feature_mcp"],
|
"args": ["-m", "mcp_server.feature_mcp"],
|
||||||
"env": {
|
"env": {
|
||||||
# Inherit parent environment (PATH, ANTHROPIC_API_KEY, etc.)
|
# Only specify variables the MCP server needs
|
||||||
**os.environ,
|
# (subprocess inherits parent environment automatically)
|
||||||
# Add custom variables
|
|
||||||
"PROJECT_DIR": str(project_dir.resolve()),
|
"PROJECT_DIR": str(project_dir.resolve()),
|
||||||
"PYTHONPATH": str(Path(__file__).parent.resolve()),
|
"PYTHONPATH": str(Path(__file__).parent.resolve()),
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -231,7 +231,8 @@ class AssistantChatSession:
|
|||||||
"command": sys.executable,
|
"command": sys.executable,
|
||||||
"args": ["-m", "mcp_server.feature_mcp"],
|
"args": ["-m", "mcp_server.feature_mcp"],
|
||||||
"env": {
|
"env": {
|
||||||
**os.environ,
|
# Only specify variables the MCP server needs
|
||||||
|
# (subprocess inherits parent environment automatically)
|
||||||
"PROJECT_DIR": str(self.project_dir.resolve()),
|
"PROJECT_DIR": str(self.project_dir.resolve()),
|
||||||
"PYTHONPATH": str(ROOT_DIR.resolve()),
|
"PYTHONPATH": str(ROOT_DIR.resolve()),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user