---
title: Connect to MCP
published: true
access: public
index: 0
---

# Connect to MCP

Copy the setup prompt from **Connect to MCP** on the project home or the
**MCP** row on a release you can access. Paste it into your agent to connect
to the project's published tools.

## What customers see at install

If your plugin's `.mcp.json` connects to your project's own MCP channel,
`npx glue-fast install-plugin` checks what those tools need for the customer.
This covers the channel's access tier and the tier of any page a content tool
could not return to them.

After installing the files, it signs the customer in and opens the release's
access page when a tier is needed. It waits for access, then lists the MCP tools
their agent can reach. If the customer declines, the plugin stays installed and
the CLI names the tools that will not work, or will return fewer pages, until
they have access. In CI, with `--no-browser` or with `--free`, nothing opens and
the CLI prints the access link instead.

Connect a bundled MCP server with the `glue-fast mcp --project` command, as
this project's own `.mcp.json` does:

```json
{
  "mcpServers": {
    "your-project": {
      "command": "npx",
      "args": ["-y", "glue-fast", "mcp", "--project", "https://glue.fast/s/your-project"]
    }
  }
}
```

That connection uses the customer's `glue login`. If your `.mcp.json` connects
to the project's MCP URL over HTTP instead, the install cannot sign that
connection in. The CLI still helps the customer get access, reports which tools
the connection can use without a token, and tells them to send their customer
token from `glue token` as an `Authorization: Bearer` header from their agent's
secret or environment settings.

When a tier includes a monthly call limit, subscribers see the calls used and
remaining with their subscription.

## Use the tools in CI

A [GitHub Action task](../skills/publish-a-task.md#tasks-that-call-your-mcp-tools)
can reach your MCP tools when its entry in `glue.json` sets `"mcp": true`. The
generated workflow then gives your action the project's MCP address as
`GLUE_MCP_URL` and the customer's token as `GLUE_CUSTOMER_TOKEN`. The customer
signs in with `npx glue-fast login --site https://glue.fast`, then sets that
secret once:

```sh
npx glue-fast token --site https://glue.fast | gh secret set GLUE_CUSTOMER_TOKEN
```

The token reads what that customer may read and stays active until they revoke
its device. Your action receives it, so customers should review the pinned
action first.
