Troubleshooting
Common issues and how to resolve them.
Connection Issues
"Missing endpoint/token"
The MCP server or CLI can't find your configuration.
Fix: Either set environment variables (JD_ENDPOINT, JD_TOKEN) or run jd init --global to create a config file. If using Docker, make sure the -e flags are passing the env vars correctly.
Check your current config with:
jd config show
"Authentication failed"
Your API token is invalid or expired.
Fix: Generate a new token in Jira at Apps → AgentGate for Jira - Tokens. Tokens start with jfa_. If you recently regenerated, make sure you updated the token everywhere — MCP client config, environment variables, or config file.
"Connection timeout"
The Forge app isn't responding.
Fix:
- Verify the endpoint URL is correct — copy it fresh from the Tokens page in Jira
- Check that the Forge app is installed on your Jira instance
- Forge apps occasionally need a few seconds to cold-start after inactivity — try again after a moment
- If the problem persists, check the
JD_TIMEOUTsetting (default: 30000ms)
"Project not found" or empty results
The project key doesn't match any project in your Jira instance.
Fix: Check the project key is correct — project keys are case-sensitive (PROJ, not proj). Make sure your token's user has access to that project in Jira.
MCP Server Issues
Claude Desktop doesn't show AgentGate tools
The MCP server isn't connecting properly.
Fix:
- Check your
claude_desktop_config.jsonfor JSON syntax errors - Make sure
jd-mcpis installed globally (npm install -g @orbiscend/jd-mcp) and is in your PATH - If using Docker, verify Docker is running
- Restart Claude Desktop after config changes
- Check Claude Desktop's MCP logs for error details
Tools appear but calls fail silently
This usually means the environment variables aren't being passed to the MCP server.
Fix: Make sure your env vars are inside the "env" block of the MCP server config, not at the top level. Example:
{
"mcpServers": {
"agentgate-for-jira": {
"command": "jd-mcp",
"env": {
"JD_ENDPOINT": "https://...",
"JD_TOKEN": "jfa_..."
}
}
}
}
CLI Issues
jd: command not found
The CLI isn't installed or not in your PATH.
Fix:
npm install -g @orbiscend/jd-cli
If already installed, check your Node.js global bin directory is in your PATH:
npm bin -g
prime returns empty or minimal data
This usually means the project is new or has very few issues.
Fix: Verify the project key with jd issues list. Check that JD_PROJECT or the configured project matches your Jira project key exactly.
Tool Issues
Pagination returns same results
Use cursor-based pagination with next_page_token, not offset-based:
result = issues_list(limit: 10)
# Use result.nextPageToken for the next page
issues_list(next_page_token: result.nextPageToken)
Changes stuck in "pending"
Changes require human approval before they're applied. They won't auto-apply.
Fix: Open the Review UI in Jira (Apps → AI Changes Review) and approve or reject the pending changes. Or use the CLI:
jd changes list --status pending
jd changes approve <change-id>
Change failed after approval
A change was approved but couldn't be applied to Jira. Common causes: permission issues, the issue was modified by someone else, or a workflow transition isn't valid from the current status.
Fix: Check the error details:
jd changes show <change-id>
The applyError field describes what went wrong. Fix the underlying issue and retry, or cancel and re-propose.
Comment update not working
When updating a pending comment, use the comment parameter, not proposed:
# Correct
changes_update(id: "chg-xxx", comment: { body: "Updated text" })
# Wrong
changes_update(id: "chg-xxx", proposed: { body: "Updated text" })
Permission Issues
"You don't have permission to perform this action"
Your token's user doesn't have the required Jira permissions.
Fix: AgentGate respects Jira's native permission scheme. If the user can't perform an action in Jira directly, they can't propose it through AgentGate either. Ask your Jira admin to grant the appropriate project role.
Can't see the Tokens page in Jira
The Tokens page is accessible to Jira site admins.
Fix: Ask your Jira site admin to either grant you access or generate a token for you.
Docker Issues
"Unable to pull image" or rate limit errors
Docker Hub may rate-limit anonymous pulls.
Fix: Authenticate with Docker Hub (docker login), or use the npm installation method instead:
npm install -g @orbiscend/jd-mcp
Docker container exits immediately
This is normal. The MCP server communicates over stdin/stdout and is designed to be launched by an MCP client, not run standalone.
Fix: Configure your MCP client to launch the Docker container as shown in MCP Setup. Don't run it directly in a terminal.
Getting Help
If you're stuck:
- Check this documentation at docs.orbiscend.com
- Email support@orbiscend.com
- Visit the AgentGate Marketplace listing for the latest information