{
  "openapi": "3.0.1",
  "info": {
    "title": "MCP Tool Contract, Agent Readiness & x402 Compliance Auditor",
    "description": "Audits MCP endpoints, OpenAPI specifications, and Apify Actors for tool contracts, agent readiness, x402 payment requirements, Store metadata, and security risks.",
    "version": "0.0",
    "x-build-id": "VZckHfUjqKYksC5Ma"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/piksen_digital~mcp-tool-contract/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-piksen_digital-mcp-tool-contract",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/piksen_digital~mcp-tool-contract/runs": {
      "post": {
        "operationId": "runs-sync-piksen_digital-mcp-tool-contract",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/piksen_digital~mcp-tool-contract/run-sync": {
      "post": {
        "operationId": "run-sync-piksen_digital-mcp-tool-contract",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "targets"
        ],
        "properties": {
          "targets": {
            "title": "Targets",
            "minItems": 1,
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Add one or more MCP endpoints, OpenAPI specifications, or Apify Actors.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "type": {
                  "type": "string",
                  "title": "Target type",
                  "enum": [
                    "mcp",
                    "openapi",
                    "apify-actor"
                  ],
                  "enumTitles": [
                    "Remote MCP endpoint",
                    "OpenAPI specification",
                    "Apify Actor"
                  ],
                  "default": "openapi",
                  "description": "The kind of target to audit: a remote MCP endpoint, an OpenAPI specification, or an Apify Actor."
                },
                "url": {
                  "type": "string",
                  "title": "URL",
                  "description": "Full HTTP or HTTPS URL for an MCP or OpenAPI target.",
                  "pattern": "^https?://[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}(/\\S*)?$",
                  "maxLength": 2048,
                  "errorMessage": {
                    "pattern": "URL must start with http:// or https:// and include a valid domain."
                  }
                },
                "actorId": {
                  "type": "string",
                  "title": "Actor ID",
                  "description": "An Actor ID or owner/name. Used for Apify Actor targets.",
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,99}/[A-Za-z0-9][A-Za-z0-9_.-]{0,99}$",
                  "maxLength": 201,
                  "errorMessage": {
                    "pattern": "Invalid Actor ID format! Must include both the username and name separated by a slash (e.g., apify/website-content-crawler)."
                  }
                },
                "name": {
                  "type": "string",
                  "title": "Display name",
                  "description": "Optional label used in generated reports.",
                  "minLength": 1,
                  "maxLength": 200,
                  "errorMessage": {
                    "minLength": "Display name cannot be empty if specified."
                  }
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "checks": {
            "title": "Checks",
            "minItems": 1,
            "uniqueItems": true,
            "type": "array",
            "description": "Choose the compliance categories to run.",
            "items": {
              "type": "string",
              "enum": [
                "contracts",
                "agent-ready",
                "x402",
                "store",
                "security"
              ],
              "enumTitles": [
                "Tool contracts",
                "Agent readiness",
                "x402 payments",
                "Store metadata",
                "Security"
              ]
            },
            "default": [
              "contracts",
              "agent-ready",
              "x402",
              "store",
              "security"
            ]
          },
          "failOn": {
            "title": "Fail run at severity",
            "enum": [
              "none",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string",
            "description": "Return a non-zero exit code when findings reach this severity.",
            "default": "none"
          },
          "exportFormats": {
            "title": "Report formats",
            "uniqueItems": true,
            "type": "array",
            "description": "Additional report formats to write to the Key-Value Store.",
            "items": {
              "type": "string",
              "enum": [
                "summary",
                "sarif",
                "junit"
              ]
            },
            "default": [
              "summary",
              "sarif",
              "junit"
            ]
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Maximum time to wait for each network request, in seconds.",
            "default": 30
          },
          "maxRedirects": {
            "title": "Maximum redirects",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum number of HTTP redirects to follow before failing the request.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy servers used by the Actor to hide its origin IP. Leave disabled for direct connections."
          },
          "includePassingChecks": {
            "title": "Include passing checks",
            "type": "boolean",
            "description": "Include successful checks in the dataset and SUMMARY report alongside warnings and errors.",
            "default": true
          },
          "dryRun": {
            "title": "Dry run",
            "type": "boolean",
            "description": "Validate configurations, pathing formats, and fields without executing external network calls.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}