> For the complete documentation index, see [llms.txt](https://docs.thewalletcrew.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thewalletcrew.io/connectors/model-context-protocol-mcp.md). Agents can also search and read this documentation through its [MCP server](https://docs.thewalletcrew.io/~gitbook/mcp).

# Model Context Protocol (MCP)

Connect an AI assistant to The Wallet Crew through the Model Context Protocol (MCP): which server to use, who can connect, and how changes are allowed.

The Wallet Crew provides Model Context Protocol (MCP) servers. An AI assistant that supports MCP, such as Claude or ChatGPT, can use them to answer product questions, investigate a tenant and, when allowed, make changes.

<details>

<summary><strong>Real-world examples</strong></summary>

* A delivery team asks an AI assistant to explain a documented API workflow.
* A support team validates a tenant configuration before escalating an incident.
* An operations team checks why a pass shows a wrong value or why an automation did not run.
* A project team drafts a new theme or benefit template in QA and reviews it before rolling it out.

</details>

## In this section

| Page                                                                                                              | Use it to                                               |
| ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- |
| [Set up an assistant](https://docs.thewalletcrew.io/connectors/model-context-protocol-mcp/set-up-an-assistant.md) | Add a server to an AI assistant and check that it works |
| [Tool reference](https://docs.thewalletcrew.io/connectors/model-context-protocol-mcp/tool-reference.md)           | See what the assistant can read and change, by task     |
| [Examples](https://docs.thewalletcrew.io/connectors/model-context-protocol-mcp/examples.md)                       | Copy prompts and follow safe practices                  |
| [Troubleshooting](https://docs.thewalletcrew.io/connectors/model-context-protocol-mcp/troubleshooting.md)         | Fix connection, permission and refused changes          |

## Choose a server

Use the documentation server for product guidance. Use an environment server for the data of your tenants.

### Documentation server

The documentation server searches and reads The Wallet Crew documentation. It needs no sign-in and holds no tenant data.

**Address:** `https://docs.thewalletcrew.io/~gitbook/mcp`

It is also a quick way to check that an assistant supports MCP connections.

### Environment servers

Each environment has its own server. It covers the tenants of that environment only.

| Environment | Address                                     | Data             |
| ----------- | ------------------------------------------- | ---------------- |
| Production  | `https://admin.thewalletcrew.io/api/mcp`    | Real tenant data |
| QA          | `https://admin-qa.thewalletcrew.io/api/mcp` | Test data        |

Sign in with your admin console account of that environment. No API key is needed. The assistant sees only what your account can see in the admin console.

Give each connection a clear name, such as "The Wallet Crew – QA", so an investigation never runs on the wrong environment.

{% hint style="warning" %}
Production data can include customer and access information. Ask only for the data the task needs, and connect only through AI assistants your organization approves.
{% endhint %}

## Make changes safely

Write tools let an assistant make changes without opening the admin console, such as issuing a test pass, adjusting a theme or pausing an automation. A change made this way is real for every end-user it touches, so writes are gated.

A write runs only when all of these hold:

* The environment offers write tools.
* The tenant allows MCP writes. In **Settings → Access control → MCP access → Tenant settings**, **Allow MCP clients on this tenant** and **Allow writes through MCP** are both on by default. Changing them needs the `tenant.mcp:write` permission. Turning off **Allow MCP clients on this tenant** refuses every MCP call on the tenant, reads included.
* You have allowed writes on that tenant, for a limited time, from **My access** (see below).
* Your account has the permission the change requires, as in the admin console.

A refused write changes nothing. The refusal says which condition is missing; see [Troubleshooting](https://docs.thewalletcrew.io/connectors/model-context-protocol-mcp/troubleshooting.md).

### Allow writes in the admin console

Write approval is personal and short-lived, so an assistant cannot keep changing a tenant after the task is done. It covers one tenant in one environment.

1. Open the tenant in the admin console of the environment you connected.
2. Go to **Settings → Access control → MCP access**, tab **My access**. In production: [admin.thewalletcrew.io/tenant/\~/settings/access/mcp/mine](https://admin.thewalletcrew.io/tenant/~/settings/access/mcp/mine).
3. Check the environment shown next to the page title.
4. In **My write access**, pick a **Duration**, then click **Allow writes**.

Durations go from 5 minutes to 8 hours; the default is 15 minutes. **Revoke now** ends the approval early.

<figure><img src="https://3852727835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlP7d71aYydav6e0pRkxc%2Fuploads%2Fgit-blob-b52283b2da7aab88b6a44e8b5f32f05639c5e2a5%2Fmcp-access-my-write-access-light.png?alt=media" alt="The My write access panel confirms that writes are not allowed yet. Check the environment badge, choose a duration, then click Allow writes."><figcaption><p>My write access panel</p></figcaption></figure>

### Confirm each change

Every write asks for confirmation before it acts. Some assistants show a yes or no form. Others first show a preview of the change, then apply it once you confirm.

The diagram shows the flow with a preview.

```mermaid
sequenceDiagram
    participant A as AI assistant
    participant S as MCP server
    participant U as User
    A->>S: Call a write tool
    S-->>A: Preview of the change
    A->>U: Show the preview
    U->>A: Confirm
    A->>S: Repeat the call with the confirmation
    S->>S: Apply the change
    S-->>A: Result naming the environment
```

The preview gives a summary, the changes, the side effects and whether the change can be undone. Nothing changes at that point. A confirmation is valid for 10 minutes, for that exact change, tenant and user. Every preview and result names the environment.

Updates of themes, benefit templates and pass types replace the whole definition: a field left out is cleared. The last write wins, as in the admin console. An automation update changes only the fields sent.

{% hint style="warning" %}
Some writes reach end-users at once and cannot be taken back: a pass update pushes to the holder's devices, and a benefit template update can refresh every benefit already granted. Deletes cannot be undone. Rehearse changes on QA first.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.thewalletcrew.io/connectors/model-context-protocol-mcp.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
