{
  "openapi": "3.1.0",
  "info": {
    "title": "Agent Plugins Directory",
    "summary": "Read-only machine surfaces for the verified Agent Plugins index.",
    "description": "Public, unauthenticated endpoints. There is no account, OAuth, or API key. The only write-shaped route is POST /api/fetch-manifest, which fetches a GitHub raw manifest on behalf of the in-browser validator. Versioning is URL-based (/api/v1). Deprecation is signalled with Sunset and Deprecation headers plus this document; no v1 operation is deprecated today.",
    "version": "2026-10-06"
  },
  "servers": [
    {
      "url": "https://agentpluginsdirectory.com"
    }
  ],
  "paths": {
    "/census.json": {
      "get": {
        "operationId": "getCensus",
        "summary": "Verified plugin index as JSON",
        "responses": {
          "200": {
            "description": "Census object with summary, methodology, categories, and plugins.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/census.csv": {
      "get": {
        "operationId": "getCensusCsv",
        "summary": "Verified plugin index as CSV",
        "description": "Flat CC BY 4.0 distribution with one row per verified plugin.",
        "responses": {
          "200": {
            "description": "CSV generated from the same records as /census.json.",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getLlmsTxt",
        "summary": "Site briefing for agents",
        "responses": {
          "200": {
            "description": "Plain-text briefing.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "operationId": "getLlmsFullTxt",
        "summary": "Complete verified listing as plain text",
        "responses": {
          "200": {
            "description": "Brand definition, live counts, exclusion/dedupe notes, and every verified plugin grouped by category.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/registry-manifest.json": {
      "get": {
        "operationId": "getRegistryManifest",
        "summary": "Verified plugin index as JSON (same payload as /census.json)",
        "responses": {
          "200": {
            "description": "Census object with summary, methodology, categories, and plugins.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "operationId": "getOpenApi",
        "summary": "This OpenAPI document",
        "responses": {
          "200": {
            "description": "OpenAPI 3.1 document.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/api-catalog": {
      "get": {
        "operationId": "getApiCatalog",
        "summary": "RFC 9727 API catalog linkset",
        "responses": {
          "200": {
            "description": "Linkset pointing at the OpenAPI document and llms.txt.",
            "content": {
              "application/linkset+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "operationId": "mcpJsonRpc",
        "summary": "Read-only Streamable HTTP MCP (JSON-RPC 2.0)",
        "description": "initialize, tools/list, tools/call for directory_get_census_summary, directory_search_plugins, directory_get_plugin. No auth.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC result."
          },
          "202": {
            "description": "Notification acknowledged."
          },
          "400": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/server.json": {
      "get": {
        "operationId": "getMcpServerJson",
        "summary": "MCP registry metadata",
        "responses": {
          "200": {
            "description": "server.json",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/auth.md": {
      "get": {
        "operationId": "getAuthMd",
        "summary": "How authentication works (none)",
        "responses": {
          "200": {
            "description": "Markdown auth notes.",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/oauth-protected-resource": {
      "get": {
        "operationId": "getOauthProtectedResource",
        "summary": "RFC 9728 protected resource metadata",
        "responses": {
          "200": {
            "description": "Public resource; authorization_servers is empty.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/for-agents": {
      "get": {
        "operationId": "getDeveloperResources",
        "summary": "agentpluginsdirectory developer resources",
        "responses": {
          "200": {
            "description": "HTML or markdown via Accept."
          }
        }
      }
    },
    "/api/v1/plugins": {
      "get": {
        "operationId": "listPlugins",
        "summary": "Cursor-paginated verified plugin list",
        "description": "Read-only list. Pass next_cursor from a previous page as cursor.",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Slug cursor from next_cursor."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Page of plugins.",
            "headers": {
              "RateLimit": {
                "schema": {
                  "type": "string"
                },
                "description": "RFC 9239 RateLimit, e.g. \"default\";r=120;t=60"
              },
              "RateLimit-Policy": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginPage"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Problem"
          },
          "429": {
            "$ref": "#/components/responses/Problem"
          },
          "500": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/ask": {
      "post": {
        "operationId": "nlwebAsk",
        "summary": "NLWeb /ask over the verified index",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string"
                  },
                  "prefer": {
                    "type": "object",
                    "properties": {
                      "streaming": {
                        "type": "boolean"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON results with _meta.response_type and _meta.version, or SSE."
          }
        }
      }
    },
    "/api/fetch-manifest": {
      "post": {
        "operationId": "fetchManifest",
        "summary": "Fetch a plugin.json or mcp.json from GitHub (validator helper)",
        "description": "Host-allowlisted proxy for raw.githubusercontent.com and gist.githubusercontent.com. Rate-limited. Errors use RFC 9457 application/problem+json.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "description": "HTTPS raw GitHub or gist URL."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Raw file text.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "text"
                  ],
                  "properties": {
                    "text": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Problem"
          },
          "405": {
            "$ref": "#/components/responses/Problem"
          },
          "413": {
            "$ref": "#/components/responses/Problem"
          },
          "429": {
            "$ref": "#/components/responses/Problem"
          },
          "502": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    }
  },
  "components": {
    "responses": {
      "Problem": {
        "description": "RFC 9457 problem details.",
        "content": {
          "application/problem+json": {
            "schema": {
              "type": "object",
              "required": [
                "title",
                "status",
                "code",
                "message"
              ],
              "properties": {
                "type": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "status": {
                  "type": "integer"
                },
                "detail": {
                  "type": "string"
                },
                "instance": {
                  "type": "string"
                },
                "code": {
                  "type": "string",
                  "description": "Machine-readable error code."
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable error message."
                },
                "resolution": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "Problem": {
        "type": "object",
        "required": [
          "title",
          "status",
          "code",
          "message"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "resolution": {
            "type": "string"
          }
        }
      },
      "PluginPage": {
        "type": "object",
        "required": [
          "object",
          "limit",
          "has_more",
          "data"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "list"
          },
          "limit": {
            "type": "integer"
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "type": "string",
            "nullable": true,
            "description": "Pass as cursor on the next request."
          },
          "nextCursor": {
            "type": "string",
            "nullable": true,
            "description": "CamelCase alias of next_cursor."
          },
          "total": {
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "slug": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "repo": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}