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

# Use JoyStream from Claude Code or Codex

> Install the JoyStream plugin, sign in, and build, ship, and debug agents from your coding agent.

The JoyStream plugin connects Claude Code or Codex to the [JoyStream MCP server](https://docs.joystream.ai/features/joystream-mcp-server.md) and adds three skills: one to write an agent definition, one to build it and run it in Simulation and then for real, and one to diagnose a failed run. You need a JoyStream account. No token or workspace configuration is required.

The plugin always connects to production. To point a client at another environment, add the server by hand with `jstm mcp client-config --url`.

**1. Install the plugin**

In Claude Code:

```text theme={null}
/plugin marketplace add joystream-ai/joystream-plugin
/plugin install joystream@joystream-ai
```

Or from a terminal:

```bash theme={null}
claude plugin marketplace add joystream-ai/joystream-plugin
claude plugin install joystream@joystream-ai
```

In Codex:

```bash theme={null}
codex plugin marketplace add joystream-ai/joystream-plugin
```

Then start `codex`, type `/plugins`, open the **JoyStream** tab, and install **joystream**. Start a new session afterwards.

**2. Sign in**

The first time the server is used, your browser opens JoyStream's sign-in and consent page. Choose **Approve**.

In Claude Code, run `/mcp`, pick **joystream**, then **Authenticate**. In Codex, approve during install or run `codex mcp login joystream`.

The grant appears under **Settings → Connected apps**, where you can revoke it later.

**3. Build an agent**

Describe what you want. The `joystream-agent-author` skill asks one round of questions about the trigger, inputs, outputs, and services, checks that each service is connected, finds the connector actions and catalog skills the agent needs, and shows you the spec before saving it. It stops if a service is not connected or no action matches, rather than guessing.

```text theme={null}
Build an agent in acme-corp/finance that posts a daily digest of failed
Stripe payments to #billing in Slack.
```

**4. Ship it**

The `joystream-agent-ship` skill builds a sealed version, runs a Simulation of it, and then — only if you approve the summary it shows — a real Run of that same version. A Simulation needs no approval; every real Run comes back to you as a summary to approve first. See [Confirming actions](https://docs.joystream.ai/features/joystream-mcp-server.md#confirming-actions).

```text theme={null}
Ship failed-payment-digest. Simulate it with since=7d first, then do a real Run if it looks right.
```

**5. Debug a failed run**

The `joystream-agent-debug` skill reads the run, its failed tickets, and the version that ran, then tells you the likely cause and a proposed spec change. It is read-only. It never reruns or changes the agent; apply a change through the ship skill.

```text theme={null}
Why did the last run of failed-payment-digest fail?
```

## Without the plugin

Any MCP client can use the server directly. The CLI prints the setup for the two supported clients:

```bash theme={null}
jstm mcp client-config --client claude-code
jstm mcp client-config --client codex
```

For Claude Code that is:

```bash theme={null}
claude mcp add --transport http joystream https://api.joystream.ai/mcp
```

For Codex, add this to `~/.codex/config.toml`, then run `codex mcp login joystream`:

```toml theme={null}
[mcp_servers.joystream]
url = "https://api.joystream.ai/mcp"
```

In Claude Desktop or claude.ai, open **Settings → Connectors**, choose **Add custom connector**, and enter the URL.

## What the plugin can and cannot do

| Area | Can | Needs your confirmation |
| - | - | - |
| Read | Workspaces, agents, versions, specs, runs, tickets, run files, trigger events, credit balance, connectors and their actions | No |
| Build and simulate | Create and update agents, build sealed versions, run a Simulation | No |
| Run | A real Run of the latest or a named version, list or clone on Agent Universe, set an agent's credentials, run connector actions that change something | Yes |
| Cannot | Manage members, sharing, vaults, billing, or settings | |

Everything the coding agent reads from JoyStream, including run files, is treated as data, never as instructions.

## See also

* [JoyStream MCP server](https://docs.joystream.ai/features/joystream-mcp-server.md) for the full tool list.
* [Run artifacts](https://docs.joystream.ai/features/run-artifacts.md) for downloading what a run produced.


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