---
title: Connect an agent to publish
published: true
access: public
index: 1
---

# Connect an agent to publish

Connect a coding agent to Glue so it can read these guides and publish releases
to the projects you choose. You need Node.js 24 or newer, a Glue account, and an
owner or admin role on at least one project.

## Install the plugin

In the project where you use your agent, run the matching command in an
interactive terminal.

For Codex

```sh
npx glue-fast install-plugin 'brickspacelab/glue-docs' --agent codex
```

For Claude Code

```sh
npx glue-fast install-plugin 'brickspacelab/glue-docs' --agent claude
```

The plugin installs the `glue-docs` skill and registers two MCP connections:

- `glue-docs` uses [Content MCP](../../references/author-tools/content-mcp/README.md) to read this project’s published guides. It needs no sign-in.
- `glue` uses [Author MCP](../../references/author-tools/author-mcp/README.md) to publish releases to the projects you approve during installation.

After the files are installed, the CLI prints:

```text
This plugin can publish releases. Opening your browser to choose the projects it may publish to.
```

Your browser opens Glue's **Connect a terminal to publish** page.

{% stepper %}
{% step %}
### Check the code

Check that the code matches the one in your terminal.
{% endstep %}
{% step %}
### Choose publishing access

Under **Publishing access**, keep **All your projects** or choose
**Specific projects** and use **Select projects** to pick where the agent
may publish.
{% endstep %}
{% step %}
### Connect the terminal

Choose **Connect terminal**.
{% endstep %}
{% endstepper %}

**All your projects** is selected by default. It covers the projects you own or
administer across accounts, including ones you manage later. The picker under
**Specific projects** starts empty and grants publishing access only to the
projects you select. Leave it empty to connect the terminal without publishing
access.

The approval signs your terminal in to Glue. If you granted publishing access,
the terminal confirms what the agent can publish to for 90 days. Restart your
agent to load the plugin.

If you deny the page or it times out, the plugin stays installed and the CLI
prints the login step to run later.

Neither connection stores a credential in your repository or MCP configuration.

### When no browser opens

The install does not open a browser in CI, with `--no-browser` or with `--free`.
It prints this step instead:

```text
This plugin can publish releases. To let your agent publish, run: glue login --site https://glue.fast
```

If this machine already has publishing access for Glue, the install skips this
step.

## Connect or renew later

Run this on the machine that runs your agent:

```sh
npx glue-fast login --site https://glue.fast
```

On **Connect a terminal to publish**, choose your projects and connect.
Each machine needs its own approval. Publishing access lasts 90 days; log in
again to renew it. To change the approved projects, revoke the publishing
access and log in again.

## What the agent can do

The `glue` connection has eight tools:

| Tool | What it does |
| --- | --- |
| `list_projects` | Lists the approved projects you still own or administer. |
| `get_project` | Reads a project's name, address, published release and connected repository. |
| `list_releases` | Lists a project's released versions and their source commits. |
| `get_release` | Reads one release's source commit, license, install methods and tiers. |
| `list_release_files` | Lists the file paths in a release. |
| `read_release_file` | Reads a bounded excerpt of a text file in a release. |
| `inspect_release_source` | Shows the formats and version Glue detects at an exact commit. |
| `publish_release` | Publishes a release from a branch and full commit SHA. |

It works only on the projects you approved. A project you administer but did not
select is reported as unavailable. Glue checks your current role on every call,
so losing the role or revoking publishing access stops access on the next
request. The agent cannot change settings, billing, domains, members or tiers
through this connection.

## Publish with your agent

Your agent edits Markdown and skills in your GitHub repository with its own
tools. Glue publishes what is committed.

{% stepper %}
{% step %}
### Push the change

Ask the agent to commit and push the change.
{% endstep %}
{% step %}
### Inspect the release source

The agent calls `inspect_release_source` with the full commit SHA to confirm
the version and formats.
{% endstep %}
{% step %}
### Publish the release

The agent calls `publish_release` with the project, branch and that SHA.
{% endstep %}
{% step %}
### Verify the result

Check the published project. If a publish result is uncertain, ask the agent
to list the releases before trying again.
{% endstep %}
{% endstepper %}

## Disconnect

Connecting adds your terminal login under **Devices**. If you granted
publishing access, a separate `(publishing)` entry shows which projects it
covers. You can revoke either entry on its own.

To remove both credentials from this machine:

```sh
npx glue-fast logout --site https://glue.fast
```

Logging out does not revoke them in Glue. Revoke them under **Devices** to stop
other copies from working.
