> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.mitu.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.mitu.ai/_mcp/server.

# Agent gateway

The agent gateway is how AI agents reach your business through Mitu. It sits in front of the API you already operate and gives agents two ways in. AI apps such as Claude and ChatGPT connect through MCP, while agents that call APIs directly read a guide published at your HTTP address. Both are served by the same gateway, governed by the same tools and instructions, and backed by the same API, so you set everything up once.

Your API remains the source of truth throughout. It continues to handle your products, customer accounts and business rules exactly as it does for your website and applications, and agents become one more channel through which your customers reach it. Mitu presents your service to agents, identifies the customer each agent acts for and forwards every permitted request to your API.

| Way in | Used by                                                                   | Address                       |
| ------ | ------------------------------------------------------------------------- | ----------------------------- |
| MCP    | AI apps that connect to your service once and use it on an ongoing basis. | `mcp.mitu.ai/@yourbusiness`   |
| HTTP   | Agents that read your published guide and call your API directly by URL.  | `agent.mitu.ai/@yourbusiness` |

#### Set up your agent service

In the [Mitu dashboard](https://app.mitu.ai), open **Set up** under **Agents** and give your [agent service](/platform/your-agent-service/overview) its name and handle. The name is how agents refer to your business, and the handle forms both of your [addresses](/platform/your-agent-service/domains) until you connect a domain of your own.

#### Connect your API

Under **Integration**, enter the base URL of the API that already powers your product and test the connection. Every request an agent makes is forwarded to an operation beneath this address, so there is nothing new to build or deploy. [Integration](/platform/your-agent-service/integration/overview) describes every setting.

#### Choose how customers connect

Decide how an agent identifies the customer it is acting for. Operations that return public information can be used with no sign in, while customers can sign in with [your OAuth](/platform/your-agent-service/integration/authentication/oauth) using the account they already hold, or connect with a [customer key](/platform/your-agent-service/integration/authentication/customer-keys) you issue. Customer keys are always available, so both can run side by side.

#### Define what agents can do

Under **Tools**, [add each operation](/platform/your-agent-service/tools/add-tools) agents should be able to use, or [import them from an OpenAPI document](/platform/your-agent-service/tools/import-from-openapi). Only the operations you add are available to agents, and the rest of your API stays private. Describe each one clearly, covering what it does and when it should be used, and set a [price](/platform/your-agent-service/tools/pricing) for any you charge for.

If agents should be able to collect payment from your customers during a conversation, add [Mitu Pay](/platform/your-agent-service/tools/integrations/mitu-pay) from **Add integration**.

#### Write your instructions

Under **Instructions**, complete the instruction file every agent reads before it works with your business. Its five sections cover your business, the goal of a successful interaction, how your tools fit together, what must be confirmed before charging and the guardrails agents must never cross. Add your own pages for policies such as delivery or returns, and choose whether each is offered through MCP, served over HTTP or both. [Instructions](/platform/your-agent-service/instructions) includes a complete example.

Test your instructions, then publish them. Publishing releases your instructions and any draft tools together.

#### Verify requests from Mitu

Every request forwarded to your API is signed. Store the signing secret shown under **Integration** when it is created, and check the signature on every request before your API acts on it, as described in [Request verification](/platform/security/request-verification).

#### Open your ways in

Both ways in are live as soon as your instructions are published, at the addresses shown under [Domain](/platform/your-agent-service/domains) in the dashboard. Each serves a different kind of agent, so most businesses offer both.

#### MCP

MCP is the standard through which AI apps such as Claude and ChatGPT connect to external services. A customer adds your MCP address to their AI app once, and from then on their agent can use your tools in any conversation, without the customer having to visit your website or app.

**What agents receive**

1. **Your tools**\
   Every published tool, with its name, description, guidance on when to use it and the information it requires.
2. **Your instructions**\
   Your instruction file, read before the agent uses any tool, together with any of your own pages you have offered through MCP.
3. **Sign in when it is needed**\
   When a tool requires a customer, the AI app asks the customer to sign in through [your OAuth](/platform/your-agent-service/integration/authentication/oauth), or to provide their [customer key](/platform/your-agent-service/integration/authentication/customer-keys).

**How a customer connects**

1. The customer adds your MCP address as a new connection in their AI app.
2. If your tools require a customer, the app opens your sign in page, or asks for their customer key.
3. The app lists your tools, and the customer can ask their agent to use your product in plain language.

**Testing**

1. Add your MCP address to an AI app that supports MCP.
2. Sign in as a test customer, if your tools require one.
3. Ask the agent to complete a typical task, such as checking availability and making a booking.
4. Confirm that each request reaches your API, passes verification and returns the expected result, and that any payment appears in **Transactions**.

#### HTTP

Many agents do not use MCP. They call APIs directly over HTTP, and before they do, they look for documentation that tells them how. Your HTTP address serves a guide to your API written specifically for agents, and accepts the agent's calls to your operations at the same address.

**What the guide contains**

Mitu builds the guide from your tools, instructions and pricing, and keeps it current as they change. Each section appears only when it applies to your service.

1. **Overview and operations**\
   What your business offers, your instructions, and every published operation with its method, path and purpose.
2. **Authentication**\
   How to identify the customer, included only when an operation requires one.
3. **Payment**\
   How payment works and which methods are accepted, included only when an operation is priced.
4. **Errors**\
   What each error means and how to recover from it.
5. **Your own pages**\
   Any page you have chosen to serve over HTTP, such as your terms or delivery policy.

**How an agent uses it**

1. The agent reads the guide at your HTTP address to understand your service.
2. It calls an operation at the same address, identifying the customer where the operation requires it.
3. If the operation is priced, it receives a payment requirement, pays and repeats the request with proof of payment.
4. The request is forwarded to your API, and your response is returned to the agent.

Prices and availability always come from your API's live responses rather than from the guide, so agents never act on information that has gone out of date.

**Testing**

1. Open your HTTP address and read the guide from start to finish, as an agent would.
2. Check that every operation is described accurately and that nothing an agent needs is missing.
3. Ask an agent to complete a typical task using only your HTTP address.
4. Confirm that each request reaches your API, passes verification and returns the expected result.

#### Connect your domain

Before launch, [connect a subdomain you own](/platform/your-agent-service/domains) for each way in you use, such as mcp.yourcompany.com for MCP and agents.yourcompany.com for HTTP, so agents and customers see your brand. A custom MCP domain is also required before customers can sign in with [your OAuth](/platform/your-agent-service/integration/authentication/oauth).

#### Help agents find you

List your service in the Mitu directory from **Settings**, so agents searching across Mitu can find it, and add the [discovery references](/platform/your-agent-service/discovery) to your own website, so agents that arrive there are directed to your gateway.

Your product is now available to AI agents through a single gateway, reachable by AI apps over MCP and by agents calling your API over HTTP, while your API continues to run your business exactly as before. When you are ready to charge agents for the operations they use, [API monetisation](/guides/api-monetisation) shows how to price each one.