Skip to main content
Claude Code reads MCP server configuration from a .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).
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.
Export the token in your shell so Claude Code injects it at runtime:
Reload your shell and restart Claude Code (or run /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:
Then start the MCP server with TLS verification disabled (the local Nudj API uses self-signed HTTPS):
Important local-dev notes:
  • MCP URL is http://localhost:4010/mcp (HTTP, not HTTPS, and note the /mcp path). On worktree slots 2+, add (slot - 1) * 100 (e.g. :4110 for slot 2).
  • x-api-domain uses https://localhost:3000/api/v2/admin — HTTPS with the full /api/v2/admin suffix.
  • Admin, API, and MCP must share NEXTAUTH_SECRET in .env.local, and API + MCP must also share MCP_API_DELEGATION_SECRET (distinct from NEXTAUTH_SECRET) and PLATFORM_API_TOKEN, otherwise authentication fails with 401 or 503.

Reconnecting after a config change

Claude Code caches MCP connections and environment variables on startup. After editing .mcp.json:
  1. Run /mcp in Claude Code to reconnect.
  2. 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.
(If you still use a legacy 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 alongside nudj:
Each server exposes its own tools; Claude Code aggregates them independently.

Troubleshooting

  • Confirm .mcp.json is 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.
  • Token expired or has leading/trailing whitespace. Regenerate it.
  • For local dev: check NEXTAUTH_SECRET matches across admin, API, and MCP .env.local files.
  • 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.
  • 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 as 3100).

Bearer + Domain Headers

The auth pattern shared by all HTTP MCP clients.

MCP Tools Catalog

Every tool the Nudj MCP server exposes.