.mcp.json file at your project root and connects natively over Streamable HTTP ("type": "http") — no npx mcp-remote bridge is required. This page walks through wiring Nudj into Claude Code for both cloud-hosted and local MCP servers.
This is the developer workflow. For admin-panel / Claude Desktop setup, see MCP Admin Setup.
Prerequisites
- Claude Code installed and running in a project directory.
- Either an OAuth 2.1 sign-in or an MCP token from Settings → Developer → MCP Tokens (see Bearer + x-api-domain).
Cloud MCP (recommended)
Add Nudj’s hosted MCP server to your project’s.mcp.json using native Streamable HTTP:
For production (
https://mcp.nudj.cx/mcp), omit x-api-domain — production resolves your organisation’s Admin API from the verified token and rejects x-api-domain with HTTP 400./mcp). The Nudj tools will appear in the MCP tool list.
Local MCP (contributors)
If you’re iterating on the MCP server itself, point Claude Code directly at your local HTTP instance:- MCP URL is
http://localhost:4010/mcp(HTTP, not HTTPS, and note the/mcppath). On worktree slots 2+, add(slot - 1) * 100(e.g.:4110for slot 2). x-api-domainuseshttps://localhost:3000/api/v2/admin— HTTPS with the full/api/v2/adminsuffix.- Admin, API, and MCP must share
NEXTAUTH_SECRETin.env.local, and API + MCP must also shareMCP_API_DELEGATION_SECRET(distinct fromNEXTAUTH_SECRET) andPLATFORM_API_TOKEN, otherwise authentication fails with401or503.
Reconnecting after a config change
Claude Code caches MCP connections and environment variables on startup. After editing.mcp.json:
- Run
/mcpin Claude Code to reconnect. - If you rotated or exported a new shell token (
NUDJ_*_MCP_TOKEN), restart the Claude Code session so it picks up the new environment variable.
mcp-remote stdio bridge in another client, kill stale bridge processes with pkill -f mcp-remote before reconnecting.)
Combining with other MCP servers
Claude Code runs multiple MCP servers side by side. Common combos alongsidenudj:
Troubleshooting
Tools never appear in the catalog
Tools never appear in the catalog
- Confirm
.mcp.jsonis at the project root (not inside a subdirectory) and uses"type": "http". - Check Claude Code’s MCP log for startup or connection errors.
- Verify the env var holding your token is exported in the shell Claude Code inherits.
403 Forbidden
403 Forbidden
- Your organisation’s plan does not include MCP access (
NOT_ENTITLED). - Token’s RBAC role or OAuth scope is too narrow for the tool or operation you’re calling, or the token carries empty roles.
- In dev/local: token’s claimed organisation doesn’t match
x-api-domain. Re-issue a token from the right org’s admin panel.
Local dev: ECONNREFUSED or self-signed cert errors
Local dev: ECONNREFUSED or self-signed cert errors
- Ensure you started the MCP server with
NODE_TLS_REJECT_UNAUTHORIZED=0. - Verify the API is running on
https://localhost:3000(or your matching worktree slot port such as3100).
Related
Bearer + Domain Headers
The auth pattern shared by all HTTP MCP clients.
MCP Tools Catalog
Every tool the Nudj MCP server exposes.

