graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
test-mcp-add: decode graff output as UTF-8 on every platform
justrach211b662623c3
diff --git a/scripts/test-mcp-add.py b/scripts/test-mcp-add.pyindex 59f1d9d5..a1abbea6 100644--- a/scripts/test-mcp-add.py+++ b/scripts/test-mcp-add.py@@ -47,7 +47,7 @@ class Unauthorized(BaseHTTPRequestHandler):def run(binary, cwd, env, *args, stdin=None):- r = subprocess.run([binary, 'mcp', *args], cwd=cwd, env=env, input=stdin, capture_output=True, text=True, timeout=180)+ r = subprocess.run([binary, 'mcp', *args], cwd=cwd, env=env, input=stdin, capture_output=True, text=True, encoding='utf-8', errors='replace', timeout=180)return r.stdout + r.stderr@@ -107,7 +107,7 @@ def main():GRAFF_NO_SMOLIFY='1', GRAFF_NO_CODEDB_GUARD='1')try:subprocess.run([binary, '--model', 'vercel', '--old', '--no-lean', '--yolo', '-p', 'add the demo server and use it'],- cwd=live, env=env2, capture_output=True, text=True, timeout=180)+ cwd=live, env=env2, capture_output=True, text=True, encoding='utf-8', errors='replace', timeout=180)finally:model.stop()results = [m.get('content') for m in model.requests[-1].get('messages', []) if m.get('role') == 'tool']