Test with MCP
Let an AI agent discover synthetic inputs and call normal Openhandle tools without charges.
Connect an MCP client to the Streamable HTTP endpoint:
https://api.openhandle.dev/mcpInteractive clients sign in with OAuth. Choose Test on the approval screen. Scripts can send a Test API key instead:
Authorization: Bearer $OPENHANDLE_TEST_KEYThe credential selects Test for every endpoint tool. Do not add an environment tool argument, header, prompt instruction, or server setting. Read MCP server for the OAuth details.
Agent sequence
- Read
openhandle://test/quickstart. - Call
find_test_datawith an operation and optional traits. - Call the matching endpoint tool with the returned input.
- Verify the expected result.
- Read
environment,requestId,actualCharge,liveEquivalentPrice, anddatasetVersionfrom result metadata.
Example discovery input:
{
"operation": "instagram.post.comments.list",
"traits": ["public", "paginated"],
"limit": 1
}find_test_data and get_test_data are deterministic and unmetered. They return
metadata, not complete social payloads. Endpoint tools use the public API
pipeline and create the normal test request history and zero-charge usage entry.
The same endpoint tool schemas work with Live. Only the credential, identifiers, data source, and billing behavior change.