41
return new MarkdownString(nls.localize('mcp servers are not allowed', "Model Context Protocol servers are disabled in the Editor. Please check your [settings]({0}).", settingsCommandLink));
42
}
44
>
const allowlist = getMcpServerMatchers(this.configurationService.getValue(mcpAllowedServersConfig));
45
>
const denylist = getMcpServerMatchers(this.configurationService.getValue(mcpDeniedServersConfig));
46
>
switch (checkMcpServerAllowed(allowlist, denylist, identity)) {
47
>
case McpServerAllowResult.Denied:
48
return new MarkdownString(nls.localize('mcp server is denied', "This Model Context Protocol server is blocked by your organization's policy. Please contact your administrator for more information."));
49
case McpServerAllowResult.NotAllowed: