{"record":{"id":"6399544b8d5ec239","repo":"microsoft/vscode","slug":"github-enterprise-uri-is-not-configured","errorCode":null,"errorMessage":"GitHub Enterprise URI is not configured.","messagePattern":"GitHub Enterprise URI is not configured\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"extensions/copilot/src/extension/githubMcp/common/githubMcpDefinitionProvider.ts","lineNumber":101,"sourceCode":"\t\treturn this.configurationService.getConfig<boolean>(ConfigKey.GitHubMcpReadonly);\n\t}\n\n\tprivate get lockdown(): boolean {\n\t\treturn this.configurationService.getConfig<boolean>(ConfigKey.GitHubMcpLockdown);\n\t}\n\n\tprivate get channel(): ConfigKey.GitHubMcpChannelValue {\n\t\treturn this.configurationService.getConfig<ConfigKey.GitHubMcpChannelValue>(ConfigKey.GitHubMcpChannel);\n\t}\n\n\tprivate get gheConfig(): string | undefined {\n\t\treturn this.configurationService.getNonExtensionConfig<string>(EnterpriseURLConfig);\n\t}\n\n\tprivate getGheUri(): URI {\n\t\tconst uri = this.gheConfig;\n\t\tif (!uri) {\n\t\t\tthrow new Error('GitHub Enterprise URI is not configured.');\n\t\t}\n\t\t// Prefix with 'copilot-api.'\n\t\tconst url = URI.parse(uri).with({ path: '/mcp/' });\n\t\treturn url.with({ authority: `copilot-api.${url.authority}` });\n\t}\n\n\tprovideMcpServerDefinitions(): McpHttpServerDefinition[] {\n\t\tconst providerId = authProviderId(this.configurationService);\n\t\tconst toolsets = this.toolsets.sort().join(',');\n\t\tconst readonly = this.readonly;\n\t\tconst lockdown = this.lockdown;\n\t\tconst channel = this.channel;\n\t\tconst isSignedIn = !!this.authenticationService.permissiveGitHubSession;\n\n\t\tconst basics = providerId === AuthProviderId.GitHubEnterprise\n\t\t\t? { label: 'GitHub Enterprise', uri: this.getGheUri() }\n\t\t\t: { label: 'GitHub', uri: URI.parse('https://api.githubcopilot.com/mcp/') };\n","sourceCodeStart":83,"sourceCodeEnd":119,"githubUrl":"https://github.com/microsoft/vscode/blob/a94b963a32aa9749d69504576791fa29700ae46d/extensions/copilot/src/extension/githubMcp/common/githubMcpDefinitionProvider.ts#L83-L119","documentation":"Error \"GitHub Enterprise URI is not configured.\" thrown in microsoft/vscode.","triggerScenarios":"Thrown at extensions/copilot/src/extension/githubMcp/common/githubMcpDefinitionProvider.ts:101 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"a94b963a32aa9749d69504576791fa29700ae46d","analyzedAt":"2026-08-12T01:08:56.794Z","schemaVersion":2},"datasetVersion":"2026-08-12T06:17:24.410Z"}