fix(runner): use Jira Cloud auth for mcp-atlassian MCP server#922
fix(runner): use Jira Cloud auth for mcp-atlassian MCP server#922Gkrumbach07 merged 3 commits intomainfrom
Conversation
The mcp-atlassian config was using JIRA_PERSONAL_TOKEN which is the Server/Data Center auth method. For Jira Cloud (atlassian.net) the correct env vars are JIRA_USERNAME + JIRA_API_TOKEN. Also switch the command to uvx per upstream docs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
WalkthroughSwitches MCP Atlassian runner to invoke via Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@components/runners/ambient-runner/.mcp.json`:
- Around line 16-17: Update the runner invocation to pin the uvx package
version: change the args entry currently set as ["mcp-atlassian"] to
["mcp-atlassian@0.21.0"] so the "command": "uvx" invocation consistently runs
the pinned mcp-atlassian@0.21.0 release and avoids upstream breakage.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: c516bc67-124c-4d25-9fbc-844996eec7d8
📒 Files selected for processing (1)
components/runners/ambient-runner/.mcp.json
- Tool name: mcp_mcp-atlassian → mcp__jira__ - Team field: customfield_12313240 (Server) → customfield_10001 (Cloud Atlassian Team) - Sprint: use jira_add_issues_to_sprint API with board 1115 - Browse URL: issues.redhat.com → redhat.atlassian.net - Add team:ambient label on create - Add sprint assignment step Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Change the default and placeholder Jira URL from issues.redhat.com (on-prem Server) to redhat.atlassian.net (Jira Cloud). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Gkrumbach07
left a comment
There was a problem hiding this comment.
this looks good. tested this mcp config locvally
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
components/frontend/src/components/jira-connection-card.tsx (1)
190-200:⚠️ Potential issue | 🟠 MajorAPI token link points to Jira Server path instead of Jira Cloud.
The link constructs
${url}/secure/ViewProfile.jspa?...when a URL is entered, but this path is for Jira Server/Data Center PATs. For Jira Cloud (the target of this PR), API tokens are managed atid.atlassian.com, not at the instance URL. Users clicking this link will land on a non-existent page.Since the PR switches to Jira Cloud, the link should always use the Atlassian account URL for Cloud instances.
Proposed fix
<p className="text-xs text-muted-foreground mt-1"> Create an API token at{' '} <a - href={url ? `${url}/secure/ViewProfile.jspa?selectedTab=com.atlassian.pats.pats-plugin:jira-user-personal-access-tokens` : 'https://id.atlassian.com/manage-profile/security/api-tokens'} + href="https://id.atlassian.com/manage-profile/security/api-tokens" target="_blank" rel="noopener noreferrer" className="underline" > - Jira Settings + Atlassian Account Settings </a> </p>🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@components/frontend/src/components/jira-connection-card.tsx` around lines 190 - 200, In the Jira connection card JSX (jira-connection-card.tsx) the API token anchor currently builds a server/Data Center path using the `url` variable; change the anchor's href to always point to the Atlassian account Cloud token page (`https://id.atlassian.com/manage-profile/security/api-tokens`) instead of `${url}/secure/ViewProfile.jspa?...`. Update the anchor in the <p> block (the anchor using `href={url ? ... : 'https://id.atlassian.com/manage-profile/security/api-tokens'}`) to use the constant Cloud URL while keeping the existing `target`, `rel`, and `className` attributes.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@components/frontend/src/components/jira-connection-card.tsx`:
- Around line 190-200: In the Jira connection card JSX
(jira-connection-card.tsx) the API token anchor currently builds a server/Data
Center path using the `url` variable; change the anchor's href to always point
to the Atlassian account Cloud token page
(`https://id.atlassian.com/manage-profile/security/api-tokens`) instead of
`${url}/secure/ViewProfile.jspa?...`. Update the anchor in the <p> block (the
anchor using `href={url ? ... :
'https://id.atlassian.com/manage-profile/security/api-tokens'}`) to use the
constant Cloud URL while keeping the existing `target`, `rel`, and `className`
attributes.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: c41f0f5e-0ddc-4509-bb63-52942c7b15ac
📒 Files selected for processing (2)
.claude/commands/jira.log.mdcomponents/frontend/src/components/jira-connection-card.tsx
Summary
mcp-atlassianMCP server config in.mcp.jsonwas usingJIRA_PERSONAL_TOKEN, which is the Jira Server/Data Center (on-prem PAT) auth methodredhat.atlassian.net), the correct env vars areJIRA_USERNAME(email) +JIRA_API_TOKENtools: []because the wrong auth mode silently failed against the Cloud APImcp-atlassiantouvx mcp-atlassianper upstream docsTest plan
GET /mcp/statusreturns tools for themcp-atlassianserverJIRA_EMAILenv var is populated correctly from backend credentials🤖 Generated with Claude Code