{
  "openapi": "3.1.0",
  "info": {
    "title": "SuiWire read-only data access",
    "version": "1.2.0",
    "summary": "Evidence-linked, read-only records of the Sui ecosystem.",
    "description": "SuiWire's index is a curated, verified-so-far record of the Sui ecosystem, not a complete census of Sui.\n\nEvery record keeps its evidence link, timestamps and verification tier. Only \"independently-verified\" means SuiWire checked Sui chain data itself.\n\nAttribution: cite as \"Source: SuiWire\" with a link to https://suiwire.com.\n\nLicense: Free to read and use with attribution. Contact us for commercial or bulk use. Contact: https://suiwire.com/contact\n\nDeprecated: the camelCase keys in get_network_status source_notes items (protocolVersion, sourceUrl, sourceLabel, checkedAt) are kept as aliases of the snake_case keys (protocol_version, source_url, source_label, checked_at) and are removed on or after 2027-01-01. Each get_network_status result lists this under \"deprecations\".\n\nRate limits: An abuse limit is configured at the Cloudflare edge for /api/mcp, the JSON feeds (/intelligence/agents.json and /intelligence/changes.json), /openapi.json and /llms.txt: about 10 requests per 10 seconds per IP, counted per Cloudflare data center. No quota is promised. Please keep requests modest, send If-None-Match or If-Modified-Since to get a 304 from the feeds, and contact us before heavy or bulk use.\n\nEvery tools/call result has structuredContent (the full object, coverage_note first) and content[0].text. Clients that send MCP-Protocol-Version 2025-06-18 or 2025-11-25 get a short digest in text, one line per record, so the data is not sent twice. Clients that send no version, or 2025-03-26, get the full JSON in text as well.",
    "contact": {
      "name": "SuiWire",
      "url": "https://suiwire.com"
    },
    "x-attribution": {
      "text": "Source: SuiWire",
      "url": "https://suiwire.com"
    },
    "x-license": "Free to read and use with attribution. Contact us for commercial or bulk use.",
    "x-deprecations": [
      {
        "field": "source_notes[].protocolVersion, source_notes[].sourceUrl, source_notes[].sourceLabel, source_notes[].checkedAt",
        "replaced_by": "source_notes[].protocol_version, source_notes[].source_url, source_notes[].source_label, source_notes[].checked_at",
        "deprecated_since": "2026-12-02",
        "remove_on_or_after": "2027-01-01",
        "note": "The camelCase keys are deprecated aliases with the same values. Read the snake_case keys. The aliases are removed on or after 2027-01-01."
      }
    ],
    "x-schema-versions": [
      {
        "schema": "Change Ledger feed (changes.json, version)",
        "version": "2",
        "change": "coverage_note is required. Nothing removed or renamed."
      },
      {
        "schema": "Registry feed (agents.json, schema_version)",
        "version": "2",
        "change": "coverage_note is required; updated_at is derived. Nothing removed or renamed."
      },
      {
        "schema": "MCP server (serverInfo.version)",
        "version": "1.2.0",
        "change": "coverage_note in every result; snake_case source_notes with deprecated camelCase aliases; digest text for MCP 2025-06-18 and later."
      }
    ]
  },
  "servers": [
    {
      "url": "https://suiwire.com"
    }
  ],
  "externalDocs": {
    "description": "Developer guide",
    "url": "https://suiwire.com/developers"
  },
  "tags": [
    {
      "name": "mcp",
      "description": "Model Context Protocol endpoint (JSON-RPC 2.0 over HTTP POST)."
    },
    {
      "name": "feeds",
      "description": "Read-only JSON and RSS feeds."
    }
  ],
  "paths": {
    "/api/mcp": {
      "post": {
        "tags": [
          "mcp"
        ],
        "operationId": "mcp",
        "summary": "MCP Streamable HTTP endpoint (stateless)",
        "description": "One JSON-RPC 2.0 message per POST. Methods: initialize, ping, tools/list, tools/call. tools/call names: search_changes, get_project_history, get_change_record, get_network_status, search_agent_infrastructure. See the developer guide for each tool's arguments. Notifications get 202. Batches are refused with 400.",
        "parameters": [
          {
            "name": "MCP-Protocol-Version",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "2025-11-25",
                "2025-06-18",
                "2025-03-26"
              ]
            },
            "description": "Decides the shape of content[0].text. See the API description."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JsonRpcRequest"
              },
              "examples": {
                "search_changes": {
                  "summary": "Which Sui contract upgrades has SuiWire independently verified lately?",
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "tools/call",
                    "params": {
                      "name": "search_changes",
                      "arguments": {
                        "category": "contract-upgrade",
                        "status": "independently-verified",
                        "limit": 5
                      }
                    }
                  }
                },
                "get_project_history": {
                  "summary": "What has changed for NAVI?",
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "tools/call",
                    "params": {
                      "name": "get_project_history",
                      "arguments": {
                        "project": "navi",
                        "limit": 10
                      }
                    }
                  }
                },
                "get_change_record": {
                  "summary": "Show one change record with its evidence and corrections.",
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "tools/call",
                    "params": {
                      "name": "get_change_record",
                      "arguments": {
                        "id": "SWL-CU-a8f6bcb1"
                      }
                    }
                  }
                },
                "get_network_status": {
                  "summary": "Is protocol version 145 live on Sui mainnet?",
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "tools/call",
                    "params": {
                      "name": "get_network_status",
                      "arguments": {
                        "network": "mainnet",
                        "protocol_version": 145
                      }
                    }
                  }
                },
                "search_agent_infrastructure": {
                  "summary": "What agent payment infrastructure does SuiWire list for Sui?",
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "tools/call",
                    "params": {
                      "name": "search_agent_infrastructure",
                      "arguments": {
                        "category": "agent-payments",
                        "limit": 5
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC response. Invalid tool arguments are a result with isError: true, not a protocol error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonRpcResponse"
                }
              }
            }
          },
          "202": {
            "description": "Notification accepted. No body."
          },
          "400": {
            "description": "Invalid request (batch, bad JSON-RPC, over-long id, unsupported MCP-Protocol-Version)."
          },
          "413": {
            "description": "Body over 16 KB."
          },
          "415": {
            "description": "Content-Type is not application/json (JSON-RPC code -32600)."
          },
          "429": {
            "description": "Abuse limit tripped. About 10 requests per 10 seconds per IP, counted per Cloudflare data center. No quota is promised.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/intelligence/changes.json": {
      "get": {
        "tags": [
          "feeds"
        ],
        "operationId": "getChangeLedger",
        "summary": "Ecosystem Change Ledger (JSON)",
        "parameters": [
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "An ETag from an earlier response. A match answers 304 with no body."
          },
          {
            "name": "If-Modified-Since",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Used only when If-None-Match is absent."
          }
        ],
        "responses": {
          "200": {
            "description": "The feed.",
            "headers": {
              "ETag": {
                "description": "Weak validator of the content (the build clock is ignored). Send it back as If-None-Match.",
                "schema": {
                  "type": "string"
                }
              },
              "Last-Modified": {
                "description": "The data's own updated_at (or the RSS lastBuildDate).",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "https://suiwire.com/intelligence/changes.schema.json"
                }
              }
            }
          },
          "304": {
            "description": "Not modified. No body."
          },
          "429": {
            "description": "Abuse limit tripped. About 10 requests per 10 seconds per IP, counted per Cloudflare data center. No quota is promised.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/intelligence/changes.xml": {
      "get": {
        "tags": [
          "feeds"
        ],
        "operationId": "getChangeLedgerRss",
        "summary": "Ecosystem Change Ledger (RSS)",
        "parameters": [
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "An ETag from an earlier response. A match answers 304 with no body."
          },
          {
            "name": "If-Modified-Since",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Used only when If-None-Match is absent."
          }
        ],
        "responses": {
          "200": {
            "description": "The feed.",
            "headers": {
              "ETag": {
                "description": "Weak validator of the content (the build clock is ignored). Send it back as If-None-Match.",
                "schema": {
                  "type": "string"
                }
              },
              "Last-Modified": {
                "description": "The data's own updated_at (or the RSS lastBuildDate).",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/rss+xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Not modified. No body."
          },
          "429": {
            "description": "Abuse limit tripped. About 10 requests per 10 seconds per IP, counted per Cloudflare data center. No quota is promised.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/intelligence/changes.schema.json": {
      "get": {
        "tags": [
          "feeds"
        ],
        "operationId": "getChangeLedgerSchema",
        "summary": "JSON Schema of the Change Ledger feed",
        "responses": {
          "200": {
            "description": "The feed.",
            "headers": {
              "ETag": {
                "description": "Weak validator of the content (the build clock is ignored). Send it back as If-None-Match.",
                "schema": {
                  "type": "string"
                }
              },
              "Last-Modified": {
                "description": "The data's own updated_at (or the RSS lastBuildDate).",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/schema+json": {
                "schema": {
                  "type": "object"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "304": {
            "description": "Not modified. No body."
          },
          "429": {
            "description": "Abuse limit tripped. About 10 requests per 10 seconds per IP, counted per Cloudflare data center. No quota is promised.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/intelligence/agents.json": {
      "get": {
        "tags": [
          "feeds"
        ],
        "operationId": "getAgentRegistry",
        "summary": "Sui Agent Infrastructure Registry (JSON)",
        "parameters": [
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "An ETag from an earlier response. A match answers 304 with no body."
          },
          {
            "name": "If-Modified-Since",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Used only when If-None-Match is absent."
          }
        ],
        "responses": {
          "200": {
            "description": "The feed.",
            "headers": {
              "ETag": {
                "description": "Weak validator of the content (the build clock is ignored). Send it back as If-None-Match.",
                "schema": {
                  "type": "string"
                }
              },
              "Last-Modified": {
                "description": "The data's own updated_at (or the RSS lastBuildDate).",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "https://suiwire.com/intelligence/agents.schema.json"
                }
              }
            }
          },
          "304": {
            "description": "Not modified. No body."
          },
          "429": {
            "description": "Abuse limit tripped. About 10 requests per 10 seconds per IP, counted per Cloudflare data center. No quota is promised.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/intelligence/agents.schema.json": {
      "get": {
        "tags": [
          "feeds"
        ],
        "operationId": "getAgentRegistrySchema",
        "summary": "JSON Schema of the registry feed",
        "responses": {
          "200": {
            "description": "The feed.",
            "headers": {
              "ETag": {
                "description": "Weak validator of the content (the build clock is ignored). Send it back as If-None-Match.",
                "schema": {
                  "type": "string"
                }
              },
              "Last-Modified": {
                "description": "The data's own updated_at (or the RSS lastBuildDate).",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/schema+json": {
                "schema": {
                  "type": "object"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "304": {
            "description": "Not modified. No body."
          },
          "429": {
            "description": "Abuse limit tripped. About 10 requests per 10 seconds per IP, counted per Cloudflare data center. No quota is promised.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "JsonRpcRequest": {
        "type": "object",
        "required": [
          "jsonrpc",
          "method"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "oneOf": [
              {
                "type": "string",
                "maxLength": 128
              },
              {
                "type": "number"
              }
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "initialize",
              "ping",
              "tools/list",
              "tools/call",
              "notifications/initialized"
            ]
          },
          "params": {
            "type": "object"
          }
        }
      },
      "JsonRpcResponse": {
        "type": "object",
        "required": [
          "jsonrpc",
          "id"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "result": {
            "$ref": "#/components/schemas/ToolResultOrInitialize"
          },
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "integer"
              },
              "message": {
                "type": "string"
              }
            }
          }
        }
      },
      "ToolResultOrInitialize": {
        "type": "object",
        "description": "For tools/call: content, structuredContent (always has coverage_note) and isError. For initialize: protocolVersion, capabilities, serverInfo and instructions (which include the coverage note).",
        "properties": {
          "content": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "const": "text"
                },
                "text": {
                  "type": "string"
                }
              }
            }
          },
          "structuredContent": {
            "type": "object",
            "required": [
              "coverage_note"
            ],
            "properties": {
              "coverage_note": {
                "type": "string",
                "const": "SuiWire's index is a curated, verified-so-far record of the Sui ecosystem, not a complete census of Sui."
              }
            }
          },
          "isError": {
            "type": "boolean"
          },
          "instructions": {
            "type": "string"
          }
        }
      },
      "Tools": {
        "description": "The tools/call names and their arguments, for reference. The authoritative list is tools/list.",
        "type": "object",
        "properties": {
          "search_changes": {
            "type": "object",
            "description": "Search SuiWire's Ecosystem Change Ledger: evidence-linked changes across the Sui ecosystem (contract upgrades, integrations, status changes, Index record changes, and network records: Sui protocol versions per network and Sui, Walrus and Seal releases). Filter by project, category, verification status, network and date range. Each record carries its evidence link, change time (null when unknown), first-recorded time, and verification status. Only status \"independently-verified\" means SuiWire checked Sui mainnet data itself.",
            "properties": {
              "project": {
                "description": "Verified Projects Index slug (as in suiwire.com/projects/<slug>, e.g. \"cetus\") or the project's exact name. Matches records where the project is the subject, the counterparty or a related project.",
                "x-required": false
              },
              "category": {
                "description": "",
                "enum": [
                  "status",
                  "integration",
                  "contract-upgrade",
                  "index-record",
                  "network"
                ],
                "x-required": false
              },
              "network": {
                "description": "Network records only: the Sui network a record is about (mainnet or testnet).",
                "enum": [
                  "mainnet",
                  "testnet"
                ],
                "x-required": false
              },
              "status": {
                "description": "Verification status. \"not-independently-verified\" returns source-reported, announced and corrected records.",
                "enum": [
                  "announced",
                  "independently-verified",
                  "source-reported",
                  "corrected",
                  "not-independently-verified"
                ],
                "x-required": false
              },
              "from": {
                "description": "Start of the date range, YYYY-MM-DD (UTC) or ISO UTC time.",
                "x-required": false
              },
              "to": {
                "description": "End of the date range, YYYY-MM-DD (UTC, whole day included) or ISO UTC time.",
                "x-required": false
              },
              "date_field": {
                "description": "Which time from/to apply to. Default change_time, which leaves out records whose change date is unknown.",
                "enum": [
                  "change_time",
                  "first_recorded_at"
                ],
                "x-required": false
              },
              "text": {
                "description": "Case-insensitive text match on project names, before/after states, evidence label and record id.",
                "x-required": false
              },
              "limit": {
                "description": "",
                "x-required": false
              },
              "cursor": {
                "description": "next_cursor from a previous call (opaque).",
                "x-required": false
              }
            }
          },
          "get_project_history": {
            "type": "object",
            "description": "A Sui project's history from SuiWire's records, newest first: Change Ledger records (integrations, status and Index record changes), contract package versions from the Sui mainnet snapshot, and published SuiWire stories about it. The same rows as the Project history on the project's SuiWire profile.",
            "properties": {
              "project": {
                "description": "Verified Projects Index slug (as in suiwire.com/projects/<slug>, e.g. \"cetus\") or the project's exact name.",
                "x-required": true
              },
              "limit": {
                "description": "",
                "x-required": false
              }
            }
          },
          "get_change_record": {
            "type": "object",
            "description": "One Change Ledger record by id (e.g. SWL-CU-a8f6bcb1), with its before/after states, dates, classification, evidence link and full correction history (original values are kept). A correction id (SWL-C-…) returns the record it corrects.",
            "properties": {
              "id": {
                "description": "",
                "x-required": true
              }
            }
          },
          "get_network_status": {
            "type": "object",
            "description": "Which Sui protocol version each network runs, from each network's own chain data, and whether a given protocol version is live there (e.g. \"Is protocol 145 live on mainnet?\": network \"mainnet\", protocol_version 145). Returns a yes/no answer with the reading time, the epoch evidence, the independently verified Change Ledger record of the move that turned the version on when SuiWire has one, and the protocol version history. Without network it answers for mainnet and testnet.",
            "properties": {
              "network": {
                "description": "Sui network. Default: mainnet and testnet. Devnet resets and has no ledger records.",
                "enum": [
                  "mainnet",
                  "testnet",
                  "devnet"
                ],
                "x-required": false
              },
              "protocol_version": {
                "description": "Protocol version to check, e.g. 145.",
                "x-required": false
              }
            }
          },
          "search_agent_infrastructure": {
            "type": "object",
            "description": "Search SuiWire's Sui Agent Infrastructure Registry: evidence-linked records of infrastructure AI agents can use on Sui (identity, payments, execution, data access, storage and memory, verifiable computation, and developer tooling). The same entries as https://suiwire.com/intelligence/agents.json. Filter by category, verification, maturity, project (slug, SWA- id, or exact name), and text. Each entry carries its evidence links, verification label, maturity, and last_verified_at (UTC). Each capability has change_date (YYYY-MM-DD or null). Null means no cited source dates that capability's own change. It is not last_verified_at, not a source's publication date, and it is not on the entry. Only \"independently-verified\" means SuiWire checked Sui chain data itself. \"announced\" is not operational. capabilities[0] is the primary capability; later capabilities can differ and must not be promoted onto the entry. Inclusion is not an endorsement or a security audit. limit 1–25 (default 10), cursor is an opaque next_cursor.",
            "properties": {
              "project": {
                "description": "Entry slug (e.g. \"walrus\"), stable id (SWA-xxxxxxxx), or the exact name.",
                "x-required": false
              },
              "category": {
                "description": "Matches the entry or any of its capabilities.",
                "enum": [
                  "agent-identity",
                  "agent-payments",
                  "agent-execution",
                  "data-access",
                  "storage-memory",
                  "verifiable-compute",
                  "agent-tooling"
                ],
                "x-required": false
              },
              "verification": {
                "description": "Independently verified, Source-reported, Announced, or Unverified. Matches the entry or any capability.",
                "enum": [
                  "independently-verified",
                  "source-reported",
                  "announced",
                  "unverified"
                ],
                "x-required": false
              },
              "maturity": {
                "description": "mainnet-live, testnet, offchain (available off-chain), announced, or unknown. Matches the entry or any capability.",
                "enum": [
                  "mainnet-live",
                  "testnet",
                  "offchain",
                  "announced",
                  "unknown"
                ],
                "x-required": false
              },
              "text": {
                "description": "Case-insensitive match on name, organization, summary, capability text, slug, and ids.",
                "x-required": false
              },
              "limit": {
                "description": "",
                "x-required": false
              },
              "cursor": {
                "description": "next_cursor from a previous call (opaque).",
                "x-required": false
              }
            }
          }
        }
      }
    }
  }
}
