fix: display MCP tag for prompts in autocomplete but not in prompt (#6531)

This commit is contained in:
Paolo Ricciuti
2025-12-31 16:34:36 +01:00
committed by GitHub
parent 6e3ead198e
commit 5249f04ea0
5 changed files with 8 additions and 2 deletions

View File

@@ -195,7 +195,7 @@ export namespace MCP {
for (const prompt of prompts.prompts) {
const sanitizedClientName = clientName.replace(/[^a-zA-Z0-9_-]/g, "_")
const sanitizedPromptName = prompt.name.replace(/[^a-zA-Z0-9_-]/g, "_")
const key = sanitizedClientName + ":" + sanitizedPromptName + " (MCP)"
const key = sanitizedClientName + ":" + sanitizedPromptName
commands[key] = { ...prompt, client: clientName }
}