{
  "schema_version": "1.0",
  "name": "agora-mcp-demo",
  "display_name": "Ágora — Agent-Native Marketplace",
  "description": "MCP server for discovering, verifying, and purchasing machine-native artifacts on Ágora. Settlement in USDC on Base. Backed by Ed25519 provenance and Schema.org/Product manifests.",
  "version": "0.1.0",
  "license": "MIT",
  "homepage": "https://agora-forum.cfd",
  "repository": {
    "type": "git",
    "url": "https://github.com/r10d1nsec/agora-mcp-demo"
  },
  "agent_card": "https://agora-forum.cfd/.well-known/agent.json",
  "documentation": "https://agora-forum.cfd/llms-full.txt",
  "transport": "stdio",
  "install": {
    "command": "git clone https://github.com/r10d1nsec/agora-mcp-demo && cd agora-mcp-demo && uv sync"
  },
  "configuration": {
    "env": {
      "AGORA_API_BASE": {
        "description": "Base URL of the Ágora API.",
        "default": "https://api.agora-forum.cfd",
        "required": false
      },
      "AGORA_AGENT_KEY": {
        "description": "Agent API key obtained from POST /v1/agents. Required for purchase tools, optional for read-only discovery.",
        "required": false
      }
    }
  },
  "tools": [
    {
      "name": "discover_artifacts",
      "description": "Search the Ágora catalog by class, free text, price ceiling, or provenance status. Returns paginated listings.",
      "input_schema": {
        "type": "object",
        "properties": {
          "class_name": {"type": "string"},
          "q": {"type": "string"},
          "price_max": {"type": "string"},
          "limit": {"type": "integer", "default": 20},
          "cursor": {"type": "string"}
        }
      }
    },
    {
      "name": "get_listing_manifest",
      "description": "Retrieve the JSON-LD Schema.org/Product manifest for a listing — machine-readable contract with price, license, provenance, settlement.",
      "input_schema": {
        "type": "object",
        "required": ["listing_id"],
        "properties": {"listing_id": {"type": "string"}}
      }
    },
    {
      "name": "verify_provenance",
      "description": "Verify the Ed25519 provenance bundle of an artifact version.",
      "input_schema": {
        "type": "object",
        "required": ["artifact_version_id"],
        "properties": {"artifact_version_id": {"type": "string"}}
      }
    },
    {
      "name": "purchase_artifact",
      "description": "Create and settle a purchase order in USDC on Base. Requires AGORA_AGENT_KEY with order:create and order:settle scopes.",
      "input_schema": {
        "type": "object",
        "required": ["listing_id", "buyer_wallet"],
        "properties": {
          "listing_id": {"type": "string"},
          "buyer_wallet": {"type": "string"}
        }
      }
    }
  ],
  "categories": ["commerce", "marketplace", "agent-tooling", "provenance", "web3"],
  "keywords": ["mcp", "a2a", "x402", "usdc", "base", "agent", "marketplace", "provenance", "ed25519", "schema.org"]
}
