1
>
/*---------------------------------------------------------------------------------------------
claudeMcpScan.ts
2
>
* Copyright (c) Microsoft Corporation. All rights reserved.
3
>
* Licensed under the MIT License. See License.txt in the project root for license information.
4
>
*--------------------------------------------------------------------------------------------*/
5
>
6
>
import { URI } from '../../../../../../base/common/uri.js';
7
>
import { IFileService } from '../../../../../files/common/files.js';
8
>
import { makeMcpServerCustomization, readJsonFile } from '../../../../../agentPlugins/common/pluginParsers.js';
9
>
import { McpServerStatus, type McpServerCustomization, type McpServerState } from '../../../../common/state/protocol/channels-session/state.js';
10
>
11
>
/**
12
>
* The JSON files a Claude session reads MCP server declarations from,
13
>
* in precedence order (project before user — first-seen wins).
14
>
*/
15
function claudeMcpFiles(workingDirectory: URI | undefined, userHome: URI): URI[] {
16
const files: URI[] = [];