Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .agents/plugins/marketplace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "umbrella",
"interface": {
"displayName": "Umbrella for Umbraco"
},
"plugins": [
{
"name": "umbrella",
"source": {
"source": "local",
"path": "./plugins/umbrella"
},
"policy": {
"installation": "AVAILABLE",
"authentication": "ON_INSTALL"
},
"category": "Developer Tools"
}
]
}
6 changes: 3 additions & 3 deletions CLAUDE.md

Large diffs are not rendered by default.

66 changes: 60 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

# Umbrella

One MCP server for your Umbraco site. Umbrella detects which Umbraco products the site has installed and gives your AI tool (Claude Code, VS Code, Cursor, Claude Desktop) the tools for exactly those products.
[![NuGet downloads](https://img.shields.io/nuget/dt/umbraco.community.umbrella)](https://www.nuget.org/packages/Umbraco.Community.Umbrella)

One MCP server for your Umbraco site. Umbrella detects which Umbraco products the site has installed and gives your AI tool (Claude Code, Codex, Antigravity, VS Code, Cursor, Claude Desktop) the tools for exactly those products.

| Package | Where it runs | What it does |
|---|---|---|
Expand All @@ -11,14 +13,14 @@ One MCP server for your Umbraco site. Umbrella detects which Umbraco products th

The site only needs the NuGet package, but installing it doesn't connect your AI tool. Each person connects their own: on Settings → **Umbrella** → **Overview**, **New connection** creates their API user, its access and its client secret, and hands over the config for their AI tool ([Get started](#get-started)). The AI tool then starts `umbrella-mcp` with `npx`, which downloads it the first time.

**Using Claude Code?** Install the [Umbrella plugin](#claude-code-plugin) instead of editing a config file. Claude Code fetches it from GitHub, so there is nothing to download by hand:
**Using Claude Code, Codex or Antigravity?** Install the plugin ([Claude Code](#claude-code-plugin), [Codex](#codex-plugin) or [Antigravity](#antigravity-plugin)) instead of editing a config file. For Claude Code, there is nothing to download by hand:

```bash
claude plugin marketplace add MarcusK00/Umbrella#v18/main
claude plugin install umbrella@umbrella --config base_url=https://your-site --config client_id=umbraco-back-office-mcp
```

Then run `/plugin configure umbrella@umbrella` in Claude Code to add the client secret, which it keeps in your system's credential store.
Then run `/plugin configure umbrella@umbrella` in Claude Code to add the client secret, which it keeps in your system's credential store. See [Codex plugin](#codex-plugin) and [Antigravity plugin](#antigravity-plugin) for Codex and Antigravity install commands.

## Contents

Expand Down Expand Up @@ -71,6 +73,8 @@ On Umbraco 17, use Umbrella 17.x instead: follow the [Umbraco 17 documentation](
| Claude Desktop | `claude_desktop_config.json` (Claude Desktop: Settings → Developer → Edit Config) |
| VS Code | `.vscode/mcp.json` |
| Cursor | `.cursor/mcp.json` |
| Codex (plugin) | commands to add the [Codex plugin](#codex-plugin) and export the site and client id |
| Antigravity (plugin) | command to install the [Antigravity plugin](#antigravity-plugin) |
| Other clients | the generic `mcpServers` config |

The config is filled in with the address you opened the backoffice on and the new client id. Send the secret separately from the config. You can close the panel any time; the user is listed in **Access per API user** as **Not connected yet** until its MCP server starts.
Expand All @@ -80,7 +84,9 @@ On Umbraco 17, use Umbrella 17.x instead: follow the [Umbraco 17 documentation](
3. **Supply the secret.** The config never contains the secret, only a way to supply it:
- **VS Code** asks for it when the server starts.
- **The Claude Code plugin** asks for it when you run `/plugin configure umbrella@umbrella` in Claude Code, and keeps it in your system's credential store.
- **The Antigravity plugin** prompts for it (along with the site URL, client id and certificate check setting) when you enable the plugin in **Customizations → Installed** or `/plugin`.
- **Claude Code (`.mcp.json`) and Cursor** read it from the `UMBRELLA_CLIENT_SECRET` environment variable.
- **The Codex plugin** reads `UMBRACO_CLIENT_SECRET` (together with `UMBRACO_BASE_URL` and `UMBRACO_CLIENT_ID`) from your environment.
- **The `claude mcp add` command, Claude Desktop and other clients** have a placeholder: replace it with the secret. That config then contains the secret, so keep it out of source control.

To set the environment variable on macOS / Linux (add it to your shell profile to keep it):
Expand Down Expand Up @@ -110,7 +116,7 @@ Every tab on the Overview is a variant of this config:
"mcpServers": {
"umbraco": {
"command": "npx",
"args": ["-y", "umbrella-mcp@18.1.1"],
"args": ["-y", "umbrella-mcp@18.1.2"],
"env": {
"UMBRACO_BASE_URL": "https://your-site",
"UMBRACO_CLIENT_ID": "umbraco-back-office-mcp",
Expand Down Expand Up @@ -157,7 +163,53 @@ The plugin also adds `/umbrella:health`, which calls `get-mcp-health` and explai
- **Updates:** Claude Code doesn't update plugins from this marketplace on its own unless you turn auto-update on (`/plugin` → Marketplaces). After upgrading the add-on, run `claude plugin marketplace update umbrella` and `claude plugin update umbrella@umbrella`, then restart Claude Code.
- **Version:** the marketplace follows `v18/main`, so it installs the latest 18.x release. If your site runs an older add-on, the Overview and `get-mcp-health` note that the versions differ. To install a specific release instead, add the marketplace from its release tag, for example `MarcusK00/Umbrella#v<version>`.
- **One site per install:** the plugin keeps one set of values. For a second site, use the `claude mcp add` command from the Overview.
- **Claude Code only:** Claude Desktop's chat, Cursor and VS Code's own MCP settings don't load Claude Code plugins. Use their configs from the Overview.
- **Claude Code only:** Claude Desktop's chat, Cursor and VS Code's own MCP settings don't load Claude Code plugins. Use their configs from the Overview; Codex and Antigravity have their own plugin setups below.

### Codex plugin

This repository is also a Codex plugin marketplace (`.agents/plugins/marketplace.json`), and `plugins/umbrella/.codex-plugin/plugin.json` packages the `umbraco` MCP server and the `$health` skill for Codex CLI and the ChatGPT desktop app.

1. **Install the plugin.** The Overview's **Codex (plugin)** option shows these commands with your site and client id filled in:

```bash
codex plugin marketplace add MarcusK00/Umbrella#v18/main
codex plugin add umbrella@umbrella
```

2. **Set the environment variables.** Codex forwards `UMBRACO_BASE_URL`, `UMBRACO_CLIENT_ID`, `UMBRACO_CLIENT_SECRET`, and (for a `localhost` site) `NODE_TLS_REJECT_UNAUTHORIZED=0` to `umbrella-mcp`:

```bash
export UMBRACO_BASE_URL=https://your-site
export UMBRACO_CLIENT_ID=umbraco-back-office-mcp
export UMBRACO_CLIENT_SECRET="<the client secret>"
```

Add those exports to your shell profile so Codex sees them across sessions, then restart Codex.

3. **Check it.** Ask Codex to run `$health` (or call `get-mcp-health`). After upgrading the add-on, run `codex plugin marketplace upgrade umbrella` and reinstall `umbrella@umbrella`.

### Antigravity plugin

`plugins/umbrella/.antigravity-plugin/plugin.json` and `plugins/umbrella/mcp_config.json` package the `umbraco` MCP server and the `/health` skill for Google Antigravity (CLI, IDE and desktop app).

1. **Install the plugin.** The Overview's **Antigravity (plugin)** option shows the install command and the values to enter:

```bash
agy plugin install https://github.com/MarcusK00/Umbrella/tree/v18/main/plugins/umbrella
```

From a local checkout of this repository, `agy plugin install ./plugins/umbrella` installs the same bundle.

2. **Configure and enable it.** Open **Customizations → Installed** (or run `/plugin` in the Antigravity CLI) and enable **umbrella**. Antigravity prompts for four variables:

| Variable | Meaning |
|---|---|
| `UMBRACO_BASE_URL` | The site's `https://` address |
| `UMBRACO_CLIENT_ID` | The API user's client id (for example `umbraco-back-office-mcp`) |
| `UMBRACO_CLIENT_SECRET` | The API user's client secret |
| `NODE_TLS_REJECT_UNAUTHORIZED` | `1` to verify HTTPS certificates, or `0` only for a `localhost` site using the ASP.NET Core development certificate |

3. **Check it.** Restart or reload, then run `/health` (or ask Antigravity to call `get-mcp-health`). To update after upgrading the add-on, run `agy plugin install` again from the release branch or checkout.

## Teams, editors and hosted sites

Expand All @@ -174,7 +226,7 @@ Give each person who connects an AI tool their own API user:
- **Looking after an API user:** the **⋯** menu on its row in **Access per API user** has **Info** (client id, last connection, `umbrella-mcp` version, user groups, sections and tools per product, with links to its permissions, its config and the user in Users), **New secret** (replaces a lost or leaked secret and shows the new one once; the old one stops working), **Disable API user** (its AI tool can no longer sign in; **Enable API user** undoes it) and **Forget connection** (drops the row; the API user is not deleted). New secret and Disable need access to the Users section.
- **Editors:** an editor doesn't need the site's source code. They need Node.js (the versions under [Compatibility](#compatibility)) and an AI tool, for example Claude Desktop. The Umbrella dashboard is in the Settings section, so someone with access to it sets them up.
- **Hosted sites, such as Umbraco Cloud:** the MCP server runs on each person's machine and connects to the site over HTTPS, so it works with any environment. Open the dashboard on the environment the AI tools should use, so the config gets its address. Tool settings and the connection list are stored in that environment's database, so each environment has its own; create the API users on the environment the AI tools connect to.
- **Shared repositories:** a `.mcp.json` committed to a repository holds one client id, so everyone who uses it signs in as the same API user. Use the [Claude Code plugin](#claude-code-plugin) or the `claude mcp add` command instead, which Claude Code keeps in each person's own settings, or keep `.mcp.json` out of the repository.
- **Shared repositories:** a `.mcp.json` committed to a repository holds one client id, so everyone who uses it signs in as the same API user. Use a plugin ([Claude Code](#claude-code-plugin), [Codex](#codex-plugin) or [Antigravity](#antigravity-plugin)) or the `claude mcp add` command instead, which each tool keeps in each person's own settings, or keep `.mcp.json` out of the repository.

Tool settings are guardrails, not access control: see [Known limitations](#known-limitations).

Expand Down Expand Up @@ -277,6 +329,8 @@ If none of this explains it, [open an issue](https://github.com/MarcusK00/Umbrel
| The client secret is lost or leaked | Umbraco stores only its hash, so it can't be shown again | **⋯** → **New secret** on the user's row makes a new one; the old one stops working. Put the new one into the AI tool |
| The server exits with `Error: UMBRACO_BASE_URL is required.` (or another variable) | The MCP client config has no `env` entry for it | Use the config from Settings → Umbrella → Overview |
| With the Claude Code plugin, `/mcp` doesn't list `plugin:umbrella:umbraco` | A required value, usually the client secret, isn't set yet, so Claude Code doesn't start the server | Run `/plugin configure umbrella@umbrella` in Claude Code, then `/reload-plugins` |
| With the Codex plugin, `umbraco` doesn't start or exits with a missing variable | `UMBRACO_BASE_URL`, `UMBRACO_CLIENT_ID` or `UMBRACO_CLIENT_SECRET` isn't exported in Codex's launch environment | Export them in your shell profile (`NODE_TLS_REJECT_UNAUTHORIZED=0` for localhost too), then restart Codex |
| With the Antigravity plugin, `umbrella` stays disabled or doesn't start | Required variables aren't filled in yet, or `NODE_TLS_REJECT_UNAUTHORIZED` isn't set | Enable `umbrella` in **Customizations → Installed** (or `/plugin`) and fill in all four variables (`1`, or `0` for localhost) |
| The server exits with `its HTTPS certificate was not accepted`, or other TLS errors such as `self-signed certificate` | Node does not trust the site's certificate. The config from the Overview only turns checks off for `localhost` | Trust the certificate with `NODE_EXTRA_CA_CERTS=<path to the .pem>`, or for a local development host only, add `NODE_TLS_REJECT_UNAUTHORIZED=0` to `env` |
| Only `cms--` tools are listed | The add-on is not installed or not reachable, or a product is not installed, not enabled, or not on major version 18 | `get-mcp-health` gives the reason per product. "MCP products" in the backoffice shows what the site detected |
| One product's tools are missing although it is installed | It is switched **Off** in Settings → Umbrella → Tool Permissions, in the defaults or for this API user | `get-mcp-health` notes "Switched off in the backoffice". Set its access to another step and reconnect |
Expand Down
2 changes: 1 addition & 1 deletion docs/architecture-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ <h2>Settings per API user</h2>
<li><b>Override per product, all or nothing.</b> An override holds the product's switched-off groups and its level (<code>full</code>, <code>noDestructive</code>, <code>readOnly</code> or <code>off</code>). A product without one follows the defaults, also when they change later.</li>
<li><b>Every API user is selectable</b>, also one that has never connected. The user's own server picks the settings up on its next start.</li>
<li><b>Counts per user.</b> The Tool Permissions counts come from the selected user's own report; a user without one shows its groups without counts. The defaults show the highest counts any API user reported. Forgetting a connection in the Overview clears that user's report and keeps its overrides.</li>
<li><b>Client config per user.</b> The Overview's "Connect an AI tool" has its own API user picker. It calls <code>GET /mcp/client-setup?clientId=</code> and shows the seven snippets (Claude Code, the <code>claude mcp add</code> command, the commands that install the Claude Code plugin from <code>plugins/umbrella</code>, Claude Desktop, VS Code, Cursor, other clients) for that user's client id. No secret, and no files written on the site. The plugin asks for the secret itself and keeps it in the system's credential store.</li>
<li><b>Client config per user.</b> The Overview's "Connect an AI tool" has its own API user picker. It calls <code>GET /mcp/client-setup?clientId=</code> and shows the nine snippets (Claude Code, the <code>claude mcp add</code> command, the commands that install the Claude Code plugin from <code>plugins/umbrella</code>, Claude Desktop, VS Code, Cursor, Codex plugin, Antigravity plugin, other clients) for that user's client id. No secret, and no files written on the site. The Claude Code and Antigravity plugins prompt for the secret themselves, while Codex reads it from <code>UMBRACO_CLIENT_SECRET</code>.</li>
<li><b>New connection.</b> The Overview's New connection panel creates an API user through Umbraco's own Management API, from the browser as the signed-in user: the user, then <code>POST /mcp/created-users/{key}</code> so the Overview lists it before it connects, then client credentials with a secret made in the browser and shown once, then <code>PUT /mcp/tool-settings/users/{key}</code> for the products not left on Defaults. The row's "…" menu has Info, New secret, Disable/Enable API user and Forget connection.</li>
<li><b>Still guardrails.</b> The npm server applies them on each developer's machine; the API user's Umbraco permissions are the real boundary.</li>
</ul>
Expand Down
Loading
Loading