Back to Browse

Agent Mediate MCP Server

Developer ToolsLow Risk9.7MCP RegistryLocal
Free

Server data from the Official MCP Registry

Neutral sealed-offer dispute mediation for autonomous AI agents via did:key & x402

About

Neutral sealed-offer dispute mediation for autonomous AI agents via did:key & x402

Security Report

9.7
Low Risk9.7Low Risk

Valid MCP server (2 strong, 1 medium validity signals). No known CVEs in dependencies. ⚠️ Package registry links to a different repository than scanned source. Imported from the Official MCP Registry. 1 finding(s) downgraded by scanner intelligence.

8 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Agent-Mediate API base URL (e.g. https://api.ai-agents-mediation.com)Optional

Environment variable: AGENT_MEDIATE_URL

Path to your Ed25519 PKCS#8 PEM agent key file (created with mode 0600 if missing)Optional

Environment variable: AGENT_MEDIATE_AGENT_KEY_FILE

Platform Ed25519 did:key pinned out of band (required in production and on Base mainnet eip155:8453)Optional

Environment variable: AGENT_MEDIATE_PLATFORM_DID

Expected signed outcome environment (e.g. production)Optional

Environment variable: AGENT_MEDIATE_EXPECTED_ENV

Optional 64-character lowercase hex SHA-256 mechanism rulesHash pinOptional

Environment variable: AGENT_MEDIATE_EXPECTED_RULES_HASH

Optional operator-pinned https:// webhook URL for party-only dispute eventsOptional

Environment variable: AGENT_MEDIATE_WEBHOOK_URL

Optional operator-pinned https:// A2A Agent Card URL for standing notificationsOptional

Environment variable: AGENT_MEDIATE_A2A_CARD_URL

Optional operator-pinned email address for dispute notificationsOptional

Environment variable: AGENT_MEDIATE_NOTIFY_EMAIL

Set 'true' to allow model-supplied notification URLs/emails when unpinned (default false)Optional

Environment variable: AGENT_MEDIATE_ALLOW_DYNAMIC_WEBHOOKS

Optional path to JSON file containing principal-signed mandate(s)Optional

Environment variable: AGENT_MEDIATE_MANDATE_FILE

Optional path to JSON file mapping issue IDs to {min,max} operator authority ceilings in self-representing modeOptional

Environment variable: AGENT_MEDIATE_MAX_BOUNDS_FILE

Set 'true' to opt in to unattended self-signed update_mandate widenings when no mandate file, ceiling, or elicitation is active (default false)Optional

Environment variable: AGENT_MEDIATE_ALLOW_UNATTENDED_WIDENING

Optional 0x-prefixed EVM private key for automatic x402 USDC fee payment on BaseRequired

Environment variable: AGENT_MEDIATE_PAYER_KEY

Base CAIP-2 network: eip155:84532 (Base Sepolia, default) or eip155:8453 (Base mainnet)Optional

Environment variable: AGENT_MEDIATE_NETWORK

Pinned 0x fee recipient address (required on Base mainnet)Optional

Environment variable: AGENT_MEDIATE_PAY_TO

Maximum USDC per single payment (default 5.00)Optional

Environment variable: AGENT_MEDIATE_MAX_FEE_USDC

Maximum cumulative USDC spend for this MCP server process (default 10.00)Optional

Environment variable: AGENT_MEDIATE_BUDGET_USDC

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@agent-mediate/mcp"
      ],
      "env": {
        "AGENT_MEDIATE_URL": "your-agent-mediate-url-here",
        "AGENT_MEDIATE_PAY_TO": "your-agent-mediate-pay-to-here",
        "AGENT_MEDIATE_NETWORK": "your-agent-mediate-network-here",
        "AGENT_MEDIATE_PAYER_KEY": "your-agent-mediate-payer-key-here",
        "AGENT_MEDIATE_BUDGET_USDC": "your-agent-mediate-budget-usdc-here",
        "AGENT_MEDIATE_WEBHOOK_URL": "your-agent-mediate-webhook-url-here",
        "AGENT_MEDIATE_A2A_CARD_URL": "your-agent-mediate-a2a-card-url-here",
        "AGENT_MEDIATE_EXPECTED_ENV": "your-agent-mediate-expected-env-here",
        "AGENT_MEDIATE_MANDATE_FILE": "your-agent-mediate-mandate-file-here",
        "AGENT_MEDIATE_MAX_FEE_USDC": "your-agent-mediate-max-fee-usdc-here",
        "AGENT_MEDIATE_NOTIFY_EMAIL": "your-agent-mediate-notify-email-here",
        "AGENT_MEDIATE_PLATFORM_DID": "your-agent-mediate-platform-did-here",
        "AGENT_MEDIATE_AGENT_KEY_FILE": "your-agent-mediate-agent-key-file-here",
        "AGENT_MEDIATE_MAX_BOUNDS_FILE": "your-agent-mediate-max-bounds-file-here",
        "AGENT_MEDIATE_EXPECTED_RULES_HASH": "your-agent-mediate-expected-rules-hash-here",
        "AGENT_MEDIATE_ALLOW_DYNAMIC_WEBHOOKS": "your-agent-mediate-allow-dynamic-webhooks-here",
        "AGENT_MEDIATE_ALLOW_UNATTENDED_WIDENING": "your-agent-mediate-allow-unattended-widening-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

Agent-Mediate — Open SDKs, MCP Server & Deterministic Mechanism

Agent-Mediate MCP server

Neutral, zero-custody dispute resolution for autonomous AI agents. Two agents in a commercial or SLA dispute submit principal-bounded, sealed numerical offers; a deterministic mechanism (docs/mechanism.md) settles overlapping offers at the midpoint or proposes a fair split, returning an immutable Ed25519Signature2026 settlement instruction or UNRESOLVED certificate while keeping confidential walkaways and issue weights private.

  • Human Web Portal & Browser Verifier: https://ai-agents-mediation.com (verify signed outcomes locally at https://ai-agents-mediation.com/verify)
  • Production API & LLM Protocol Index: https://api.ai-agents-mediation.com (GET /llms.txt, GET /llms-full.txt, GET /openapi.json)
  • Pinned Production Platform did:key: did:key:z6Mkg7r4aHyPrNKYy1gbWGXu15VgyN9fCbhqKVwftdhHxJ3W
  • Live Practice Counterparty Bot ($0.00 test respondent): did:key:z6Mkn42ijWNFD285Ru7xAfVPtVB1LRpmGe5f649fDwxPEanY (automates only the respondent side — your agent drives close_evidence → confirm_issues → submit_offer → confirm_execution to reach HONORED in ~15 s; non-binding, zero custody)
  • Canonical Mechanism RULES_HASH (v1.4.0): 10b48aa0d8a4a71808f5550f951ad128aa0af44b775b2c88c73ddb1dd1cee173

Published Packages (Apache-2.0)

Install directly from official npm or PyPI (never third-party MCP wrapper marketplaces):

PackageRegistryPurpose
@agent-mediate/mcpnpmStdio Model Context Protocol server (npx -y @agent-mediate/mcp) with prompt-injection untrusted-text wrapping and principal mandate enforcement
@agent-mediate/sdknpmTypeScript client (Node 20+): RFC 9421 signing, idempotent retries, pre-dispute clauses, cold-start $0.00 invites, x402 USDC payer, and outcome/audit verification
@agent-mediate/protocolnpmCryptographic wire primitives: did:key, did:web, JWKS, key-history rotation/revocation, RFC 9421 HTTP Message Signatures, mandates & clauses
@agent-mediate/corenpmPure deterministic state machine, bargaining/determination math, disclosure filter, RFC 8785 JCS canonicalJson, SHA-256 hash chains & RFC 6962 Merkle proofs
agent-mediatePyPIZero-dependency Python 3.9+ stdlib SDK with cross-language Ed25519, JCS, RFC 9421, mandate/clause, and client parity

Local Coding Agents vs. Hosted Cloud Sandboxes: Run real commercial mediations from local coding agents (Antigravity, Claude Code, Cursor, Codex CLI) or your own server so your Ed25519 private keys never leave your infrastructure. Hosted cloud chat sandboxes (e.g. Gemini Tasks) disable outbound internet and stdio MCP by default — use cloud VMs only with ephemeral keys for $0.00 Practice Bot tests, or have them generate local setup commands for your machine.


60-Second Quickstart ($0.00 Waived Launch Fees, Zero Wallet Setup)

  1. Test Against the Live Hosted Practice Bot (zero repo clone): File any 1–5 numeric issue dispute (SLA credits, redelivery windows, invoice terms, API allowances, refunds) or $0.00 invite naming did:key:z6Mkn42ijWNFD285Ru7xAfVPtVB1LRpmGe5f649fDwxPEanY as respondentId (also returned by GET /v1/platform -> practiceBot.did). The Practice Bot automates only the respondent side — keep driving the claimant steps (close_evidence → confirm_issues → submit_offer → confirm_execution) as shown below to reach HONORED in ~15 seconds.
  2. Run a Local Practice Respondent: npm run build && node examples/practice-respondent.ts
  3. 2-Agent Cross-Language Demo (<8s): npm run build && node examples/e2e-sla-demo.ts — Python (agent-mediate) buyer + TypeScript (@agent-mediate/mcp) vendor co-sign a clause, settle via sealed offers on https://api.ai-agents-mediation.com, and dual-verify the Ed25519Signature2026 outcome (see examples/README.md).
  4. AP2 + Stripe ACP Pre-Chargeback Adapter: npm run build && node examples/ap2-stripe-prechargeback.ts --offline (or without --offline for live $0.00 Mode A) — binds a Google AP2 Closed Payment Mandate + Stripe PaymentIntent via RFC 8785 JCS, settles an integrative cash + credit split, and executes an idempotent POST /v1/refunds after fail-closed Ed25519Signature2026 verification.
  5. x402r + Coinbase AgentKit Escrow Adapter: npm run build && node examples/x402r-agentkit-escrow.ts --offline (or without --offline for live $0.00 Mode A) — binds an x402r AuthCaptureEscrow PaymentInfo via RFC 8785 JCS, negotiates a partial USDC refund + SLA patch window via an AgentKit-compatible ActionProvider, and verifies Ed25519Signature2026 fail-closed before calling refundInEscrow + releaseEscrow.

1. MCP Server (Claude Desktop, Claude Code, Cursor, Antigravity)

{
  "mcpServers": {
    "agent-mediate": {
      "command": "npx",
      "args": ["-y", "@agent-mediate/mcp@0.2.5"],
      "env": {
        "AGENT_MEDIATE_URL": "https://api.ai-agents-mediation.com",
        "AGENT_MEDIATE_PLATFORM_DID": "did:key:z6Mkg7r4aHyPrNKYy1gbWGXu15VgyN9fCbhqKVwftdhHxJ3W",
        "AGENT_MEDIATE_AGENT_KEY_FILE": "./agent-ed25519.pem"
      }
    }
  }
}

2. TypeScript SDK (npm install @agent-mediate/sdk@0.2.5)

import {
  AgentMediateClient,
  contractHash,
  generateAgentKey,
} from "@agent-mediate/sdk";

const client = new AgentMediateClient({
  baseUrl: "https://api.ai-agents-mediation.com",
  agentKey: generateAgentKey(), // persist PEM locally in production
  platformDid: "did:key:z6Mkg7r4aHyPrNKYy1gbWGXu15VgyN9fCbhqKVwftdhHxJ3W",
});

// File against the $0.00 Practice Bot -> closeEvidence -> confirmIssues -> submitOffer -> outcome
const { disputeId } = await client.fileDispute({
  respondentId: "did:key:z6Mkn42ijWNFD285Ru7xAfVPtVB1LRpmGe5f649fDwxPEanY",
  contractHash: contractHash({ orderId: "sla-demo-01", monthlyFeeUsd: 600 }),
  claim: {
    summary: "API unavailable for 42 minutes against a 99.9% monthly SLA.",
    requestedRemedy: "Pro-rata SLA service credit in USD.",
  },
  proposedIssues: [{
    id: "serviceCreditUsd",
    label: "SLA Service Credit",
    unit: "USD",
    min: 0,
    max: 600,
    step: 10,
    claimantPrefers: "higher",
    obligor: "respondent",
  }],
  bounds: { serviceCreditUsd: { min: 150, max: 600 } },
  determinationConsent: true,
});

await client.waitFor(disputeId, (v) => v.status === "EVIDENCE");
await client.closeEvidence(disputeId);

const { view: ic } = await client.waitFor(disputeId, (v) => Boolean(v.issueNegotiation.proposedHash));
await client.confirmIssues(disputeId, ic.issueNegotiation.proposedHash!);

await client.waitFor(disputeId, (v) => v.status === "BARGAINING");
await client.submitOffer(disputeId, 1, {
  offer: { serviceCreditUsd: 300 },
  private: { weights: { serviceCreditUsd: 1 }, walkaway: { serviceCreditUsd: 200 } },
});

const r2 = await client.waitForTurn(disputeId);
if (r2.view.status === "BARGAINING" && r2.view.proposalWithinYourMandate) {
  await client.submitOffer(disputeId, 2, { offer: { serviceCreditUsd: 260 }, proposalResponse: "accept" });
}

const exec = await client.waitFor(
  disputeId,
  (v) => v.status !== "BARGAINING" && (v.status !== "EXECUTION_PENDING" || Boolean(v.execution?.proofs.respondent)),
);
if (exec.view.status === "EXECUTION_PENDING") await client.confirmExecution(disputeId);
const signedOutcome = await client.outcome(disputeId);

3. Python SDK (pip install agent-mediate==0.2.5)

from agent_mediate import AgentMediateClient, contract_hash, generate_agent_key

client = AgentMediateClient(
    base_url="https://api.ai-agents-mediation.com",
    agent_key=generate_agent_key(),  # persist PEM locally in production
    platform_did="did:key:z6Mkg7r4aHyPrNKYy1gbWGXu15VgyN9fCbhqKVwftdhHxJ3W",
)

filed = client.file_dispute(
    respondent_id="did:key:z6Mkn42ijWNFD285Ru7xAfVPtVB1LRpmGe5f649fDwxPEanY",
    contract_hash=contract_hash({"orderId": "sla-demo-01", "monthlyFeeUsd": 600}),
    claim={
        "summary": "API unavailable for 42 minutes against a 99.9% monthly SLA.",
        "requestedRemedy": "Pro-rata SLA service credit in USD.",
    },
    proposed_issues=[{
        "id": "serviceCreditUsd",
        "label": "SLA Service Credit",
        "unit": "USD",
        "min": 0,
        "max": 600,
        "step": 10,
        "claimantPrefers": "higher",
        "obligor": "respondent",
    }],
    bounds={"serviceCreditUsd": {"min": 150, "max": 600}},
    determination_consent=True,
)
dispute_id = filed["disputeId"]

client.wait_for(dispute_id, lambda v: v["status"] == "EVIDENCE")
client.close_evidence(dispute_id)

ic = client.wait_for(dispute_id, lambda v: bool(v["issueNegotiation"]["proposedHash"]))
client.confirm_issues(dispute_id, ic["view"]["issueNegotiation"]["proposedHash"])

client.wait_for(dispute_id, lambda v: v["status"] == "BARGAINING")
client.submit_offer(
    dispute_id,
    1,
    offer={"serviceCreditUsd": 300},
    private={"weights": {"serviceCreditUsd": 1}, "walkaway": {"serviceCreditUsd": 200}},
)

r2 = client.wait_for_turn(dispute_id)
if r2["view"]["status"] == "BARGAINING" and r2["view"].get("proposalWithinYourMandate"):
    client.submit_offer(dispute_id, 2, offer={"serviceCreditUsd": 260}, proposal_response="accept")

exec_res = client.wait_for(
    dispute_id,
    lambda v: v["status"] != "BARGAINING"
    and (v["status"] != "EXECUTION_PENDING" or bool((v.get("execution") or {}).get("proofs", {}).get("respondent"))),
)
if exec_res["view"]["status"] == "EXECUTION_PENDING":
    client.confirm_execution(dispute_id)
print("Verified outcome:", client.outcome(dispute_id)["document"]["terms"])

Repository Layout

packages/core/          Pure deterministic bargaining & verifiability engine (zero dependencies, zero I/O)
packages/protocol/      did:key, did:web, JWKS, key-history, RFC 9421, mandates & pre-dispute clauses
packages/sdk/           TypeScript client SDK & x402 EIP-3009 USDC payer
packages/mcp/           Model Context Protocol stdio server + MCP Registry server.json
packages/python/        Zero-dependency Python 3.9+ SDK (agent-mediate on PyPI)
skills/agent-mediate/   Portable Agent Skill (SKILL.md) for Claude Code, Cursor, Codex & Antigravity
examples/               Runnable TypeScript & Python adapters (AP2/Stripe ACP, x402r/AgentKit), quickstarts, clauses & webhook receiver
testdata/               Cross-language JCS, Ed25519, RFC 9421, and Merkle conformance vectors
docs/mechanism.md       Formal mathematical mechanism specification (RULES_VERSION 1.4.0)

Local Verification

npm ci --ignore-scripts
npm run check

License

Apache License 2.0 — see LICENSE and NOTICE.

Reviews

No reviews yet

Be the first to review this server!