Connecting an AI assistant
SHADE offers a small, fixed set of tools over the Model Context Protocol so an AI assistant can help write and restructure content. The AI always works as an AI user: it edits drafts, a person reviews and publishes.
Address: https://admin.example.com/api/mcp (Streamable HTTP).
1. Create an AI user and a token
- Users → New user: name it after the assistant or person using it (e.g. "Claude – Anna"), role ai, no password (AI users cannot sign in to the admin).
- API tokens → New token: kind MCP, "Acts as user" = that AI user. Copy the token (
shd_…): it is shown once. One token per person or device makes revoking easy.
2. Connect a client
Claude Code
claude mcp add --transport http shade https://admin.example.com/api/mcp \
--header "Authorization: Bearer shd_…"
Claude Desktop
Claude Desktop's custom connectors expect OAuth, which SHADE does not provide. Use the mcp-remote
bridge in claude_desktop_config.json (Settings → Developer → Edit config):
{
"mcpServers": {
"shade": {
"command": "npx",
"args": [
"-y", "mcp-remote", "https://admin.example.com/api/mcp",
"--header", "Authorization:Bearer ${SHADE_TOKEN}"
],
"env": { "SHADE_TOKEN": "shd_…" }
}
}
}
Restart Claude Desktop; "shade" appears in the tools menu.
3. What the AI can and can't do
Can (these are the only tools; what each needs is in AI assistants):
| Tool | What it does |
|---|---|
website_list_pages | List pages with status |
website_get_page | Read a page's draft content, a tree of elements and text (with its untranslated texts in another language) |
website_set_structured_data | Set a page draft's structured data presets |
website_translate_texts | Translate texts of a draft into another language |
list_data_sources | Data sources for List and Cards: names, settings, item fields |
website_get_layout | Read published navigation and footer |
search_media | Find images by filename or alt text |
list_media_without_alt_text | Images missing alt text |
website_create_draft_page | Create a new unpublished page |
website_add_node | Add an element, a text or a component to a draft |
website_update_node | Change an element, a text or a component in a draft |
website_list_components | Read the component library |
website_list_starters | Read the starters an admin can add to the library |
website_get_site | Read the site's languages and what styles may set |
website_get_styles | Read a page's own styles |
website_set_element_style | Style one element (live when the page is published) |
website_get_animations | Read a page's animations |
website_set_animations | Set a page's animations (live when the page is published) |
website_get_theme | Read the theme's draft and published tokens |
website_save_theme_draft | Change the theme's draft (a person publishes it) |
website_duplicate_node | Copy an element or a text in a draft, or into another page |
website_make_component | Make a library component of elements in a draft |
website_duplicate_page | Copy a page as a new unpublished page |
website_move_node | Move an element or a text within a draft |
website_remove_node_from_draft | Remove an element or a text from a draft (history keeps it) |
set_alt_text | Set an image's alt text (nothing else about the image); images on the live site are left to a person |
Collections (only those that allow AI; see Collections):
| Tool | What it does |
|---|---|
list_collections | Content types available to the AI, with their fields |
list_entries | Entries of a collection (with filters) |
get_entry | One entry with its current version |
create_draft_entry | A new unpublished entry |
update_draft_entry | A new draft version of an entry (published version untouched) |
Can't, by design: no tool exists for it and the AI role lacks the permission:
- publish or unpublish anything, or trigger a rebuild
- delete pages or media, upload files
- edit navigation, footer or site settings (including the build hook), or publish the theme (it only drafts it)
- see or manage users, roles, API tokens or the audit log
- change an image's focal point or filename
Every tool call is checked again before it runs, and it needs the AI user's MCP token: the AI user gets nothing any other way.
Every AI change is a new version by the AI user, recorded in the audit log as made over MCP. The live site never changes until a person publishes.
4. Reviewing AI changes
AI changes in the admin lists every version an AI made. "Awaiting review" means it is still the page's latest draft. Open it in the editor, compare with the previous version, then publish, or Revert, which restores the previous version as a new version (nothing is lost).
Revoking access
API tokens → Revoke stops the client immediately. Deactivating the AI user revokes all its access.