{
  "serverInfo": {
    "name": "io.github.pixelvault-dev/pixelvault",
    "title": "PixelVault",
    "version": "0.3.0",
    "description": "Image infrastructure for agents. Upload, transform, and deliver images through MCP, CLI, or API.",
    "websiteUrl": "https://pixelvault.dev"
  },
  "protocolVersion": "2025-06-18",
  "transport": {
    "type": "streamable-http",
    "endpoint": "https://mcp.pixelvault.dev/mcp"
  },
  "alternativeTransports": [
    {
      "type": "streamable-http",
      "endpoint": "https://mcp.pixelvault.dev/mcp/oauth",
      "authentication": {
        "type": "oauth2",
        "description": "OAuth 2.1 with PKCE (S256) and dynamic client registration — no API key to paste. Intended for OAuth clients such as ChatGPT apps.",
        "authorizationServerMetadata": "https://mcp.pixelvault.dev/.well-known/oauth-authorization-server",
        "protectedResourceMetadata": "https://mcp.pixelvault.dev/.well-known/oauth-protected-resource"
      }
    }
  ],
  "authentication": {
    "type": "http",
    "scheme": "bearer",
    "description": "PixelVault API key (format: pv_live_...) sent as a Bearer token in the Authorization header at this endpoint. Create one at https://pixelvault.dev. OAuth clients (e.g. ChatGPT apps) can instead connect to https://mcp.pixelvault.dev/mcp/oauth (OAuth 2.1, PKCE — no key to paste). Note: rescue_imgur needs no key; transform_image needs one only when given an image id.",
    "credentialUrl": "https://pixelvault.dev"
  },
  "capabilities": {
    "tools": {
      "listChanged": false
    }
  },
  "tools": [
    { "name": "upload_image", "description": "Upload an image (base64 data or a public source_url) and get an instant CDN URL. Optional expires_in for an auto-expiring image." },
    { "name": "upload_batch", "description": "Upload 1–50 images in one call, grouped into a collection (e.g. a CI run or a set of variants). Set visibility: private to get a signed URL per image. Maps to POST /v1/images/batch." },
    { "name": "transform_image", "description": "Build an on-the-fly transform URL (resize, crop, format, AI background removal, blur/rotate/flip, brightness/contrast/saturation, watermark) from an image url or id." },
    { "name": "list_images", "description": "List your project's images (paginated)." },
    { "name": "get_usage", "description": "Show your plan, monthly usage (storage, uploads) and remaining quota. Read-only. Maps to GET /v1/usage." },
    { "name": "upgrade_plan", "description": "Get a Stripe Checkout URL for the starter or pro plan. A person must open it and pay; the plan changes once Stripe confirms. Live key only; not on the OAuth endpoint. Maps to POST /v1/billing/checkout." },
    { "name": "manage_billing", "description": "Get a Stripe billing-portal URL to change plan, update payment details or cancel. Live key only; not on the OAuth endpoint; show only to the account owner. Maps to POST /v1/billing/portal." },
    { "name": "list_collections", "description": "List your project's collections (what upload_batch creates), optionally filtered by type and name. Read-only. Maps to GET /v1/collections." },
    { "name": "get_collection", "description": "Get one collection and its images by id. Read-only. Maps to GET /v1/collections/:id." },
    { "name": "close_collection", "description": "Close a collection. For ci_build collections this makes every image in it eligible for deletion by a background sweep (irreversible). Maps to POST /v1/collections/:id/close." },
    { "name": "get_image", "description": "Get metadata and CDN URL for one image." },
    { "name": "delete_image", "description": "Delete one image." },
    { "name": "sign_url", "description": "Mint a time-limited signed URL for a private image. Maps to POST /v1/images/:id/sign-url." },
    { "name": "rescue_imgur", "description": "Scan a page for hotlinked Imgur images and return a PixelVault rescue URL for each. No API key required." }
  ]
}
