---
title: Use it from your agent
description: Add Shed to Claude Code, Cursor or any MCP client, and the agent that builds a tool can also deploy it and share it with your team.
---

## The fastest way: one sentence

You don't need to set anything up. Say this to any agent that can run terminal commands, in the project you want online:

```text
Put this on Shed so I can share it. Follow https://shedcloud.dev/start.md
```

[start.md](https://shedcloud.dev/start.md) is a guide written for agents. It walks yours through checking the sign-in, asking you for your email, sending the sign-in link (the one step you do: click it and approve), checking the app fits Shed, building and deploying it, and offering to share it. It ends with the address. On Shed Cloud it's free.

Self-hosting? Your own server serves the same guide, with its address in every command, at `https://shed.yourcompany.com/start.md`.

## Make it permanent

For agents you use every day, give them Shed for good. Shed ships an [MCP](https://modelcontextprotocol.io) server inside the same `shedcloud` package, and a skill file. With them, your agent can sign you in, deploy a folder, share the app and check what's live, and it already knows how to write apps that use the SDK.

```sh tab="Claude Code"
$ claude mcp add shed -- npx -y shedcloud@latest mcp
$ mkdir -p ~/.claude/skills/shed && curl -fsSL https://shedcloud.dev/skill.md -o ~/.claude/skills/shed/SKILL.md
```

```json tab="Cursor" title="~/.cursor/mcp.json"
{
  "mcpServers": {
    "shed": { "command": "npx", "args": ["-y", "shedcloud@latest", "mcp"] }
  }
}
```

```json tab="Claude Desktop" title="claude_desktop_config.json"
{
  "mcpServers": {
    "shed": { "command": "npx", "args": ["-y", "shedcloud@latest", "mcp"] }
  }
}
```

```text tab="Other clients"
Command:   npx
Arguments: -y shedcloud@latest mcp
Transport: stdio
```

Restart the agent if it was already running, and check that it lists the `shed_` tools. Not signed in yet? Just ask for something: the agent asks for your email and calls `shed_login`, and you click the link. For a self-hosted Shed, sign in once from a terminal with `npx shedcloud login --server https://shed.yourcompany.com`.

## Ask for a tool

Describe what you want, who it's for, and that it should go on Shed:

```text
Build a retro board for the design team: columns for went well, didn't, and
try next; anyone can add a card and vote. Put it on Shed and share it with
everyone at our company as editors.
```

A typical run looks like this:

1. The agent writes `retro/index.html`, using `shed.me()`, `shed.db()` and `subscribe()` from the SDK. The server's instructions teach it the SDK and the kit.
2. It calls `shed_deploy` with the folder and gets back the address.
3. It calls `shed_share` with `org_role: "editor"`.
4. It tells you the link, and the message to post to your team. With people's emails, it would call `shed_share` with `invite: true` instead, and Shed emails each of them a sign-in link.

Ask for changes the same way. Deploying the same folder again updates the same app as a new version.

:::tip
**Review what it shares.** The agent can only do what your sign-in can do, but it acts as you. Shed warns, in the tool's result, when someone outside your company becomes an owner or an app becomes editable by anyone with the link, and tells the agent to pass that on.
:::

## Tools

| Tool | What it does | Arguments |
|---|---|---|
| `shed_login` | Email the user a sign-in link. The next tool call finishes the sign-in once they approve it. | `email` (required), `server` (self-hosted only) |
| `shed_whoami` | Who is signed in, on which Shed, and the plan and how much of it is used. | none |
| `shed_deploy` | Deploy a folder that has an `index.html`. Returns the address and who can open it. | `folder` (absolute path, required), `name` (optional app name) |
| `shed_share` | Change who can open an app. | `app` (required), `add` (list of `{ email, role }`, role defaults to `viewer`), `remove` (list of emails), `org_role`, `public_role` (`none`, `viewer` or `editor`) |
| `shed_list` | The apps you can open, with version, role and address. | none |
| `shed_info` | An app's sharing, versions and record count. | `app` |
| `shed_data` | What people entered in an app, with who added each entry and when. | `app`, `collection` (optional) |
| `shed_add_entries` | Add entries as if typed into the page: import a list or a CSV, or add test data. Follows the app's rules; anonymous collections can't be added to. | `app`, `collection`, and `records` (a list of objects) or `file` (a `.json`, `.jsonl` or `.csv` path) |
| `shed_update_entry` | Change some fields of one entry and keep the rest. | `app`, `collection`, `id`, `fields` |
| `shed_remove_entries` | Remove entries (owners). | `app`, `collection`, `ids` |
| `shed_init` | Write the starter app into a folder. | `folder` |
| `shed_delete` | Delete an app, its versions and its data for good. Agents are told to use it only when you ask to delete that app by name. | `app`, `confirm` (the app name again) |

The MCP server has no tool to roll back. Do that from the [CLI](cli.md) or the dashboard.

## Troubleshooting

- **"Not signed in to Shed yet"**: give the agent your email; it sends the link, and you approve it. Or run `npx shedcloud login` in a terminal yourself.
- **"Sign-in is waiting on …"**: the email hasn't been approved yet. Open it, check the code, choose **Approve terminal**, then tell the agent to carry on.
- **The tools don't show up**: check that `npx shedcloud mcp` starts without errors in a terminal (it waits silently for input; press Ctrl+C to stop it), and that your agent's config points at it.
- **"is taken"**: someone else already has an app with that name. Ask the agent to deploy with a different `name`.
