{
  "protocol_name": "MarketNow Agent Protocol (MAP)",
  "version": "1.1.0",
  "description": "A lightweight protocol for AI agents to discover, evaluate, purchase, and install MCP skills. Built on top of MCP, A2A, and JSON-RPC.",
  "homepage": "https://marketnow.site/for-agents",
  "changelog": "1.1.0 (2026-09-25): valid JSON (the 1.0.0 file had invalid numeric literals), stats/taxonomy updated to current, commerce endpoints marked planned (gate C1).",
  "discovery": {
    "how_agents_find_us": [
      "npm: package 'marketnow-mcp' (npx -y marketnow-mcp)",
      "A2A: GET /.well-known/agent.json — Agent Card with capabilities",
      "MCP: GET /.well-known/mcp.json — MCP server discovery",
      "llms.txt: GET /llms.txt — LLM-readable summary",
      "Manifest: GET /api/manifest or /api/manifest.json — all endpoints in one call",
      "Quick ref: GET /for-agents-quick.txt — plain text",
      "GitHub: alicelabs-llc/universal-trust-adapter — topics 'mcp-marketplace', 'agent-commerce', 'sentinel'"
    ],
    "well_known_endpoints": {
      "agent.json": "/.well-known/agent.json",
      "mcp.json": "/.well-known/mcp.json",
      "ai-plugin.json": "/.well-known/ai-plugin.json",
      "mcp-marketplace.json": "/.well-known/mcp-marketplace.json"
    }
  },
  "connection_methods": {
    "stdio": {
      "command": "npx -y marketnow-mcp",
      "description": "Standard MCP stdio transport. Works with Claude Desktop, Cursor, Cline. The npm package ships 15 tools."
    },
    "http_sse": {
      "url": "https://marketnow.site/api/mcp",
      "transport": "SSE + JSON-RPC 2.0",
      "remote_tools": 9,
      "note": "The hosted endpoint exposes 9 remote tools; the npm package ships 15 (superset incl. local-only tools). See agent.json tools_note."
    },
    "rest_api": {
      "base_url": "https://marketnow.site/api",
      "openapi": "https://marketnow.site/api/openapi.yaml",
      "openapi_json": "https://marketnow.site/api/openapi.json"
    }
  },
  "agent_workflow": {
    "step_1_discover": "GET /api/manifest — learn all endpoints",
    "step_2_search": "GET /api/search?q=github (rewrite of the paginated /api/skills API) or POST /api/mcp {method: 'tools/call', name: 'marketnow_search_skills', args: {query: 'github'}}",
    "step_3_evaluate": "GET /api/trust-score?skillId=<slug> — get trust score + recommendation (scale 0-10)",
    "step_4_verify": "GET /api/audit-skill?certificate=1&skillId=<slug> — get signed SHA-256 certificate",
    "step_5_install": "Run the install command from the skill detail page /s/<slug>",
    "step_6_pay": "PLANNED (gate C1) — POST /api/agent-purchase will support USDC on Base and Stripe; today it responds with the commerce status JSON",
    "step_7_report": "GET /api/health — verify the service is live"
  },
  "trust_model": {
    "taxonomy": "Sentinel v3.0 — 12-stage pipeline, 10 layers (L1 index certification, L2 deep-scan with 29 rules on top npm tarballs). See /security/sentinel-v3.0",
    "levels": {
      "safe_to_install": "trust_score >= 8 — agent can install without human approval",
      "install_with_caution": "trust_score 5-7 — agent should warn human before installing",
      "high_risk_review_before_install": "trust_score 2-4 — agent should NOT install without explicit human approval",
      "do_not_install": "trust_score 0-1 — agent should refuse to install"
    },
    "certificate_fields": [
      "certificate_id",
      "skill_id",
      "overall_score",
      "max_score",
      "risk_level",
      "signature",
      "signature_algorithm",
      "layers_run",
      "expires_at",
      "verification_url"
    ]
  },
  "agent_registration": {
    "description": "Agents can register themselves to build reputation and get personalized recommendations",
    "endpoint": "PLANNED — POST /api/agent-register (GitHub issue based for now)",
    "github_issue": "https://github.com/alicelabs-llc/universal-trust-adapter/issues/new?title=Agent+Registration&body=Agent+name,+capabilities,+contact",
    "fields": {
      "agent_name": "string — name of the agent",
      "agent_type": "coding | research | data | finance | communication | security",
      "capabilities": "array — what the agent can do",
      "contact": "string — how to reach the agent owner"
    }
  },
  "agent_communication": {
    "protocol": "JSON-RPC 2.0 over HTTP",
    "encoding": "UTF-8",
    "content_type": "application/json",
    "cors": "Access-Control-Allow-Origin: *",
    "rate_limit": "100 requests/minute for reads, 10/minute for writes"
  },
  "failure_handling": {
    "taxonomy": "GET /failure-taxonomy.json — 15 structured failure codes",
    "decision_tree": "agents use failure codes to self-diagnose and recover",
    "codes": [
      "NET_001",
      "NET_002",
      "AUTH_001",
      "PAY_001",
      "PAY_002",
      "INST_001",
      "INST_002",
      "TRUST_001",
      "TRUST_002",
      "SBOX_001",
      "CERT_001",
      "CERT_002",
      "DEP_001",
      "CRASH_001",
      "RATE_001"
    ]
  },
  "payment": {
    "status": "planned — gate C1 of the agent-commerce plan; addresses below are the target plumbing",
    "methods": [
      "stripe",
      "usdc_base"
    ],
    "usdc_contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "wallet": "0x39Dddf5aEdb58A559CF195fB8bdF23F0604Bf5Ee",
    "network": "Base L2 (chainId 8453)",
    "dispute_window": "7 days",
    "human_in_loop": "AP2 mandates default to 'notify' mode — agents must opt into 'silent' mode",
    "mandates_policy": "GET /api/mandates-info.json — ACP/AP2 policy document",
    "commerce_status_endpoint": "GET/POST /api/agent-purchase (and sibling commerce paths) return the current status JSON until the ledger is live"
  },
  "stats": {
    "index_certified": 68388,
    "total_tracked_all_sources": 132737,
    "security_checks_performed": 766211,
    "security_checks_breakdown": {
      "l1_index_checks": 683880,
      "l2_sentinel_rule_checks": 82331,
      "total": 766211
    },
    "l2_deep_scan": {
      "tarballs": 2839,
      "rules": 29,
      "completion_pct": 99
    },
    "sentinel_version": "v3.0 (12 stages / 10 layers)",
    "mcp_registry_listed": true,
    "npm_package": "marketnow-mcp@1.15.0",
    "stats_source_of_truth": "GET /api/stats.json",
    "generated_at": "2026-09-25"
  }
}
