> ## Documentation Index
> Fetch the complete documentation index at: https://inframan.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect an AI assistant

> Connect Claude Code, Claude or Cursor to Inframan's MCP server, and let an assistant provision, deploy and debug with your permissions.

Inframan has a built-in [MCP](https://modelcontextprotocol.io) server. Connect an AI assistant to it and the assistant can do what you can do in the console: read logs, metrics and traces, create applications, change traffic, provision infrastructure. It acts as you, with your role, and asks you before each action.

## Get your server URL

In the console, click the plug icon next to the logo, **Connect an AI assistant**. It shows the URL for your instance:

| Your console | MCP server URL |
| - | - |
| Hosted | `https://<console-domain>/api/i/<instance-id>/mcp` |
| In your own Google Cloud project | `https://<console-domain>/api/mcp` |

## Connect

> [tab] Claude Code
>
> ```bash theme={null}
> claude mcp add --transport http inframan <your-mcp-url>
> ```
>
> Then run `/mcp` inside Claude Code and pick **Authenticate**. A browser window completes the sign-in.

> [tab] Claude.ai and Claude Desktop
>
> 1. Open **Settings**, then **Connectors**.
> 2. Choose **Add custom connector**.
> 3. Paste your MCP server URL and save.
> 4. Press **Connect** and sign in when the browser opens.

> [tab] Cursor
>
> Save this as `.cursor/mcp.json` in your project:
>
> ```json .cursor/mcp.json theme={null}
> {
>   "mcpServers": {
>     "inframan": {
>       "url": "<your-mcp-url>"
>     }
>   }
> }
> ```
>
> Reload Cursor and sign in when prompted.

Signing in shows a consent screen with the assistant's name, the instance, the account you're signed in as, and the role it will act with. See [AI assistant access](https://inframan.mintlify.site/secure/ai-assistants.md) for how tokens and permissions work.

## The assistant reads the playbook first

Alongside its tools, the server publishes a resource, `inframan://instructions`, that the assistant is told to read before any Inframan work. It's rebuilt on every read, with your instance's current state, and carries the platform's rules: the order to do things in, the `inframan.yaml` schema, how to make a service public, and which steps need a person. The assistant works from Inframan's own instructions rather than guessing.

## Things to ask

* *Why did the last release of `shop` fail?*
* *Show me the error logs for the `api` service in the last hour.*
* *Which requests to `checkout` are slowest? Open the slowest trace.*
* *Create an application from `github.com/acme/shop` on my non-production infrastructure.*
* *Install PostgreSQL called `main` and connect it to `api` as `DATABASE_URL`.*
* *Send 10% of traffic to the newest revision of `shop`.*
* *Roll `shop` back to revision 41.*

The assistant asks for metrics and logs by name, and Inframan builds the queries, so you never need to write PromQL or LogQL.

## What an assistant won't do

Some actions stay with a person in the console, such as destroying an infrastructure, deleting an application, setting secret values and changing node pools. The assistant tells you when a step is yours. See the [full list](https://inframan.mintlify.site/secure/ai-assistants.md#what-always-stays-with-a-person).

> [!WARNING]
>
> An assistant can create resources your cloud provider bills for, such as an infrastructure or a database. Keep tool approvals switched on.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.