mcp: load Claude Code user, project and local servers
Read ~/.claude.json mcpServers (user), .mcp.json (project) and ~/.claude.json projects[<dir>].mcpServers (local) alongside the hx files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ca6b917b17
commit
0c9a197fd5
2 files changed
+101
-12
No files matched your search
@@ -164,8 +164,10 @@ On a headless box, open the printed URL elsewhere and paste the final redirect U
|
||||
|
||||
## MCP
|
||||
|
||||
Servers come from `~/.hx/mcp.json` and `.hx/mcp.json` (project entries replace global ones with the same
|
||||
name), in the Claude Code `mcpServers` shape. `${VAR}` and `${VAR:-default}` are expanded.
|
||||
Servers come from, lowest priority first, `~/.claude.json` (Claude Code user scope), `~/.hx/mcp.json`,
|
||||
`.mcp.json` (Claude Code project scope), `~/.claude.json` `projects` entry for the current directory or a parent
|
||||
(Claude Code local scope) and `.hx/mcp.json`; a later entry replaces an earlier one with the same name. All use the
|
||||
Claude Code `mcpServers` shape. `${VAR}` and `${VAR:-default}` are expanded.
|
||||
|
||||
```json
|
||||
{"mcpServers": {
|
||||
|
||||
Reference in new issue
Block a user