{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/notfair-co/json-schema/notfair-co-server-card-schema.json",
  "title": "ServerCard",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/notfair-co-openapi.json#/components/schemas/ServerCard",
  "type": "object",
  "properties": {
    "serverInfo": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "version"
      ]
    },
    "authentication": {
      "type": "object",
      "properties": {
        "required": {
          "type": "boolean",
          "const": true
        },
        "schemes": {
          "type": "array",
          "items": {
            "type": "string",
            "const": "oauth2"
          }
        }
      },
      "required": [
        "required",
        "schemes"
      ]
    },
    "tools": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tool"
      }
    },
    "resources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "uri": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "mimeType": {
            "type": "string"
          }
        },
        "required": [
          "uri",
          "name"
        ]
      }
    },
    "prompts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "arguments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "required": {
                  "type": "boolean"
                }
              },
              "required": [
                "name"
              ]
            }
          }
        },
        "required": [
          "name"
        ]
      }
    }
  },
  "required": [
    "serverInfo",
    "authentication",
    "tools",
    "resources",
    "prompts"
  ],
  "$defs": {
    "Tool": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "inputSchema": {
          "type": "object",
          "additionalProperties": true
        },
        "outputSchema": {
          "type": "object",
          "additionalProperties": true
        },
        "annotations": {
          "type": "object",
          "properties": {
            "title": {
              "type": "string"
            },
            "readOnlyHint": {
              "type": "boolean"
            },
            "destructiveHint": {
              "type": "boolean"
            },
            "idempotentHint": {
              "type": "boolean"
            },
            "openWorldHint": {
              "type": "boolean"
            }
          },
          "required": []
        }
      },
      "required": [
        "name",
        "inputSchema"
      ]
    }
  }
}