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

# Connect Claude Code, Codex and other AI tools

> Use Triggr's MCP server to build workflows, check runs and manage clients from Claude Code, Codex, Cursor or any MCP client.

Triggr's [MCP](https://modelcontextprotocol.io) server lets an AI coding tool work in your Studio organisation: ask "why did last night's onboarding fail?" or "build a workflow that…" and it uses Triggr's tools to answer or make the change. To use AI inside Studio instead, see [AI in Studio](https://kb.mspprocess.com/studio/ai/assistants.md).

<video controls preload="none" playsInline poster="/images/videos/studio-mcp.jpg" src="https://mintcdn.com/triggr/GxrCQFDFNLmEMyJ1/images/videos/studio-mcp.mp4?fit=max&auto=format&n=GxrCQFDFNLmEMyJ1&q=85&s=8e2c4c6426bf031211fad918936c360c" />

Connect your AI tools: create a scoped token, copy it and the server URL, and revoke one you no longer need (1:26).

| | |
| - | - |
| Server URL | `https://api.triggr-app.com/mcp/v1` |
| Transport | HTTP (Streamable HTTP, JSON responses) |
| Authentication | `Authorization: Bearer <token>`, using a token from Settings > MCP |

## Create a token

**1. Open MCP settings**

Go to **Settings > MCP** and click **Create Token**. If the button is missing, ask an admin for the Issue MCP Tokens permission.

