Skip to content

Hide getMcpHostKey from cmd pal#5008

Open
nturinski wants to merge 1 commit intomainfrom
nat/fix-4872
Open

Hide getMcpHostKey from cmd pal#5008
nturinski wants to merge 1 commit intomainfrom
nat/fix-4872

Conversation

@nturinski
Copy link
Copy Markdown
Member

Fixes #4872

This command should only be called the mcp.json, never from the cmd palette. It has a way to get the resource id when invoked in this way.

Copilot AI review requested due to automatic review settings May 6, 2026 21:19
@nturinski nturinski requested a review from a team as a code owner May 6, 2026 21:19
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

Note

Copilot was unable to run its full agentic suite in this review.

Updates extension command palette contributions to prevent azureFunctions.getMcpHostKey from being invoked manually, keeping usage restricted to mcp.json-driven flows (per #4872).

Changes:

  • Hides azureFunctions.getMcpHostKey from the Command Palette via a when: "never" menu contribution.

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.

An error occurs when executing "Azure Functions: Retrieve the MCP host key for the Function App specified by the resource ID." from Command Palette

3 participants