Skip to content

fix: rm jira mcp card from screen#904

Merged
Gkrumbach07 merged 2 commits intoambient-code:mainfrom
syntaxsdev:feat/remove-jira-mcp
Mar 13, 2026
Merged

fix: rm jira mcp card from screen#904
Gkrumbach07 merged 2 commits intoambient-code:mainfrom
syntaxsdev:feat/remove-jira-mcp

Conversation

@syntaxsdev
Copy link
Copy Markdown
Contributor

No description provided.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 12, 2026

Walkthrough

MCP credential support has been removed from the integrations client component, including related types, constants, and UI rendering logic. The component now renders a simplified single grid layout containing only standard integration cards (GitHub, Google Drive, GitLab, Jira) while preserving existing loading state and connection card functionality.

Changes

Cohort / File(s) Summary
MCP Credential Removal
components/frontend/src/app/integrations/IntegrationsClient.tsx
Deleted MCP-related types (FieldDefinition, MCPCredentialServer), MCP_CREDENTIAL_SERVERS constant, and MCPCredentialCard import. Removed MCP server merging logic and conditional rendering for MCP section. Simplified render path to single grid of integration cards.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 1 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ❓ Inconclusive No pull request description was provided by the author. While the title gives some context, a description would be helpful for understanding the motivation and impact of removing MCP credential support. Consider adding a description explaining why MCP credential support is being removed and what the expected impact is.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the primary change: removing the Jira MCP card from the IntegrationsClient component. However, it is slightly informal with abbreviation 'rm' instead of 'remove'.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can generate a title for your PR based on the changes.

Add @coderabbitai placeholder anywhere in the title of your PR and CodeRabbit will replace it with a title based on the changes in the PR. You can change the placeholder by changing the reviews.auto_title_placeholder setting.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/frontend/src/app/integrations/IntegrationsClient.tsx`:
- Around line 36-56: Remove the now-orphaned MCP-related code: delete the
MCPCredentialCard component, the useMcpCredentials hook, and the mcp-credentials
API module; ensure there are no remaining imports of MCPCredentialCard,
useMcpCredentials, or the mcp-credentials API across the codebase (remove from
any barrel exports), and run the build/type-check to confirm nothing else
references those symbols.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 7d1185b9-1989-42b5-9e5a-490a70a2fd1d

📥 Commits

Reviewing files that changed from the base of the PR and between 24980cb and e85130d.

📒 Files selected for processing (1)
  • components/frontend/src/app/integrations/IntegrationsClient.tsx

Comment on lines +36 to +56
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
<GitHubConnectionCard
appSlug={appSlug}
showManageButton={true}
status={integrations?.github}
onRefresh={refetch}
/>
<GoogleDriveConnectionCard
showManageButton={true}
status={integrations?.google}
onRefresh={refetch}
/>
<GitLabConnectionCard
status={integrations?.gitlab}
onRefresh={refetch}
/>
<JiraConnectionCard
status={integrations?.jira}
onRefresh={refetch}
/>
</div>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify MCPCredentialCard and use-mcp-credentials are truly unused

echo "=== Searching for MCPCredentialCard imports ==="
rg -n "MCPCredentialCard" --type ts --type tsx -g '!*.test.*'

echo -e "\n=== Searching for use-mcp-credentials imports ==="
rg -n "use-mcp-credentials" --type ts --type tsx

echo -e "\n=== Searching for mcp-credentials API imports ==="
rg -n "from.*mcp-credentials" --type ts --type tsx

Repository: ambient-code/platform

Length of output: 315


🏁 Script executed:

#!/bin/bash
# Verify MCPCredentialCard and use-mcp-credentials are truly unused

echo "=== Searching for MCPCredentialCard imports ==="
rg -n "MCPCredentialCard" -t ts

echo -e "\n=== Searching for use-mcp-credentials imports ==="
rg -n "use-mcp-credentials" -t ts

echo -e "\n=== Searching for mcp-credentials API imports ==="
rg -n "from.*mcp-credentials" -t ts

echo -e "\n=== Checking if files still exist ==="
find . -name "mcp-credential-card.tsx" -o -name "use-mcp-credentials.ts" -o -name "mcp-credentials.ts" 2>/dev/null | head -20

Repository: ambient-code/platform

Length of output: 882


Clean up orphaned MCP credential code.

The simplified grid layout looks correct. However, removing MCPCredentialCard usage here leaves dead code that should be deleted in this PR:

  1. components/frontend/src/components/mcp-credential-card.tsx — no longer imported anywhere
  2. components/frontend/src/services/queries/use-mcp-credentials.ts — only imported by the removed component
  3. components/frontend/src/services/api/mcp-credentials.ts — only imported by the removed hook

Leaving this code increases maintenance burden and may confuse future developers.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@components/frontend/src/app/integrations/IntegrationsClient.tsx` around lines
36 - 56, Remove the now-orphaned MCP-related code: delete the MCPCredentialCard
component, the useMcpCredentials hook, and the mcp-credentials API module;
ensure there are no remaining imports of MCPCredentialCard, useMcpCredentials,
or the mcp-credentials API across the codebase (remove from any barrel exports),
and run the build/type-check to confirm nothing else references those symbols.

@Gkrumbach07 Gkrumbach07 merged commit 020d31d into ambient-code:main Mar 13, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants