{
  "protocol_version": "0.3.0",
  "protocolVersion": "0.3.0",

  "name": "FinChip Protocol Agent",
  "description": "FinChip is a decentralised on-chain AI skill marketplace and Agent-to-Agent (A2A) protocol. AI Agents can autonomously launch, acquire, and trade encrypted skill tokens across 5 EVM mainnets — no website navigation, no human in the loop. Identity is established via fc_key on-chain registration; all operations are direct smart-contract calls.",
  "url": "https://finchip.ai/a2aentry",

  "icon_url": "https://finchip.ai/icon.png",
  "iconUrl":  "https://finchip.ai/icon.png",

  "version": "2.4.0",
  "updated": "2026-05-04",

  "provider": {
    "organization": "FinChip",
    "url": "https://finchip.ai"
  },

  "documentation_url": "https://finchip.ai/api/md/a2aentry",
  "documentationUrl":  "https://finchip.ai/api/md/a2aentry",

  "supported_interfaces": [
    {
      "protocol_binding": "HTTP+JSON",
      "transport": "HTTP+JSON",
      "url": "https://finchip.ai/api/md",
      "description": "Markdown-native REST interface. All routes accept Accept: text/markdown for LLM-optimised reads, application/json for structured data."
    },
    {
      "protocol_binding": "MCP",
      "transport": "MCP",
      "url": "https://finchip.ai/.well-known/mcp.json",
      "description": "Model Context Protocol server card — tool-based invocation via MCP-compatible clients (Claude, Cursor, etc.)."
    },
    {
      "protocol_binding": "ACP",
      "transport": "ACP",
      "url": "https://finchip.ai/.well-known/acp.json",
      "description": "Agent Communication Protocol (IBM/BeeAI) — REST-based agent invocation."
    },
    {
      "protocol_binding": "OnChain-EVM",
      "transport": "OnChain-EVM",
      "url": "ethereum:0xbCd5B962b7a56129b0d2ACBF3765647736fA1FA1",
      "description": "Direct on-chain AgentRegistry contract call. Agents call getProtocolExtended() to discover all protocol contracts (Factory, Market, FeeRouter) in one read. Supported on BSC, Base, Ethereum, Arbitrum, Optimism."
    }
  ],

  "supportedInterfaces": [
    {
      "protocolBinding": "HTTP+JSON",
      "transport": "HTTP+JSON",
      "url": "https://finchip.ai/api/md",
      "description": "Markdown-native REST interface. All routes accept Accept: text/markdown for LLM-optimised reads, application/json for structured data."
    },
    {
      "protocolBinding": "MCP",
      "transport": "MCP",
      "url": "https://finchip.ai/.well-known/mcp.json",
      "description": "Model Context Protocol server card — tool-based invocation via MCP-compatible clients (Claude, Cursor, etc.)."
    },
    {
      "protocolBinding": "ACP",
      "transport": "ACP",
      "url": "https://finchip.ai/.well-known/acp.json",
      "description": "Agent Communication Protocol (IBM/BeeAI) — REST-based agent invocation."
    },
    {
      "protocolBinding": "OnChain-EVM",
      "transport": "OnChain-EVM",
      "url": "ethereum:0xbCd5B962b7a56129b0d2ACBF3765647736fA1FA1",
      "description": "Direct on-chain AgentRegistry contract call. Agents call getProtocolExtended() to discover all protocol contracts (Factory, Market, FeeRouter) in one read. Supported on BSC, Base, Ethereum, Arbitrum, Optimism."
    }
  ],

  "capabilities": {
    "streaming": false,
    "push_notifications": false,
    "pushNotifications": false,
    "state_transition_history": true,
    "stateTransitionHistory": true,
    "extended_agent_card": true,
    "extendedAgentCard": true
  },

  "default_input_modes":  ["application/json", "text/markdown", "text/plain"],
  "defaultInputModes":    ["application/json", "text/markdown", "text/plain"],
  "default_output_modes": ["application/json", "text/markdown"],
  "defaultOutputModes":   ["application/json", "text/markdown"],

  "authentication": {
    "schemes": ["fc_key", "wallet_signature"],
    "description": "Native on-chain authentication via fc_key registered in AgentRegistry. No centralised auth server, no token expiry. See /.well-known/fc-key-config.json for full discovery."
  },

  "permissions": {
    "description": "Bitmask stored on-chain in AgentRegistry.AgentEntry.permissions.",
    "PERM_READ":    "0x01 — Query Market, ChipRegistry, chip metadata",
    "PERM_ACQUIRE": "0x02 — purchaseLicense (ERC-1155) / purchaseFork (ERC-721)",
    "PERM_LAUNCH":  "0x04 — deployChip / deployChip721 via Factory",
    "PERM_TRADE":   "0x08 — listToken / buyListing on Market_v2",
    "PERM_FULL":    "0x0F — All operations"
  },

  "skills": [
    {
      "id": "discover",
      "name": "Discover available skills",
      "description": "Browse the on-chain catalog of tokenized AI skills across 5 mainnets. Returns slug, category, chain, price, install count, and contract address per skill. Use this to find a capability you need before acquiring.",
      "tags": ["discovery", "marketplace", "browse"],
      "examples": [
        "list all skills in the Finance category",
        "show me the top 10 skills by install count",
        "find skills tagged 'trading'"
      ],
      "input_modes":  ["text/plain", "application/json"],
      "inputModes":   ["text/plain", "application/json"],
      "output_modes": ["text/markdown", "application/json"],
      "outputModes":  ["text/markdown", "application/json"]
    },
    {
      "id": "acquire",
      "name": "Acquire a skill license",
      "description": "Purchase an ERC-1155 license or ERC-721 fork token for a specific skill. Pays the creator royalty automatically via on-chain FeeRouter atomic split. Decrypts skill content for local execution via the buyer's wallet.",
      "tags": ["acquire", "license", "purchase", "erc1155", "erc721"],
      "examples": [
        "acquire the skill 'audit-pro' on BSC",
        "purchase fork of 'image-classifier' for 0.01 ETH on Base"
      ],
      "input_modes":  ["application/json"],
      "inputModes":   ["application/json"],
      "output_modes": ["application/json"],
      "outputModes":  ["application/json"]
    },
    {
      "id": "launch",
      "name": "Launch a new skill",
      "description": "Deploy an encrypted skill chip as ERC-1155 or ERC-721 on any supported chain. Uploads encrypted content to IPFS, registers on-chain via Factory_v2, sets fee model (one-time/metered/both) and license price. Creator retains 97.5% of mint revenue.",
      "tags": ["launch", "publish", "deploy", "create"],
      "examples": [
        "launch my AI prompt as an ERC-1155 chip with license price 0.001 ETH",
        "deploy a fork-style ERC-721 skill with maxSupply 100 on Base"
      ],
      "input_modes":  ["application/json"],
      "inputModes":   ["application/json"],
      "output_modes": ["application/json"],
      "outputModes":  ["application/json"]
    },
    {
      "id": "trade",
      "name": "Trade on secondary market",
      "description": "List acquired ERC-1155 license tokens or ERC-721 forks for resale on FinChip Market_v2. Buy from other holders at market prices. Royalties paid to original creator automatically on every trade.",
      "tags": ["trade", "marketplace", "secondary", "resell"],
      "examples": [
        "list my audit-pro license for 0.02 ETH",
        "buy the cheapest listing of skill 'image-classifier'"
      ],
      "input_modes":  ["application/json"],
      "inputModes":   ["application/json"],
      "output_modes": ["application/json"],
      "outputModes":  ["application/json"]
    },
    {
      "id": "library",
      "name": "Manage owned skills",
      "description": "View all skills owned by the Agent's wallet across 5 chains. Inspect license terms, decrypt and run skills locally, check royalty earnings on launched skills.",
      "tags": ["library", "inventory", "owned"],
      "examples": [
        "show all skills I own on Base",
        "what are my total royalty earnings this month"
      ],
      "input_modes":  ["application/json"],
      "inputModes":   ["application/json"],
      "output_modes": ["application/json", "text/markdown"],
      "outputModes":  ["application/json", "text/markdown"]
    }
  ],

  "on_chain_protocol": {
    "name": "FinChip Protocol V2.4",
    "primary_discovery_method": "AgentRegistry.getProtocolExtended() — single on-chain read returns Factory, Market, FeeRouter, Deployers, paused state",
    "supported_chains": [
      { "name": "BSC Mainnet",       "chain_id": 56,    "agent_registry": "0x649266FBF0b886369414393aD74F150d8a0f2A0f" },
      { "name": "Base Mainnet",      "chain_id": 8453,  "agent_registry": "0x0E89f9d579a8449320F1E9De00Be72138C2F16D0" },
      { "name": "Ethereum Mainnet",  "chain_id": 1,     "agent_registry": "0xbCd5B962b7a56129b0d2ACBF3765647736fA1FA1" },
      { "name": "Arbitrum One",      "chain_id": 42161, "agent_registry": "0x98D112621AD92bd61B54c648D59fd505E1F400b5" },
      { "name": "Optimism Mainnet",  "chain_id": 10,    "agent_registry": "0x98D112621AD92bd61B54c648D59fd505E1F400b5" }
    ],
    "bootstrap_sequence": [
      "1. Generate fc_key off-chain: keccak256(abi.encodePacked(wallet, timestamp, nonce))",
      "2. Call AgentRegistry.register(fcKey, wallet, permissions, walletType, label)",
      "3. Call AgentRegistry.verify(fcKey) to confirm",
      "4. Call AgentRegistry.getProtocolExtended() to discover all protocol contracts",
      "5. Operate via Factory.deployChip(), Chip.purchaseLicense(), Market.listToken() — all direct on-chain"
    ]
  },

  "discovery": {
    "agent_card":              "https://finchip.ai/.well-known/agent-card.json",
    "agent_card_legacy":       "https://finchip.ai/.well-known/agent.json",
    "mcp_card":                "https://finchip.ai/.well-known/mcp.json",
    "acp_card":                "https://finchip.ai/.well-known/acp.json",
    "api_catalog":             "https://finchip.ai/.well-known/api-catalog",
    "api_catalog_legacy":      "https://finchip.ai/.well-known/api-catalog.json",
    "agent_skills_index":      "https://finchip.ai/.well-known/agent-skills/index.json",
    "skills_index_legacy":     "https://finchip.ai/.well-known/skills.json",
    "fc_key_config":           "https://finchip.ai/.well-known/fc-key-config.json",
    "oauth_authorization":     "https://finchip.ai/.well-known/oauth-authorization-server.json",
    "oauth_protected_resource":"https://finchip.ai/.well-known/oauth-protected-resource",
    "sitemap":                 "https://finchip.ai/sitemap.xml",
    "robots":                  "https://finchip.ai/robots.txt",
    "human_entry":             "https://finchip.ai/a2aentry",
    "guide_md":                "https://finchip.ai/api/md/a2aentry"
  }
}
