{
  "service": "Method CRM MCP Server",
  "version": "1.0.0",
  "description": "Model Context Protocol server providing comprehensive Method CRM API access",
  "status": "operational",
  "endpoints": {
    "mcp": {
      "path": "/mcp",
      "method": "POST",
      "description": "MCP protocol endpoint - use this for AI agent integration",
      "protocol": "Model Context Protocol (MCP)"
    },
    "capabilities": {
      "path": "/capabilities",
      "method": "GET",
      "description": "List all available tools and server capabilities"
    },
    "health": {
      "path": "/health",
      "method": "GET",
      "description": "Health check endpoint"
    },
    "oauth": {
      "authorize": "/oauth/authorize",
      "callback": "/oauth/callback",
      "refresh": "/oauth/refresh"
    }
  },
  "features": {
    "tools": "20+ MCP tools for Method CRM operations",
    "authentication": "OAuth 2.1 with PKCE + API Key",
    "caching": "Schema caching (70-90% latency reduction)",
    "safeguards": "Confirmation flow for destructive operations",
    "multiTenant": "Full multi-tenant support"
  },
  "quickStart": {
    "step1": "View all capabilities: GET /capabilities",
    "step2": "Authenticate: OAuth flow or API key",
    "step3": "Connect via MCP: POST /mcp with MCP protocol messages",
    "step4": "Use 22 tools for Method CRM operations"
  },
  "documentation": {
    "capabilities": "https://method.avinashsangle.com/capabilities",
    "methodAPI": "https://developer.method.me",
    "mcpProtocol": "https://modelcontextprotocol.io"
  }
}