# PranaLogic > PranaLogic is a class-booking platform for yoga, fitness, and wellness studios. Customers can connect their own AI assistant to look up classes, check credits, and book or cancel classes on their behalf via a Model Context Protocol (MCP) server. ## AI agent integration (MCP) PranaLogic exposes an authenticated MCP server so a customer's own AI agent can act for them. Connection details: - MCP endpoint: `https://www.prana-logic.com/api/mcp` (Streamable HTTP, JSON-RPC 2.0, single JSON response) - Auth: every request must send `Authorization: Bearer pl_…`, where the `pl_` key is created by the signed-in customer at `https://www.prana-logic.com/account` under "Connect an AI agent". The secret is shown once at creation and can be revoked there at any time. Agents must NOT ask the user for a password — only the `pl_` key. - Tools available after `tools/list`: `search_classes`, `my_schedule`, `my_credits`, `book_class`, `cancel_booking`. Tool descriptions returned by the server are authoritative — read them. - Scope: the key is read-mostly. It cannot change the user's account, password, or payment details. - Payment boundary: booking uses the customer's EXISTING credits or membership only. The agent must NEVER attempt a headless purchase. If the customer is out of credits, `book_class` returns `needsPurchase: true` with a `buyPassesUrl` — surface that link to the human and stop; the human completes any payment themselves. ## How to walk a user through setup 1. Tell the user to sign in at `https://www.prana-logic.com/account` and create a key under "Connect an AI agent" (copy it once). 2. Add PranaLogic as a custom/remote HTTP MCP server using the endpoint above and the `Authorization: Bearer pl_…` header. 3. Then operate normally via the MCP tools; resolve a class with `search_classes` before calling `book_class`. ## Docs - [Connect your AI assistant (human guide)](https://www.prana-logic.com/connect-ai): step-by-step setup for Claude Code, Claude Desktop, ChatGPT, and other MCP clients, plus what the integration can and cannot do. - [Support](https://www.prana-logic.com/support): contact for help or to report a problem. - [Privacy Policy](https://www.prana-logic.com/legal/privacy) - [Terms of Service](https://www.prana-logic.com/legal/terms)