![The MCP Access Tokens page with Refresh and Create Token buttons and three tokens: Claude Code – work laptop with Full Access and Codex – read only with 6 tools, both Active with a Revoke button, and Cursor – old laptop, Revoked, each with Created, Last Used and Expires dates.](https://mintcdn.com/triggr/XztmSfsoAUpshfIO/images/studio/mcp/tokens.png?fit=max\&auto=format\&n=XztmSfsoAUpshfIO\&q=85\&s=67c4da2212ccbaffedfb2f64b62b6565)

**2. Name it and choose its access**

Enter a **Token Name** that says where it's used. Choose **Full Access**, or **Custom Scopes** and tick only the tools it needs.

![The Create MCP Token dialog with Token Name Claude Code – read only, Custom Scopes selected, a search box filtering to workflow, 6 of 202 tools selected, and the Workflows group with list\_workflows ticked.](https://mintcdn.com/triggr/XztmSfsoAUpshfIO/images/studio/mcp/create-token.png?fit=max\&auto=format\&n=XztmSfsoAUpshfIO\&q=85\&s=0e1d04ec2a1f3db59571d8a2c26697e8)

**3. Copy the token**

Click **Create Token**, then **Copy** next to Your Token. Studio shows it only once.

![The Token Created Successfully dialog warning to copy the token now, a masked token with a Copy button, the MCP Server URL https://api.triggr-app.com/mcp/v1, an Access Scope of 6 tools, and a Claude Code Configuration snippet.](https://mintcdn.com/triggr/XztmSfsoAUpshfIO/images/studio/mcp/token-created.png?fit=max\&auto=format\&n=XztmSfsoAUpshfIO\&q=85\&s=7ab331b5188ebc7405feb35074716a49)

> [!TIP]
>
> Start with a read-only token (`list_` and `get_` tools only), and create a Full Access token later if you want the AI to make changes.

## Connect your tool

Keep the token in an environment variable, not a config file, so it never ends up in Git:

```bash theme={null}
export TRIGGR_MCP_TOKEN="mcp_..."
```

> [tab] Claude Code
>
> For just you, across all your projects:
>
> ```bash theme={null}
> claude mcp add --transport http --scope user triggr https://api.triggr-app.com/mcp/v1 \
>   --header "Authorization: Bearer $TRIGGR_MCP_TOKEN"
> ```
>
> To share it with your team, add `.mcp.json` at the root of the repository instead. Each person sets `TRIGGR_MCP_TOKEN` to their own token:
>
> ```json .mcp.json theme={null}
> {
>   "mcpServers": {
>     "triggr": {
>       "type": "http",
>       "url": "https://api.triggr-app.com/mcp/v1",
>       "headers": { "Authorization": "Bearer ${TRIGGR_MCP_TOKEN}" }
>     }
>   }
> }
> ```
>
> Include `"type": "http"`. Don't paste the Claude Code Configuration box from Studio as it is: it leaves out the type and puts the token in the file. Run `claude mcp list` to check triggr shows as connected.

> [tab] Codex
>
> Add this to `~/.codex/config.toml`:
>
> ```toml ~/.codex/config.toml theme={null}
> [mcp_servers.triggr]
> url = "https://api.triggr-app.com/mcp/v1"
> bearer_token_env_var = "TRIGGR_MCP_TOKEN"
> ```

> [tab] Cursor
>
> Add this to `~/.cursor/mcp.json`, or to `.cursor/mcp.json` in a project:
>
> ```json ~/.cursor/mcp.json theme={null}
> {
>   "mcpServers": {
>     "triggr": {
>       "url": "https://api.triggr-app.com/mcp/v1",
>       "headers": { "Authorization": "Bearer ${env:TRIGGR_MCP_TOKEN}" }
>     }
>   }
> }
> ```

> [tab] Other clients
>
> Any MCP client that supports remote HTTP servers with a custom header works. Use the server URL above and send `Authorization: Bearer <token>`.

Then ask your tool something simple, such as "List my Triggr workflows."

## Things to ask it

The AI picks the tools itself; the tool names are what to tick for a Custom Scopes token.

> [accordion] Investigate failures
>
> > Which workflow runs failed in the last 7 days? Group them by client and workflow, and for the top three show the failing step and its error.
>
> Tools: `get_workflow_failure_stats`, `list_workflow_runs`, `get_workflow_run`, `list_workflow_run_steps`.

> [accordion] Build a workflow from a description
>
> > Read the Triggr workflow docs, then create an inactive workflow called "Leaver – disable account" with a form trigger on my "Leaver request" form. It should email [helpdesk@example.com](mailto:helpdesk@example.com) with the leaver's name and last day. Validate it before saving.
>
> Tools: `get_workflow_docs`, `list_forms`, `get_form`, `validate_workflow`, `create_workflow`. New workflows are active unless you ask otherwise, so ask for an inactive one, test it with Manual Trigger in the designer, then switch it on.

> [accordion] Explain or fix an existing workflow
>
> > Explain what the "New starter setup" workflow does, step by step. Then add a step that creates a HaloPSA ticket after the email, and show me the change before you save it.
>
> Tools: `get_workflow`, `get_integration_type`, `get_integration_action_schema`, `update_workflow`.

> [accordion] Add a client ready for forms
>
> > Add a client called Acme Corp and set its microsoftTenantId variable to 11111111-2222-3333-4444-555555555555.
>
> Tools: `create_tenant`, `set_tenant_metadata`. Microsoft-authenticated [forms](https://kb.mspprocess.com/studio/forms/authentication.md) then recognise Acme's staff.

## What it can reach

About 200 tools, listed by group under Custom Scopes: forms, workflows, internal apps, PowerShell scripts, data tables, report templates and decks; runs, steps, failure stats and logs; clients and their variables, user groups and desktop agent status; integration types, actions and calls to connected tools; approvals where you're the approver; and Triggr Core workflow settings per client (the `core_` tools).

## Keep it safe

* A token can use every tool in its scope across your whole organisation, whatever your role in Studio. Treat it like an admin password.
* Changes are real and immediate, and integration calls go to the live system. Keep your tool's per-action approval prompts on for anything that creates, updates, deletes or triggers.
* Tokens last one year. Settings > MCP shows each token's Last Used and Expires dates: click **Revoke** on any you no longer need, and on a person's tokens when they leave.

## FAQ

> [accordion] “invalid or expired token”
>
> The token was mistyped, revoked or is over a year old. Create a new one and update your environment variable.

> [accordion] “token does not have permission to call tool: …”
>
> The token's Custom Scopes don't include that tool. Scopes can't be edited: create a new token with the tool ticked and revoke the old one.

> [accordion] Claude Code doesn't list the triggr tools
>
> Run `claude mcp list`. If triggr is missing, check `.mcp.json` has `"type": "http"` and that `TRIGGR_MCP_TOKEN` is set in the shell you started Claude Code from. A project's `.mcp.json` must be approved the first time you run `claude` in that folder.

> [accordion] Does one token work for several organisations?
>
> No. A token belongs to the organisation you created it in; switch organisation in Studio and create another.

> [accordion] Can the AI see my integration passwords and keys?
>
> No. Integration tools return metadata, not saved credentials, and sending profiles come back without passwords.

> [accordion] Does it work with Triggr Core?
>
> Yes, for Core's workflow configuration (the `core_` tools). Core's generated workflows can be cloned but not edited or deleted directly.


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