Skip to content

fix: filter MCP servers from @ autocomplete#14402

Open
dotuananh0712 wants to merge 1 commit intoanomalyco:devfrom
dotuananh0712:fix/mcp-servers-in-autocomplete-14399
Open

fix: filter MCP servers from @ autocomplete#14402
dotuananh0712 wants to merge 1 commit intoanomalyco:devfrom
dotuananh0712:fix/mcp-servers-in-autocomplete-14399

Conversation

@dotuananh0712
Copy link

@dotuananh0712 dotuananh0712 commented Feb 20, 2026

Issue for this PR

Closes #14399

Type of change

  • Bug fix

What does this PR do?

This PR fixes issue #14399 where MCP servers were appearing in the @ autocomplete menu alongside agents/subagents.

The problem: When users have MCP servers configured (e.g., "notionApi"), they were appearing in the @ autocomplete menu with names like "@mcps/notionApi/", making it confusing when trying to invoke actual agents.

The fix: Added a filter condition in packages/app/src/components/prompt-input.tsx to exclude any agents whose names start with "mcps/" from appearing in the @ autocomplete menu. This ensures only actual agents/subagents are shown in the autocomplete.

How did you verify your code works?

Code follows the existing pattern used for filtering agents (similar to how "hidden" and "primary" mode agents are filtered). The fix is minimal and targeted.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Prevent MCP servers from appearing in the @ autocomplete menu by filtering out agents whose names start with 'mcps/'. Only agents/subagents should appear in the autocomplete.

Fixes anomalyco#14399
@github-actions github-actions bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Feb 20, 2026
@github-actions
Copy link
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

MCP servers appearing in @ autocomplete menu

1 participant