Skip to content

chat: show native MCP configuration sources - #333936

Merged
Vritant Bhardwaj (vritant24) merged 1 commit into
mainfrom
fix/mcp-detail-native-source
Sep 2, 2026
Merged

chat: show native MCP configuration sources#333936
Vritant Bhardwaj (vritant24) merged 1 commit into
mainfrom
fix/mcp-detail-native-source

Conversation

@vritant24

Copy link
Copy Markdown
Member

Summary

  • Uses an MCP collection's source URI when an installed server definition has no source of its own.
  • Shows native configuration filenames instead of the generic mcp.json fallback while preserving definition-level precedence.
Technical context for AI-assisted review

Intent and previous behavior

The AI Customizations MCP detail input only read server.presentation.origin. Native discovery records configuration files such as Copilot, Claude Desktop, Cursor, and Windsurf configs on collection.presentation.origin, so the embedded detail rendered its source-absent mcp.json fallback.

Implementation

The installed-detail adapter now reads the server and collection definitions together. It uses the definition origin first, falls back to the collection origin wrapped in the detail input's source shape, and retains the active-session source as the final fallback.

Behavior and constraints

  • Definition-specific origins and ranges remain unchanged and take precedence.
  • Collection origins provide a URI without inventing a server-specific range.
  • Discovery behavior is unchanged; the fix consumes the generic collection metadata already published by native discovery.
  • Product-specific Copilot discovery changes are intentionally outside this branch.

Use the MCP collection origin when an installed server definition does not
carry its own origin, while preserving definition-level precedence.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 2, 2026 04:59

Copilot AI left a comment

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.

Copilot review overview

🟢 Approval recommended

The focused implementation matches the stated behavior and includes appropriate regression coverage.

Review tier: Balanced
Findings: None

What changed in this PR

Adds collection-level URI fallback so MCP details show native configuration filenames while preserving source precedence.

Changes:

  • Uses collection origin when definition origin is unavailable.
  • Adds coverage for fallback and precedence behavior.
File Description
mcpListWidget.ts Adds collection-origin fallback for MCP details.
mcpListWidget.test.ts Tests fallback and definition precedence.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@vritant24
Vritant Bhardwaj (vritant24) merged commit 42b84d2 into main Sep 2, 2026
41 checks passed
@vritant24
Vritant Bhardwaj (vritant24) deleted the fix/mcp-detail-native-source branch September 2, 2026 14:07
@vs-code-engineering vs-code-engineering Bot added this to the 1.137.0 milestone Sep 2, 2026
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.

3 participants