# MCP server Connect an AI assistant to your workspace over MCP: look up messages and templates, estimate prices, and (if you allow it) send messages and create orders. MCP (Model Context Protocol) lets an AI assistant call tools. The platform runs a **remote MCP server** that exposes the same actions as the REST API, with the same API key, the same validation, the same 24-hour rule and the same workspace isolation. ```text POST https://app.easytawasul.com/api/v1/mcp Authorization: Bearer ``` Add `?access=read` to the URL for **read-only** access: the write tools are hidden and refused. ```text https://app.easytawasul.com/api/v1/mcp?access=read ``` ## Connect from your account (the easy way) Sign in and open **Developers, AI connection (MCP)** in your account (`https://app.easytawasul.com/app/developers/mcp`). The page makes a key just for the assistant (read-only or able to act), shows the key once, and gives you the exact text to paste for **every assistant in the table below**, plus a command that checks the connection. ## Connect by hand: which assistants, and how MCP is an open standard, so many assistants can connect. They connect in different ways, so the table lists each one separately. Checked against each vendor's own documentation on 2026-11-04; menu names can change, so follow the vendor's page if one differs. | Assistant | How it connects to a remote server | Sign-in | |---|---|---| | Claude (website and desktop app) | Customize, Connectors, Add custom connector, then the address. The same account connector works in both. | OAuth, or a fixed header | | ChatGPT | Plugins, plus button, Add custom MCP server, then the address | OAuth | | Claude Code | `claude mcp add --transport http wassel
--header "Authorization: Bearer "` | Key header, or `/mcp` to sign in | | Codex (app, CLI and IDE extension) | `[mcp_servers.wassel]` with `url` and `bearer_token_env_var` in `~/.codex/config.toml` | Key from an environment variable, or `codex mcp login` | | Cursor | `url` and `headers` in `.cursor/mcp.json` | Key header, or OAuth | | VS Code (GitHub Copilot) | Command Palette, MCP: Add Server, HTTP, then the address | Key header | | Gemini CLI | `httpUrl` and `headers` in `settings.json` | Key header, or OAuth | | Zed | `url` and `headers` under `context_servers` | Key header, or OAuth | The Claude Desktop settings file (`claude_desktop_config.json`) is for local servers only. A remote server like ours is added as a connector in your Claude account instead. Any other assistant that supports remote MCP servers with a custom header can use the address with the header `Authorization: Bearer `. Use a **separate key** for each assistant so you can revoke it alone. Start with `?access=read`. The page **Developers, AI connection (MCP)** in your account writes the exact text for each assistant in the table. ## Claude and ChatGPT: sign in, no key to copy Claude and ChatGPT connect with a sign-in (OAuth 2.1 with PKCE), so there is nothing to paste but the address: 1. In **Claude** (website or desktop app): Customize, Connectors, Add custom connector. In **ChatGPT**: Plugins, plus button, Add custom MCP server. 2. Paste `https://app.easytawasul.com/api/v1/mcp` (without `?access=read`). 3. A window opens in your account. Sign in as the workspace owner, choose **look things up only** or **look things up and act**, and press **Allow**. The sign-in makes a key by itself, named "AI connector - ", limited to what you chose. You can cancel it any time under Developers, API keys. Connecting the same assistant again replaces its old key. Only the workspace owner can allow a connection. ChatGPT asks for your confirmation in the chat before any action that writes. For developers: the address answers `401` with a `WWW-Authenticate` header that points to `/.well-known/oauth-protected-resource`; the authorization server metadata is at `/.well-known/oauth-authorization-server`; clients register themselves at `/api/oauth/register` (RFC 7591); the code is swapped at `/api/oauth/token` with PKCE S256 (a code works once and for 60 seconds). Protocol: JSON-RPC 2.0 over HTTP `POST` (methods `initialize`, `tools/list`, `tools/call`, `ping`). ## Tools | Tool | What it does | Writes? | |---|---|---| | `get_account` | Workspace name, country, currency | no | | `get_wallet_balance` | Wallet balance (minor units) | no | | `list_templates` | Templates and approval status | no | | `list_messages` | Recent messages, filters `to`, `status`, `limit` | no | | `get_message` | One message by `msg_...` id | no | | `estimate_price` | Official price for N messages in a market | no | | `send_message` | Send a template or (inside the window) a text message | **yes** | | `create_order` | Record an order for confirmation | **yes** | | `request_order_confirmation` | Ask the customer to confirm an order on WhatsApp | **yes** | | `start_verification` | Send a one-time code (never shown to the assistant) | **yes** | | `check_verification` | Check the digits the person typed | **yes** | Each tool takes the same fields as its REST endpoint ([Send a message](send-message), [Orders API](orders-api), [OTP](otp-verify), [Pricing](pricing-and-billing-api)). Errors come back as a tool result with `isError: true` and the same `code` as REST. ## Safety - An assistant with a full key can message real customers. Prefer `?access=read`, and ask the assistant to confirm with you before it sends. - Rate limit: 120 requests per minute. - Revoke the key in **Developers > API keys** to cut access instantly.