Skip to content

Commit 6170613

Browse files
authored
Merge pull request #7651 from umbraco/mcp-dev-docs
Formatted article as per styleguide
2 parents 64689b1 + f29afa3 commit 6170613

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

16/umbraco-cms/reference/developer-mcp/host-setup/claude-code.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,36 +16,35 @@ npm install -g @anthropic-ai/claude-code
1616

1717
### Configuration using the CLI tool
1818

19-
**Basic CLI installation**
20-
21-
Add an MCP server using the Claude CLI:
19+
1. Add the Umbraco MCP server using the Claude CLI:
2220

2321
```bash
2422
claude mcp add umbraco-mcp npx @umbraco-cms/mcp-dev@16
2523
```
2624

27-
**Define configuration values directly**
28-
29-
To define configuration values directly, use this pattern:
25+
2. Define configuration values directly using this pattern:
3026

3127
```bash
3228

3329
# Add with environment variables
3430
claude mcp add umbraco-mcp --env UMBRACO_CLIENT_ID="your-id" --env UMBRACO_CLIENT_SECRET="your-secret" --env UMBRACO_BASE_URL="https://your-domain.com" --env NODE_TLS_REJECT_UNAUTHORIZED="0" --env UMBRACO_INCLUDE_TOOL_COLLECTIONS="document,media,document-type,data-type" -- npx @umbraco-cms/mcp-dev@16
3531
```
3632

37-
Replace the `UMBRACO_CLIENT_ID`, `UMBRACO_CLIENT_SECRET`, `UMBRACO_BASE_UR` and `UMBRACO_INCLUDE_TOOL_COLLECTIONS` values with your local connection details.
33+
Replace the following values with your local connection details:
3834

39-
This command adds the MCP server as `umbraco-mcp` in your project’s `claude.json` configuration file.
35+
- `UMBRACO_CLIENT_ID`
36+
- `UMBRACO_CLIENT_SECRET`
37+
- `UMBRACO_BASE_URL`
38+
- `UMBRACO_INCLUDE_TOOL_COLLECTIONS`
4039

41-
{% hint style="info" %}
42-
Use the command
40+
This command registers the MCP server as `umbraco-mcp` in your project’s `claude.json` configuration file.
4341

44-
```
42+
3. Check which MCP servers are currently active in your Claude Code environment:
43+
44+
```cs
4545
claude mcp list
4646
```
4747

48-
anytime to confirm which MCP servers are active in your Claude Code environment.
4948
{% endhint %}
5049

5150
### Project-specific configuration via `.mcp.json`
@@ -57,7 +56,7 @@ This is the referred project-level configuration for Claude Code. Creating a `.m
5756
- Override global Claude Code MCP settings.
5857
- Use an `.env` file to prevent secrets being added to source.
5958

60-
Example `.env` file
59+
#### Example `.env` file
6160

6261
```bash
6362
UMBRACO_CLIENT_ID=umbraco-back-office-mcp
@@ -68,7 +67,7 @@ UMBRACO_INCLUDE_TOOL_COLLECTIONS=document,media,document-type,data-type
6867

6968
Replace the `UMBRACO_CLIENT_ID`, `UMBRACO_CLIENT_SECRET`, `UMBRACO_BASE_URL` and `UMBRACO_INCLUDE_TOOL_COLLECTIONS` values with your local connection details.
7069

71-
Example `.mcp.json` file
70+
#### Example `.mcp.json` file
7271

7372
```json
7473
{

0 commit comments

Comments
 (0)