fix(mcp): mcp_client refactor, claude_mma_exec update
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user