Connect Claude Desktop to Jama Connect MCP™ via mcp-remote

Erik Haake
Erik Haake
  • Updated
  • Jama Connect® version(s)
    • Cloud/CVC
    • Self-hosted (9.35.x and above)
  • Jama Connect MCP™

IMPORTANT: Access to the REST API and the Jama Connect Cloud MCP Server is restricted to users with a Named Creator Jama Connect license, which includes access to v1, Labs, and SCIM endpoints. Users without a Named Creator license—including those with a Creator Float license—do not have access.

Summary

When to use this

Use this setup when a Claude custom connector to Jama Connect MCP™ fails after login. Run the OAuth exchange locally through mcp-remote instead, and Claude Desktop connects with Basic client authentication.

  • Symptom: clicking Connect sends you to the Jama login and you sign in successfully, but Claude shows an error. In Jama's logs, POST /rest/oauth/token from python-httpx returns 401 invalid_client, and the request has no Authorization: Basic header.
  • Cause: a newly created custom connector sends a non-Basic token request first. Jama's metadata advertises only client_secret_basic, so Jama rejects that request. Older connectors may retry with Basic and succeed; connectors created now don't retry.
  • Scope: this workaround applies to Claude Desktop only, per machine. It doesn't apply on claude.ai or the mobile apps.

Resolution

Prerequisites

  • A Jama OAuth client: its client ID and secret.
  • Your instance's MCP endpoint: https://<instance.jamacloud.com/mcp/mcp-core, or the self-hosted equivalent.
  • Node.js 18 or later on the machine.
  • Claude Desktop, signed in.

The local route connects from your own machine, not Anthropic's cloud. That means self-hosted instances on a VPN or private network work too, as long as the machine can reach them.

Setup steps

  1. Find the full path to npx. Claude Desktop doesn't load your shell profile, so it can't find npx by name. This matters most when Node is installed through nvm, Volta or asdf.
    • macOS/Linux: run which npx, for example /Users/<you/.nvm/versions/node/v22.12.0/bin/npx.
    • Windows: run where npx, for example C:\Program Files\nodejs\npx.cmd.
  2. Add a localhost redirect URI to the Jama OAuth client. Pick a free port; 3334 is used here. Add http://localhost:3334/oauth/callback. You can keep any existing redirect URIs, such as https://claude.ai/api/mcp/auth_callback.
  3. Open the Claude Desktop config file. Create it if it doesn't exist.
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  4. Add the jama server entry. If the file already has other top-level keys, such as preferences, add mcpServers alongside them with a comma between. If mcpServers already exists, add only the jama entry inside it. Replace every <placeholder:
{
  "mcpServers": {
    "jama": {
      "command": "<full path to npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://<instance.jamacloud.com/mcp/mcp-core",
        "3334",
        "--static-oauth-client-info",
        "{\"client_id\":\"<CLIENT_ID\",\"client_secret\":\"<CLIENT_SECRET\"}"
      ],
      "env": {
        "PATH": "<folder containing npx:/usr/bin:/bin"
      }
    }
  }
}
  • The port in args must match the port in the redirect URI from step 2.
  • Keep the backslash-escaped quotes in the client-info string exactly as shown.
  • env.PATH is needed so that npx can find node. On Windows you can usually leave out the env block.
  1. Validate the JSON. Run python3 -m json.tool "<path to config" /dev/null && echo OK. A missing comma between top-level blocks is the most common error.
  2. Remove any failing Jama custom connector under Customize Connectors, so the two don't get confused.
  3. Restart and authenticate. Log in to Jama in your default browser first. Then quit Claude Desktop completely (⌘Q on macOS, not just closing the window) and reopen it. A browser tab opens for the Jama OAuth flow; complete it.
  4. Verify. In a new chat, open "+" → Connectors and confirm that jama is listed and on. Then ask Claude to list your Jama projects.

You don't create a custom connector for this. Servers defined in the config file start automatically when Claude Desktop launches.

Troubleshooting

Symptom Fix
"No executable file at …/npx" The command path is wrong. Check it against which npx, including the username and the Node version folder, and update env.PATH to match.
Server starts, then exits with "node: not found" env.PATH doesn't include the folder that contains node.
No browser tab opens Check the server log. Log in to Jama in your default browser first, then restart with ⌘Q.
Jama shows a redirect URI error The localhost URI on the Jama client must match the port in args exactly.
Port already in use Choose another port, and change it in both the config and the Jama redirect URI.
Auth worked before but now fails, or the client changed Clear the cached tokens with rm -rf ~/.mcp-auth, then restart Claude Desktop.
Config changes ignored Validate the JSON (step 5). One bad comma makes Claude ignore the whole file.

Logs: on macOS, ~/Library/Logs/Claude/mcp-server-jama.log; on Windows, %APPDATA%\Claude\logs\mcp-server-jama.log.

Run it by hand to see the OAuth flow and any errors directly:

npx -y mcp-remote https://<instance.jamacloud.com/mcp/mcp-core 3334 \
  --static-oauth-client-info '{"client_id":"<CLIENT_ID","client_secret":"<CLIENT_SECRET"}'

In Jama's logs, a working token request comes from a Node user agent, not python-httpx, and carries an Authorization: Basic header.

Security notes

  • The client secret is stored in plain text in the config file. Treat that file as a credential, and don't commit or share it.
  • The secret also shows up in Claude Desktop's error dialogs when the server fails to start. If you've pasted one of those into a ticket or chat, ask support to generate a new secret in Jama and update the config.

Additional Resources

Feedback:
We welcome your input! Please sign in to leave any comments, suggestions, or ideas for improvement below.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.