Skip to content

mcp: fix visibility not set on cached mcp tools#286643

Merged
connor4312 merged 1 commit intomainfrom
connor4312/visibility-cached
Jan 9, 2026
Merged

mcp: fix visibility not set on cached mcp tools#286643
connor4312 merged 1 commit intomainfrom
connor4312/visibility-cached

Conversation

@connor4312
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings January 9, 2026 00:21
@connor4312 connor4312 enabled auto-merge (squash) January 9, 2026 00:21
@connor4312 connor4312 self-assigned this Jan 9, 2026
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 9, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request fixes a bug where cached MCP tools were missing the visibility property. When MCP tools are loaded from cache (such as from older cache entries that predate the visibility field), the visibility property may be undefined, causing issues when the tool's visibility is checked elsewhere in the codebase.

Key Changes

  • Added a nullish coalescing operator (??) to default visibility to McpToolVisibility.Model | McpToolVisibility.App when undefined

@connor4312 connor4312 merged commit 7c62052 into main Jan 9, 2026
36 of 39 checks passed
@connor4312 connor4312 deleted the connor4312/visibility-cached branch January 9, 2026 00:50
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Feb 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants