/umb-cms-mcp:umb-cms-dev-clifrom umb-cms-mcp
CLI guide for running and debugging the Umbraco MCP server. Covers tool listing, invocation, authentication via .env, filtering, dry-run, readonly mode, and configuration debugging.
Ships in umb-cms-mcp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This MCP server runs as a CLI tool. The CLI handles authentication and configuration, then exposes tools that talk directly to the Umbraco Management API.
Determine the CLI command in a single check:
# One command to detect context — check for local build AND .env together
ls dist/index.js .env 2>/dev/null
dist/index.js exists: use node dist/index.jsnpx @umbraco-cms/mcp-dev@<site major> (e.g. @18 for an Umbraco 18.x site) rather than @latestAll examples below use <cli> as a placeholder — substitute the correct command.
Prefer pinning to the target site's Umbraco major over @latest. Tool schemas track the Management API of the CLI's own major, so a CLI major ahead of (or behind) the site's major can fail confusingly mid-task on a shape mismatch. The CLI checks the connected server's version on startup and prints a warning to stderr when the majors differ, but pinning the version up front avoids the mismatch entirely.
# List all tools
<cli> --list-tools
# Describe a specific tool's schema
<cli> --describe-tool <tool-name>
# Call a tool directly (requires auth via .env)
<cli> --call <tool-name> --call-args '{"key":"value"}'
# Call a tool using a JSON file instead of inline args (large/complex payloads, or any call on Windows)
<cli> --call <tool-name> --call-args-file ./args.json
# Generate context documentation
<cli> --generate-context > CONTEXT.md
# Debug resolved configuration
<cli> --debug-config
Never pass secrets as CLI arguments. Use a .env file.
| Env Var | Required | Description |
|---|---|---|
UMBRACO_CLIENT_ID | Yes | OAuth client ID from Umbraco API user |
UMBRACO_CLIENT_SECRET | Yes | OAuth client secret |
UMBRACO_BASE_URL | Yes | Umbraco instance URL |
Create a .env file:
UMBRACO_CLIENT_ID=your-client-id
UMBRACO_CLIENT_SECRET=your-secret
UMBRACO_BASE_URL=https://localhost:44391
Every command, including the introspection ones (--list-tools, --describe-tool, --generate-context, --debug-config), needs a .env pointing at a running Umbraco instance.
Start-up failures print a single line. Set UMBRACO_MCP_DEBUG=true to get the full stack trace.
| Flag | Env Var | Description |
|---|---|---|
--umbraco-tool-modes | UMBRACO_TOOL_MODES | Enable named groups of collections |
--umbraco-include-slices | UMBRACO_INCLUDE_SLICES | Only expose tools with these slices |
--umbraco-exclude-slices | UMBRACO_EXCLUDE_SLICES | Hide tools with these slices |
--umbraco-include-tool-collections | UMBRACO_INCLUDE_TOOL_COLLECTIONS | Only expose these collections |
--umbraco-exclude-tool-collections | UMBRACO_EXCLUDE_TOOL_COLLECTIONS | Hide these collections |
--umbraco-include-tools | UMBRACO_INCLUDE_TOOLS | Only expose these specific tools |
--umbraco-exclude-tools | UMBRACO_EXCLUDE_TOOLS | Hide these specific tools |
Slices are defined in src/config/slice-registry.ts — the single source of truth. Check that file for the current list rather than trusting a copy here, since it grows as tools are added (examples: create, read, update, delete, search, publish). Tools with no slices assigned fall back to other.
Exclude takes precedence over include. Filters combine.
<cli> --umbraco-readonly
Mutation tools are completely removed — the LLM won't see them at all.
<cli> --umbraco-dry-run
Read tools execute normally. Mutation tools return a preview without calling the API.
These print output and exit immediately — they do not start the MCP server.
| Flag | Description |
|---|---|
--list-tools | Print ASCII table of all tools |
--describe-tool <name> | Print full JSON schema for a tool |
--generate-context | Output CONTEXT.md documenting all tools |
--debug-config | Print resolved config (secrets masked) |
--call <name> | Call a tool directly, print JSON result |
--call-args <json> | JSON arguments for --call (default: {}) |
--call-args-file <path> | Path to a file containing JSON arguments for --call (use instead of --call-args for large/complex payloads) |
Introspection respects all filtering. --list-tools with UMBRACO_READONLY=true shows exactly what the LLM would see.
Prefer --call-args-file whenever the payload has quotes inside string values or markup — and always on Windows. If a content field contains HTML/Razor with embedded " and </>/& (e.g. a template body), passing it inline via --call-args means the JSON has to survive the shell's own quoting on top of your own. On Windows this is worse: npx/Volta shims route through cmd.exe, which can read <, >, or & inside an escaped-quote JSON string as redirection/command-separator operators, producing confusing errors like < was unexpected at this time., The system cannot find the file specified., or & was unexpected at this time.. --call-args-file reads the JSON from disk instead, so it never passes through shell argument parsing. Note: --call-args and --call-args-file are mutually exclusive (passing both errors out), and a missing file or invalid JSON in the file produces its own clear error (the file is read as UTF-8 with a leading BOM stripped, so Windows/PowerShell-saved files still work).
Every CLI call costs time and tokens. The CLI has built-in filtering so you don't need to fetch everything and grep locally. Follow these principles:
1. Filter server-side, not locally. Instead of --list-tools | grep document, use the filtering flags:
# Bad — fetches all tools then filters locally
<cli> --list-tools | grep document
# Good — server returns only what you need
<cli> --list-tools --umbraco-include-tool-collections document
You can combine filters to narrow further:
<cli> --list-tools --umbraco-include-tool-collections document --umbraco-include-slices read,search
2. Use search tools before tree traversal. When looking for a specific item by name, prefer search-document over walking the tree with get-document-root → get-document-by-id. Search is one call instead of two.
3. Batch independent shell commands. Combine checks that don't depend on each other:
# Bad — two separate calls
ls dist/index.js
ls .env
# Good — one call
ls dist/index.js .env 2>/dev/null
4. Use --describe-tool before guessing parameters. If you're unsure what a tool accepts, describe it first rather than making a call that might fail.
For more workflow examples, read references/workflow-patterns.md.
The SDK validates all string inputs before tool handlers run:
../), embedded query params, percent-encoded stringsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub umbraco/umbraco-cms-mcp-dev --plugin umb-cms-mcp2 skills in this plugin
Other plugins' skills for the same job