15 references to McpConfigFileHelper
aspire (15)
Agents\ClaudeCode\ClaudeCodeAgentClient.cs (4)
19private static readonly McpConfigFileHelper.Configuration s_mcp = new() { ServersPropertyName = "mcpServers" }; 69=> (await McpConfigFileHelper.ReadConfigAsync(configFilePath, s_mcp.JsonDocumentOptions, edit, cancellationToken), configFilePath); 74var repaired = McpConfigFileHelper.UpdateDeprecatedCommand(config, s_mcp.ServersPropertyName); 75var added = configureServer && McpConfigFileHelper.ConfigureMcpServer(config, s_mcp, scope, configFilePath);
Agents\Copilot\CopilotAgentClient.cs (4)
19private static readonly McpConfigFileHelper.Configuration s_mcp = new() 91=> (await McpConfigFileHelper.ReadConfigAsync(configFilePath, s_mcp.JsonDocumentOptions, edit, cancellationToken), configFilePath); 97var repaired = McpConfigFileHelper.UpdateDeprecatedCommand(config, configuration.ServersPropertyName); 98var added = configureServer && McpConfigFileHelper.ConfigureMcpServer(config, configuration, scope, configFilePath);
Agents\OpenCode\OpenCodeAgentClient.cs (7)
18private static readonly McpConfigFileHelper.Configuration s_mcp = new() 31private static readonly McpConfigFileHelper.Configuration s_nativeMcp = s_mcp with 136var config = await McpConfigFileHelper.ReadConfigAsync(configFilePath, s_mcp.JsonDocumentOptions, edit, cancellationToken); 152: await McpConfigFileHelper.ReadConfigAsync(candidate, s_mcp.JsonDocumentOptions, edit, cancellationToken); 184var repaired = McpConfigFileHelper.UpdateDeprecatedCommand(root, configuration.ServersPropertyName); 185var added = configureServer && McpConfigFileHelper.ConfigureMcpServer(root, configuration, scope, configFilePath); 203var mcp = McpConfigFileHelper.GetServerContainer(root, s_mcp.ServersPropertyName, path);