Secure, Fast, and Extensible Sandbox runtime for AI agents.
refactor(mcp): name the tool error wrapper like the CLI's
Maohaod3a240a3f239
diff --git a/sdks/mcp/sandbox/python/src/opensandbox_mcp/server.py b/sdks/mcp/sandbox/python/src/opensandbox_mcp/server.pyindex f94838b25..79361276e 100644--- a/sdks/mcp/sandbox/python/src/opensandbox_mcp/server.py+++ b/sdks/mcp/sandbox/python/src/opensandbox_mcp/server.py@@ -130,13 +130,13 @@ def register_tools(# "Error executing tool"; SDK errors (not found, auth, ...) are# expected outcomes the client needs to see.@functools.wraps(func)- async def call(*args, **kwargs):+ async def wrapper(*args, **kwargs):try:return await func(*args, **kwargs)except SandboxException as exc:raise ToolError(str(exc)) from exc- return mcp.tool()(call)+ return mcp.tool()(wrapper)return decorator