aga_verify_bundle
Verify evidence bundles offline using a 4-step verification process to ensure integrity and authenticity against cryptographic references.
Instructions
Verify evidence bundle offline - 4-step verification. (Section J)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bundle | No | ||
| pinned_public_key | No |
Implementation Reference
- src/tools/verify-bundle.ts:10-13 (handler)The handler function for the aga_verify_bundle tool which orchestrates the bundle verification process.
export async function handleVerifyBundle(args: VerifyBundleArgs, ctx: ServerContext) { const verification = verifyBundleOffline(args.bundle, args.pinned_public_key); return ctx.json({ success: true, verification }); } - src/server.ts:208-218 (registration)Registration of the aga_verify_bundle tool in the MCP server.
server.tool('aga_verify_bundle', 'Verify evidence bundle offline - 4-step verification. (Section J)', { bundle: z.any(), pinned_public_key: z.string().optional(), }, async (args) => { const pk = args.pinned_public_key ?? (await import('./crypto/sign.js')).pkToHex(ctx.issuerKP.publicKey); return handleVerifyBundle({ bundle: args.bundle, pinned_public_key: pk }, ctx); }, ); - src/tools/verify-bundle.ts:5-8 (schema)Input schema for the handleVerifyBundle tool.
export interface VerifyBundleArgs { bundle: EvidenceBundle; pinned_public_key: string; }