{
 "openapi": "3.1.0",
 "info": {
  "title": "tashan",
  "summary": "Measurements of the tools and skills you can give an AI agent.",
  "description": "Ask anything about a capability and the answer is free: 12,818 MCP servers, agent skills and plugins, scored on upkeep, freshness and real adoption, and audited against OSV at the version you would install today.\n\n**Asking is free. Assembling is paid.** Every score and every risk finding is free with no key and no quota. The two endpoints that do work for you — pinning a kit to versions the scan cleared, and returning the history behind a row — answer HTTP 402 with their terms in the body, payable per call over x402 on Base.\n\n**Not a security audit.** We read public evidence. We do not run the server, read its source, or test it for prompt injection. A clean result means nothing *known* is wrong, and a capability we have never measured is reported as unmeasured — never as safe.\n\n**Nobody can buy a rank.** Enforced by a test that reads the scorer's source: https://tashan.sh/methodology.html",
  "version": "0.1.0",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  },
  "contact": {
   "name": "tashan",
   "url": "https://tashan.sh",
   "email": "hello@tashan.sh"
  }
 },
 "servers": [
  {
   "url": "https://tashan.sh"
  }
 ],
 "paths": {
  "/v0.1/lookup": {
   "get": {
    "operationId": "lookupCapability",
    "summary": "Everything we hold about one capability, by name",
    "description": "The cheapest complete answer: score, health, documentation grade, and every security finding — which advisory, its severity, the version that fixes it, and the exact command the package runs at install time. Free.\n\nA name we have never seen returns `measured: false`. That means unmeasured, not unsafe — do not present absence as a warning.",
    "parameters": [
     {
      "name": "name",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string"
      },
      "example": "tavily-mcp",
      "description": "npm package, capability name or slug"
     }
    ],
    "responses": {
     "200": {
      "description": "The measurement, or measured:false",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "id": {
           "type": "string",
           "example": "pkg:tavily-mcp"
          },
          "name": {
           "type": "string"
          },
          "generated_at": {
           "type": [
            "string",
            "null"
           ],
           "format": "date-time"
          },
          "measured": {
           "type": "boolean"
          },
          "url": {
           "type": [
            "string",
            "null"
           ],
           "format": "uri"
          },
          "markdown": {
           "type": [
            "string",
            "null"
           ],
           "format": "uri"
          },
          "tashan_score": {
           "type": [
            "integer",
            "null"
           ],
           "minimum": 0,
           "maximum": 100,
           "description": "Absent when unmeasured. Never 0 to mean unknown."
          },
          "vitality": {
           "type": [
            "string",
            "null"
           ],
           "enum": [
            "active",
            "stable",
            "abandoned",
            null
           ]
          },
          "expertise": {
           "type": [
            "string",
            "null"
           ],
           "enum": [
            "deep",
            "solid",
            "thin",
            null
           ]
          },
          "evidence": {
           "type": "string",
           "example": "32,517 npm downloads/week"
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/v0.1/search": {
   "get": {
    "operationId": "searchCapabilities",
    "summary": "Ranked search across the measured corpus",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string"
      },
      "example": "postgres"
     },
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 50,
       "default": 10
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Ranked matches",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "results": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "id": {
              "type": "string",
              "example": "pkg:tavily-mcp"
             },
             "name": {
              "type": "string"
             },
             "generated_at": {
              "type": [
               "string",
               "null"
              ],
              "format": "date-time"
             },
             "measured": {
              "type": "boolean"
             },
             "url": {
              "type": [
               "string",
               "null"
              ],
              "format": "uri"
             },
             "markdown": {
              "type": [
               "string",
               "null"
              ],
              "format": "uri"
             },
             "tashan_score": {
              "type": [
               "integer",
               "null"
              ],
              "minimum": 0,
              "maximum": 100,
              "description": "Absent when unmeasured. Never 0 to mean unknown."
             },
             "vitality": {
              "type": [
               "string",
               "null"
              ],
              "enum": [
               "active",
               "stable",
               "abandoned",
               null
              ]
             },
             "expertise": {
              "type": [
               "string",
               "null"
              ],
              "enum": [
               "deep",
               "solid",
               "thin",
               null
              ]
             },
             "evidence": {
              "type": "string",
              "example": "32,517 npm downloads/week"
             }
            }
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/v0.1/scores": {
   "get": {
    "operationId": "allScores",
    "summary": "Every score in one file",
    "description": "A flat map of name to [score, vitality, evidence]. Fetch once and decide locally instead of asking per package.",
    "responses": {
     "200": {
      "description": "name -> [score, vitality, evidence]",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     }
    }
   }
  },
  "/v0.1/servers": {
   "get": {
    "operationId": "subregistry",
    "summary": "The MCP registry shape, with a measurement attached",
    "description": "Byte-compatible with registry.modelcontextprotocol.io. Each entry keeps its shape and gains one namespaced block, `sh.tashan/measurement`, so nothing you already parse changes. Unscored servers are absent rather than zero.",
    "responses": {
     "200": {
      "description": "Registry-shaped records",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     }
    }
   }
  },
  "/v0.1/kit": {
   "post": {
    "operationId": "kitForTask",
    "summary": "Name a job, get something that runs",
    "description": "The free shortlist reports exclusions and counts.verified_installs. When possible it reserves one place for a runnable package with an advisory-free scan of its current version within seven days. With kit=true, $0.05 buys verified version pins and a host configuration. If no package qualifies, the paid request returns 422 without quoting a charge.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "anyOf": [
         {
          "required": [
           "task"
          ]
         },
         {
          "required": [
           "goal"
          ]
         }
        ],
        "properties": {
         "goal": {
          "type": "string",
          "minLength": 1,
          "example": "I need to scrape websites"
         },
         "task": {
          "type": "string",
          "example": "web-scraping"
         },
         "client": {
          "type": "string",
          "enum": [
           "claude-code",
           "claude-desktop",
           "cursor",
           "vscode",
           "windsurf"
          ]
         },
         "limit": {
          "type": "integer",
          "default": 5,
          "minimum": 1,
          "maximum": 8
         },
         "kit": {
          "type": "boolean",
          "default": false,
          "description": "Assemble it. Paid: $0.05 per call."
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "The shortlist, or the assembled kit when paid"
     },
     "422": {
      "description": "The shortlist has no current, verified npm pins. No payment is requested."
     },
     "402": {
      "description": "Payment required ($0.05). The body carries the price, a checkout link, and the free endpoints that answer the same question."
     }
    }
   }
  },
  "/data/demand.json": {
   "get": {
    "operationId": "paidDemand",
    "summary": "Base USDC payment observations",
    "description": "Coinbase Bazaar, PayAI and MPP directory coverage, plus indexed receipts at sampled Base receiver addresses. `directory` gives the directory harvest date, eligible resources and reported 30-day activity. `measured_at`, `cohort_date` and `indexed_block` distinguish the chain query time, its sample and the latest indexed block. A shared receiver is excluded from catalog attribution. An address balance or payment count does not establish sales by an individual service. Payment is not an input to any score.",
    "responses": {
     "200": {
      "description": "The market, and the rows behind it",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "providers": {
           "type": "object",
           "description": "Per-source resource or service counts, exact x402 URL overlap and MPP payment methods. Directory units are not additive."
          },
          "directory": {
           "type": "object",
           "description": "Coinbase Bazaar resource counts, coverage and harvest date"
          },
          "measured_at": {
           "type": [
            "string",
            "null"
           ]
          },
          "cohort_date": {
           "type": "string"
          },
          "indexed_block": {
           "type": [
            "object",
            "null"
           ],
           "description": "Fixed Base block number and UTC timestamp"
          },
          "economy": {
           "type": [
            "object",
            "null"
           ],
           "properties": {
            "paid_usd": {
             "type": "number"
            },
            "calls": {
             "type": "integer"
            },
            "receivers_paid": {
             "type": "integer"
            },
            "receivers_never_paid": {
             "type": "integer"
            },
            "median_usd": {
             "type": "number"
            },
            "top1_share": {
             "type": "number"
            }
           }
          },
          "records": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "address": {
              "type": "string"
             },
             "hosts": {
              "type": "array",
              "items": {
               "type": "string"
              }
             },
             "capabilities": {
              "type": "array",
              "items": {
               "type": "string"
              }
             },
             "shared": {
              "type": "boolean",
              "description": "True when several services publish this address. Never attributed to one project."
             },
             "paid_usd": {
              "type": "number"
             },
             "calls": {
              "type": "integer"
             }
            }
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/v0.1/audit": {
   "post": {
    "operationId": "auditConfig",
    "summary": "Hand over a config, get back what is rotting",
    "description": "Free: every risk we hold about every capability you name — advisories at the version you would install today, deprecation, archived repos, one maintainer left.\n\n$0.01 with `history: true`: the score series behind each row and its direction of travel. Direction is the one thing a static index cannot tell you.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "anyOf": [
         {
          "required": [
           "servers"
          ]
         },
         {
          "required": [
           "history",
           "count"
          ],
          "properties": {
           "history": {
            "const": true
           }
          },
          "not": {
           "required": [
            "servers"
           ]
          }
         }
        ],
        "properties": {
         "count": {
          "type": "integer",
          "minimum": 1,
          "description": "Quote history without transmitting package names."
         },
         "servers": {
          "type": "array",
          "minItems": 1,
          "description": "The first 200 names are audited.",
          "items": {
           "type": "string"
          },
          "example": [
           "tavily-mcp",
           "firecrawl-mcp"
          ]
         },
         "history": {
          "type": "boolean",
          "default": false,
          "description": "Add the series. Paid: $0.01 per call."
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Findings per named capability"
     },
     "402": {
      "description": "Payment required ($0.01), terms in the body."
     }
    }
   }
  }
 },
 "externalDocs": {
  "description": "How every number is derived",
  "url": "https://tashan.sh/methodology.html"
 }
}