{
  "openapi": "3.1.0",
  "info": {
    "title": "ToolMint MCP Skill Scanner",
    "version": "0.1.0",
    "description": "Static risk scanner for agent skills / MCP docs / npm package meta. Heuristic \u2014 not a sandbox. Pay per call with USDC on Base via x402.",
    "x-guidance": "POST /scan with JSON {text}. GET /scan/npm?spec=lodash or POST /scan/npm {spec}. Unpaid calls receive HTTP 402 (USDC on Base). Free: /, /health, /openapi.json, /.well-known/x402.",
    "contact": {
      "email": "toolmint.dev@gmail.com",
      "name": "ToolMint",
      "url": "https://toolmint.toolmint.workers.dev"
    },
    "x-homepage": "https://toolmint.toolmint.workers.dev"
  },
  "paths": {
    "/health": {
      "get": {
        "operationId": "health",
        "summary": "Liveness",
        "security": [],
        "responses": {
          "200": {
            "description": "ok"
          }
        }
      }
    },
    "/scan": {
      "post": {
        "operationId": "skill_scan_text",
        "summary": "Scan skill/text for risky static patterns",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ],
          "network": "eip155:8453",
          "payTo": "0xfbF7413bcB3a604936775C96FDbe0b0C9c9E37F5",
          "asset": "USDC",
          "scheme": "exact",
          "amountAtomic": "30000"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  }
                },
                "required": [
                  "text"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Scan findings JSON"
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/scan/npm": {
      "get": {
        "operationId": "skill_scan_npm_get",
        "summary": "Scan npm package meta+readme+scripts",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ],
          "network": "eip155:8453",
          "payTo": "0xfbF7413bcB3a604936775C96FDbe0b0C9c9E37F5",
          "asset": "USDC",
          "scheme": "exact",
          "amountAtomic": "30000"
        },
        "parameters": [
          {
            "name": "spec",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "name or name@version"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scan findings JSON"
          },
          "402": {
            "description": "Payment Required"
          }
        }
      },
      "post": {
        "operationId": "skill_scan_npm_post",
        "summary": "Scan npm package (JSON body)",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ],
          "network": "eip155:8453",
          "payTo": "0xfbF7413bcB3a604936775C96FDbe0b0C9c9E37F5",
          "asset": "USDC",
          "scheme": "exact",
          "amountAtomic": "30000"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "spec": {
                    "type": "string"
                  }
                },
                "required": [
                  "spec"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Scan findings JSON"
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    }
  }
}