{
  "$schema": "https://json.schemastore.org/mcp-server-card.json",
  "name": "servicex",
  "version": "1.0.0",
  "description": "ServiceX MCP Server providing document conversion, PDF manipulation, and OCR capabilities",
  "homepage": "https://servicex.in",
  "endpoint": "https://servicex.in/api/tools/process",
  "transport": "http",
  "capabilities": {
    "tools": {
      "list": true,
      "call": true
    },
    "resources": {
      "list": false,
      "read": false
    },
    "prompts": {
      "list": false
    }
  },
  "tools": [
    {
      "name": "merge_pdf",
      "description": "Merge two or more PDF files into a single unified document",
      "inputSchema": {
        "type": "object",
        "properties": {
          "files": {
            "type": "array",
            "items": { "type": "string" },
            "description": "Array of PDF file paths or URLs"
          }
        },
        "required": ["files"]
      }
    },
    {
      "name": "split_pdf",
      "description": "Split a PDF into separate pages or ranges",
      "inputSchema": {
        "type": "object",
        "properties": {
          "file": { "type": "string", "description": "PDF file path or URL" },
          "pages": { "type": "string", "description": "Page range e.g. 1-3, 5" }
        },
        "required": ["file"]
      }
    },
    {
      "name": "compress_pdf",
      "description": "Compress PDF file size while retaining visual quality",
      "inputSchema": {
        "type": "object",
        "properties": {
          "file": { "type": "string", "description": "PDF file path or URL" },
          "quality": { "type": "string", "enum": ["screen", "ebook", "printer", "prepress"] }
        },
        "required": ["file"]
      }
    },
    {
      "name": "word_to_pdf",
      "description": "Convert DOCX / Word document to PDF",
      "inputSchema": {
        "type": "object",
        "properties": {
          "file": { "type": "string", "description": "DOCX file path or URL" }
        },
        "required": ["file"]
      }
    },
    {
      "name": "ocr_pdf",
      "description": "Extract text from scanned PDF or image using OCR",
      "inputSchema": {
        "type": "object",
        "properties": {
          "file": { "type": "string", "description": "PDF or image file path or URL" }
        },
        "required": ["file"]
      }
    }
  ]
}

