fix(mcp): mcp_client refactor, claude_mma_exec update

This commit is contained in:
2026-03-02 10:15:32 -05:00
parent 89e82f1134
commit 1df088845d
2 changed files with 26 additions and 23 deletions

View File

@@ -204,7 +204,8 @@ def execute_agent(role: str, prompt: str, docs: list[str]) -> str:
capture_output=True,
text=True,
encoding='utf-8',
env=env
env=env,
creationflags=subprocess.CREATE_NO_WINDOW if hasattr(subprocess, 'CREATE_NO_WINDOW') else 0,
)
# claude --print outputs plain text — no JSON parsing needed
result = process.stdout if process.stdout else f"Error: {process.stderr}"