This quickstart stops after
prepare_deployment_typed_data. The returned typed data proves that hosted MCP can assemble the exact deploy authorization payload, including chain nonce/context, without performing a live write.Configure hosted MCP
Configure Shodai as a remote Streamable HTTP MCP server:docs.shodai.network may expose a separate docs/search MCP surface for retrieving documentation. That server does not execute Agreements API workflows. Use https://shodai.network/mcp for Agreements execution tools.
environment argument: testnet or production. API keys only work in the environment where they were created, so a testnet key must be used with environment: "testnet".
The hosted server is stateless: every request is authenticated independently, no credential is stored server-side, and only POST is served.
Verify tool access
List MCP tools
Ask your connected client to run Pin
tools/list, or use MCP Inspector:@latest: older Inspector versions cached by npx do not support --transport and --header for URL targets.Call an authenticated read tool
Call:with:This confirms the hosted MCP server can authenticate your key and call the Agreements API.
Read the simple example resource
Run Parse the returned
resources/list, then read:contents[0].text value as agreement for the remaining tool calls.Validate the agreement
Call:with:Confirm the response includes participant variable keys, input IDs, state IDs, and warnings.
Prepare public deployment values
Choose public wallet addresses for the first-flight deployment context. Hosted MCP needs addresses only, not private keys.Use real public addresses from your signing setup for an actual run. The first address is the deploy signer for this first-flight check.
Preflight deployment
Call:with:Review
variables, participants, observers, contributors, and warnings before preparing typed data.Prepare deploy typed data
Call:with the same Confirm the response includes:
environment, agreement, chainId, signerAddress, and participants:typedDatasignerAddresschainIddeadlinedocUridocumentIdnormalizedInitValuesnormalizedParticipantsnormalizedObserverspreflightWarningsnextStepplaygroundUrl
Recommended signing harness
The signing harness is optional because hosted MCP does not require one specific custody model. Use one of these signing paths:| Signing path | Use it when |
|---|---|
| Existing wallet or signing service | Your agent host already exposes an EIP-712 signer. |
TypeScript SDK + viem | You need a local testnet signing harness for the typed data returned by MCP. |
| API Playground | You want browser-based experimentation with a key you control. |
| Local stdio MCP signer | You are doing development/testnet automation with AGREEMENTS_SIGNER_PRIVATE_KEY; do not use this for production keys. |
Write authority
Onlydeploy_agreement and submit_input are side-effecting tools; submit_input may advance lifecycle state.
validate_agreement, preflight_deployment, prepare_deployment_typed_data, and prepare_input_typed_data are non-destructive preparation steps. Scope is not the same as side effect: some non-destructive tools require agreements.write because they validate deployment context or prepare write authorization.
Hosted MCP receives signed permit fields only. It never receives private keys. AGREEMENTS_SIGNER_PRIVATE_KEY is local stdio-only and for development/testnet automation.