microsoft/vscode · error · Error
GitHub Enterprise URI is not configured.
Error message
GitHub Enterprise URI is not configured.
What it means
Error "GitHub Enterprise URI is not configured." thrown in microsoft/vscode.
Source
Thrown at extensions/copilot/src/extension/githubMcp/common/githubMcpDefinitionProvider.ts:101
return this.configurationService.getConfig<boolean>(ConfigKey.GitHubMcpReadonly);
}
private get lockdown(): boolean {
return this.configurationService.getConfig<boolean>(ConfigKey.GitHubMcpLockdown);
}
private get channel(): ConfigKey.GitHubMcpChannelValue {
return this.configurationService.getConfig<ConfigKey.GitHubMcpChannelValue>(ConfigKey.GitHubMcpChannel);
}
private get gheConfig(): string | undefined {
return this.configurationService.getNonExtensionConfig<string>(EnterpriseURLConfig);
}
private getGheUri(): URI {
const uri = this.gheConfig;
if (!uri) {
throw new Error('GitHub Enterprise URI is not configured.');
}
// Prefix with 'copilot-api.'
const url = URI.parse(uri).with({ path: '/mcp/' });
return url.with({ authority: `copilot-api.${url.authority}` });
}
provideMcpServerDefinitions(): McpHttpServerDefinition[] {
const providerId = authProviderId(this.configurationService);
const toolsets = this.toolsets.sort().join(',');
const readonly = this.readonly;
const lockdown = this.lockdown;
const channel = this.channel;
const isSignedIn = !!this.authenticationService.permissiveGitHubSession;
const basics = providerId === AuthProviderId.GitHubEnterprise
? { label: 'GitHub Enterprise', uri: this.getGheUri() }
: { label: 'GitHub', uri: URI.parse('https://api.githubcopilot.com/mcp/') };
View on GitHub (pinned to a94b963a32)
When it happens
Trigger: Thrown at extensions/copilot/src/extension/githubMcp/common/githubMcpDefinitionProvider.ts:101 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of microsoft/vscode@a94b963a32 (2026-08-12).
Data as JSON: /api/errors/6399544b8d5ec239.
Report an issue: GitHub.