{
  "serverInfo": {
    "name": "StaffKhata MCP Server",
    "version": "1.0.0",
    "description": "MCP server exposing StaffKhata HRMS tools for AI agents — attendance, payroll, employees, and field workforce management.",
    "homepage": "https://staffkhata.com",
    "contactEmail": "support@staffkhata.com",
    "license": "proprietary"
  },
  "endpoint": "https://staffkhata.com/mcp",
  "transport": "streamable-http",
  "capabilities": {
    "tools": {
      "listChanged": false
    },
    "resources": {
      "listChanged": false
    },
    "prompts": {
      "listChanged": false
    }
  },
  "tools": [
    {
      "name": "get_attendance",
      "description": "Retrieve employee attendance records for a given date range",
      "inputSchema": {
        "type": "object",
        "properties": {
          "employee_id": { "type": "string", "description": "Employee ID" },
          "from": { "type": "string", "format": "date", "description": "Start date (YYYY-MM-DD)" },
          "to": { "type": "string", "format": "date", "description": "End date (YYYY-MM-DD)" }
        },
        "required": ["from", "to"]
      }
    },
    {
      "name": "get_payroll",
      "description": "Retrieve payroll details for a specific pay period",
      "inputSchema": {
        "type": "object",
        "properties": {
          "month": { "type": "integer", "minimum": 1, "maximum": 12 },
          "year": { "type": "integer" },
          "employee_id": { "type": "string", "description": "Optional: filter by employee" }
        },
        "required": ["month", "year"]
      }
    },
    {
      "name": "list_employees",
      "description": "List employees with optional filters",
      "inputSchema": {
        "type": "object",
        "properties": {
          "department": { "type": "string" },
          "status": { "type": "string", "enum": ["active", "inactive", "all"] },
          "limit": { "type": "integer", "default": 50 }
        }
      }
    },
    {
      "name": "get_leave_balance",
      "description": "Get leave balance for an employee",
      "inputSchema": {
        "type": "object",
        "properties": {
          "employee_id": { "type": "string" }
        },
        "required": ["employee_id"]
      }
    }
  ],
  "authentication": {
    "type": "oauth2",
    "discoveryUrl": "https://staffkhata.com/.well-known/openid-configuration"
  }
}
