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
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ This only works because product tool handlers call `getApiClient()` lazily insid
- **`McpClientConfig`:** builds the `{ "mcpServers": { "umbraco": … } }` JSON. `McpClientSnippets` uses it.
- **`McpClientSnippets`:** the seven snippets for one client id (Claude Code `.mcp.json`, Claude Code command, Claude Code plugin, Claude Desktop, VS Code with `inputs`, Cursor, Other clients). None contains a secret; a loopback site adds `NODE_TLS_REJECT_UNAUTHORIZED=0` (the plugin commands: `--config tls_reject_unauthorized=0`).
- **Claude Code plugin:** the repository root is a plugin marketplace (`.claude-plugin/marketplace.json`, name `umbrella`) with one plugin, `plugins/umbrella`: `plugin.json` asks for `base_url`, `client_id`, `client_secret` (`sensitive`, so it goes to the system's credential store) and `tls_reject_unauthorized` (default `1`), and `.mcp.json` passes them to `npx -y umbrella-mcp@<version>` through `${user_config.<key>}`. The dashboard's commands add the marketplace from `MarcusK00/Umbrella#v18/main` (`McpClientSnippets.PluginMarketplaceSource`), the released branch. `skills/health` is `/umbrella:health`. Check both with `claude plugin validate .` and `claude plugin validate ./plugins/umbrella`.
- **`McpOverviewService`** (`Overview/`): status, findings, products and API users, shared by the Overview tab (`umbrella-overview.js`: status banner, `umbrella-access-table.js` with a column per product headed with its version, a defaults row and one row per API user, its "…" menu with Info, New secret, Disable/Enable API user and Forget connection, connect steps in `umbrella-client-setup.js`; `umbrella-access.js` holds the level ladder, the level glyph and formatting shared with Tool Permissions) and the three health checks (`McpHealthCheckRows` renders short rows; the pointer to Settings → Umbrella is only in the "MCP client setup" description). Endpoints on `McpOverviewController`, Settings section: `GET /mcp/overview`, `DELETE /mcp/connections/{userKey}`, `GET /mcp/client-setup?clientId=` (`{ clientId, configuredClientId, apiUsers, clients }`: the snippets for that client id, default `Umbraco:Mcp:ClientId`, else `umbraco-back-office-mcp`, and the API users with a client id to pick from; 404 for a client id that is neither the configured one nor an API user's).
- **`McpOverviewService`** (`Overview/`): status, findings, products (with default `toolCount` / `totalToolCount`) and API users, shared by the Overview tab (`umbrella-overview.js`: status banner, Default permissions cards with colored top accents and tool counts, `umbrella-access-table.js` with single-line rows showing Default/Custom/Off/No access per product, formatted last-connected timestamp and an Actions menu with Edit permissions, Info, New secret, Disable/Enable API user and Forget connection, plus Client setup modal in `umbrella-connect-modal.js` / `umbrella-client-setup.js`; `umbrella-access.js` holds the level ladder, the level glyph and formatting shared with Tool Permissions) and the three health checks (`McpHealthCheckRows` renders short rows; the pointer to Settings → Umbrella is only in the "MCP client setup" description). Endpoints on `McpOverviewController`, Settings section: `GET /mcp/overview`, `DELETE /mcp/connections/{userKey}`, `GET /mcp/client-setup?clientId=` (`{ clientId, configuredClientId, apiUsers, clients }`: the snippets for that client id, default `Umbraco:Mcp:ClientId`, else `umbraco-back-office-mcp`, and the API users with a client id to pick from; 404 for a client id that is neither the configured one nor an API user's).
- **New connection and API user actions** (dashboard only): `umbrella-new-connection-modal.js` (Details, Access with a Defaults step per product, Review, then the secret once, the AI tool picker and a 5-second `GET overview` poll until connected), `umbrella-api-user-info-modal.js` and `umbrella-new-secret-modal.js` are sidebar modals (tokens in `umbrella-modals.js`, `"type": "modal"` entries in `umbraco-package.json`). Users, client credentials and disable/enable go through Umbraco's own Management API from the browser (`umbrella-users-api.js`, `managementRequest` in `umbrella-management-api.js`), so Umbraco enforces who may create users and grant which groups; the add-on only records the created user. The secret is made in the browser and never sent to `/mcp/*`. The flow's rules are in `umbrella-connection-logic.js` (no backoffice imports, checkable with plain `node`). API users get email and username `<client id>@umbrella.invalid`.
- **Dashboard caching:** `Dashboard/McpDashboardCacheStartupFilter` sends `Cache-Control: no-cache` for `/App_Plugins/Umbrella/*`. The modules are imported without a version in their address, so a browser could otherwise keep an old module next to newer ones after an upgrade; a missing export then leaves the dashboard blank. Don't remove it. It doesn't help a browser that cached a file before the header existed, so the second rule: never remove or rename an export of a released dashboard module, and put a new export a newer module needs in a new file (as `umbrella-management-api.js` does for `managementRequest`, not `umbrella-api.js`). The `dashboard-imports` guard (`scripts/check-dashboard-imports.mjs`) checks this against `origin/v<major>/main`.
- **No files written:** the add-on used to write `.mcp.json` in Development; that was removed, because it pinned one client id (a team sharing it signed in as one API user) and did nothing for hosted sites or editors without the source. Don't add it back.
Expand Down
Loading
Loading