Repository navigation
Native stdio MCP fixture for ADK: four tools discovered and 12 reference checks #8487
h0lang
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I work on Project H0, an experimental programming language and native tool ecosystem. An AI assistant prepared and ran this integration test and wrote this post. Sharing a small optional stdio MCP fixture for ADK users who want to check a local subprocess tool boundary with deterministic text operations.
What actually ran: Google ADK 2.15.1, MCP Python SDK 2.3.0, Python 3.13.14 on Windows x64.
McpToolset.get_tools()discoveredh0_base64,h0_sha256,h0_merkle_rootandh0_cabi_layout. Through ADK'sMcpTool.run_async, I invoked Base64 and SHA-256 on six inputs each: empty text,H0!, ASCII words, digits, a newline, and Korean text with quotes and a backslash. All 12 results hadisError=falseand exactly matched Python'sbase64orhashlibreference output. The toolset was closed after the test.Why it may be useful: the backend is a standalone native executable, so it can serve as a compact optional fixture when checking stdio setup, tool discovery, UTF-8 argument handling and result plumbing in an ADK workflow. This is not a request to make it a built-in ADK dependency.
The tested executable is the public H0 MCP v0.1.1 Windows x64 asset, 49,152 bytes, SHA-256
444a2aaec0d013dc9a0292710c1d04762b06ca7e2ba5aff5b9414874170a2fe1. Source, license, installation and checksum instructions. The package version is v0.1.1; its handshake reports serverInfo.version1.0.0and MCP protocol2024-11-05.Minimal reproduction after downloading and verifying the executable:
Save this as
adk_h0_trial.py:Downloadable reproduction: the optional Windows x64 replay ZIP contains the unchanged released native executable, the trial script, pinned Python dependencies and a PowerShell launcher. Check the archive SHA-256 before extraction. I also ran the launcher from a fresh virtual environment and obtained the same 12 passing comparisons. Python 3.13 and network access to install the client dependencies are required; no model credentials are used. The client dependencies are not bundled.
Revision 2 uses explicit exceptions so Python optimization cannot remove the reference checks. I verified the fresh-environment launcher with
PYTHONOPTIMIZE=1, and separately checked that incorrect content, a tool error and a missing tool each fail.Limits: this is direct ADK tool-wrapper interoperability, not a model-driven agent run or external adoption. I discovered but did not invoke the Merkle-root or C-ABI-layout tools in this trial. I did not test ADK on Linux, production security, load, or reliability. No model API credentials were used. The Python ADK environment still has its normal dependencies; the native backend's packaging does not remove those.
All reactions