insumer_compliance_templates
List compliance templates for EAS attestation verification. Templates pre-configure schema IDs, attester addresses, and decoder contracts for KYC/identity providers, enabling easier attestation condition setup.
Instructions
List available compliance templates for EAS attestation verification. Templates provide pre-configured schema IDs, attester addresses, and decoder contracts for KYC/identity providers (Coinbase Verifications on Base, Gitcoin Passport on Optimism). Use a template name in insumer_attest conditions instead of specifying raw EAS parameters. No authentication or credits required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:263-276 (handler)The full handler for the insumer_compliance_templates tool. Makes a GET request to /compliance/templates on the API and returns the result.
server.tool( "insumer_compliance_templates", "List available compliance templates for EAS attestation verification. Templates provide pre-configured schema IDs, attester addresses, and decoder contracts for KYC/identity providers (Coinbase Verifications on Base, Gitcoin Passport on Optimism). Use a template name in insumer_attest conditions instead of specifying raw EAS parameters. No authentication or credits required.", {}, async () => { const url = `${API_BASE}/compliance/templates`; const res = await fetch(url, { method: "GET", headers: { "Accept": "application/json" }, }); const result = await res.json() as { ok: boolean; data?: unknown; error?: unknown; meta?: unknown }; return formatResult(result); } ); - src/index.ts:263-276 (registration)The tool is registered on the MCP server using server.tool() with name 'insumer_compliance_templates'.
server.tool( "insumer_compliance_templates", "List available compliance templates for EAS attestation verification. Templates provide pre-configured schema IDs, attester addresses, and decoder contracts for KYC/identity providers (Coinbase Verifications on Base, Gitcoin Passport on Optimism). Use a template name in insumer_attest conditions instead of specifying raw EAS parameters. No authentication or credits required.", {}, async () => { const url = `${API_BASE}/compliance/templates`; const res = await fetch(url, { method: "GET", headers: { "Accept": "application/json" }, }); const result = await res.json() as { ok: boolean; data?: unknown; error?: unknown; meta?: unknown }; return formatResult(result); } ); - src/index.ts:264-266 (schema)The schema is minimal (empty object {}), meaning no input parameters are required. The description documents that it lists compliance templates for EAS attestation verification.
"insumer_compliance_templates", "List available compliance templates for EAS attestation verification. Templates provide pre-configured schema IDs, attester addresses, and decoder contracts for KYC/identity providers (Coinbase Verifications on Base, Gitcoin Passport on Optimism). Use a template name in insumer_attest conditions instead of specifying raw EAS parameters. No authentication or credits required.", {}, - src/index.ts:61-76 (helper)The formatResult helper used by the handler to format the API response into MCP content blocks.
function formatResult(result: { ok: boolean; data?: unknown; error?: unknown; meta?: unknown; }) { if (result.ok) { return { content: [{ type: "text" as const, text: JSON.stringify(result, null, 2) }], }; } return { content: [{ type: "text" as const, text: JSON.stringify(result, null, 2) }], isError: true, }; }