mcp

v0.4.1
@zkproofport-ai/mcp Checked 14 hours ago Published 1 month ago

Local MCP server and CLI for ZKProofport Coinbase KYC, country, OIDC and GIWA attestation proofs.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_action_approval

Read the status of a human wallet approval created by this MCP client. This operation never starts a proof or payment.

ParameterTypeDescription
approval_id *stringThe approval_id returned by generate_proof or prepare_inputs

generate_proof

All-in-one ZK proof generation. Handles: prepare inputs, request challenge, and submit proof in a single call. Use this when you want the simplest path to a proof. For fine-grained control over each step, use prepare_inputs, request_challenge, and submit_proof individually. CIRCUITS: - "coinbase_kyc": Proves the user passed Coinbase KYC verification. - "coinbase_country": Proves the user's country of residence is (or is not) in a given list. Requires country_list and is_included. - "oidc_domain": Proves the user authenticated via OIDC and their email belongs to a specific domain. Requir…

ParameterTypeDescription
circuit *stringWhich circuit to use
actionobjectThe EIP-712 action to authorise. Optional for giwa_attestation; rejected for other circuits. Any structure is provable: the circuit hashes it without reading it, so a deposit, a grant of authority or…
approval_idstringResume the SAME original action request using the approval_id returned with awaiting_approval. Keep all original parameters unchanged.
approved_paymentobjectExact user-approved terms. Set extra.verifyingContract to the offer asset (EIP-3009). Changed fee, recipient, token, chain or signing domain is rejected before signing.
country_listarrayISO 3166-1 alpha-2 country codes. Required for coinbase_country circuit.
is_includedbooleantrue = prove country IS in list, false = prove NOT in list. Required for coinbase_country circuit.
jwtstringOIDC JWT token (id_token) for oidc_domain circuit
max_paymentstringMaximum USDC proof fee allowed by the user.
pay_onstringWhich chain to pay on: a CAIP-2 id ("eip155:84532") or a plain name ("base-sepolia", "ethereum-sepolia"). Call request_challenge to see what a service offers. Omitted takes the first chain offered. Th…
pay_withstringWhich wallet pays, when the service charges. "key" signs with PAYMENT_PRIVATE_KEY. "cdp" uses a Coinbase CDP server wallet (CDP_API_KEY_ID, CDP_API_KEY_SECRET, CDP_WALLET_SECRET). Omit it and the sing…
providerstringOIDC provider. "google" (default) for Google Workspace, "microsoft" for Microsoft 365.
scopestringScope string for nullifier derivation. Defaults to "proofport" if omitted. For oidc_domain circuit, this is the domain scope string.

get_supported_circuits

List all ZK circuits supported by ZKProofport, including verifier addresses and authorized signers. No parameters required. Call this first to discover available circuits before starting proof generation.

request_challenge

Step 2 of the step-by-step flow: Request a challenge from the server. Pass inputs: {} to discover the live payment offers, nonce and optional TEE key without transmitting private witness inputs. You MUST pass the returned "nonce" to submit_proof — without it the server just issues another challenge. MCP submit_proof does not sign payments or encrypt inputs; use generate_proof or the SDK for paid/encrypted orchestration.

ParameterTypeDescription
circuit *stringWhich circuit to use
inputs *Use {} to discover the nonce, payment offers and optional TEE key without transmitting private witness inputs. Also accepts a JSON string or object from trusted local code; any supplied witness is sen…

prepare_inputs

Step 1 of the step-by-step flow. WITH ACTION: human wallet approval is required; returns awaiting_approval until resumed with approval_id. Approved action witnesses stay in private local storage; pass the returned prepared_inputs_id to submit_proof. WITHOUT ACTION: retains the existing credential-key signature and private witness result. Handle private witness inputs only in trusted local code, never expose them to the dApp, model or logs. Call this BEFORE request_challenge. For oidc_domain provide jwt and scope.

ParameterTypeDescription
circuit *stringWhich circuit to use
actionobjectThe EIP-712 action to authorise. Optional for giwa_attestation; rejected for other circuits. Any structure is provable: the circuit hashes it without reading it, so a deposit, a grant of authority or…
approval_idstringResume the SAME original action request using the approval_id returned with awaiting_approval. Keep all original parameters unchanged.
country_listarrayISO 3166-1 alpha-2 country codes. Required for coinbase_country circuit.
is_includedbooleantrue = prove country IS in list, false = prove NOT in list. Required for coinbase_country circuit.
jwtstringOIDC JWT token (id_token) for oidc_domain circuit
providerstringOIDC provider. "google" (default) for Google Workspace, "microsoft" for Microsoft 365.
scopestringScope string for nullifier derivation. Defaults to "proofport" if omitted. For oidc_domain circuit, this is the domain scope string.

submit_proof

Step 3 of the step-by-step flow: Submit prepared inputs to generate the ZK proof. The TEE server runs the Noir circuit and returns the UltraHonk proof. This step may take 30-90 seconds. The TEE server builds Prover.toml from these inputs. You MUST pass the nonce returned by request_challenge. POST /api/v1/prove answers every request that arrives without that nonce with a fresh 402 challenge, so a submission that omits it can never produce a proof.

ParameterTypeDescription
circuit *stringWhich circuit to use
nonce *stringThe "nonce" field from the request_challenge response. Single-use and bound to the circuit it was issued for — request a new challenge for every submission and for every circuit.
inputsFull ProveInputs object from prepare_inputs. Accepts a JSON string or a structured object.
prepared_inputs_idstringPrivate local action witness handle returned by prepare_inputs. Use instead of inputs; consumed once.

verify_proof

Step 4 (optional): Verify a ZK proof on-chain against the deployed verifier contract. Pass the full generate_proof result object directly — verification info (verifierAddress, chainId, rpcUrl) is extracted automatically. Returns { valid: true } if the proof is valid.

ParameterTypeDescription
result *objectFull result object from generate_proof — pass it directly without extracting fields