{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/StdioServerConfig",
  "title": "StdioServerConfig",
  "properties": {
    "server_name": {
      "type": "string",
      "title": "Server Name",
      "description": "The name of the server"
    },
    "type": {
      "$ref": "#/components/schemas/MCPServerType",
      "default": "stdio"
    },
    "command": {
      "type": "string",
      "title": "Command",
      "description": "The command to run (MCP 'local' client will run this command)"
    },
    "args": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Args",
      "description": "The arguments to pass to the command"
    },
    "env": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Env",
      "description": "Environment variables to set"
    }
  },
  "type": "object",
  "required": [
    "server_name",
    "command",
    "args"
  ]
}