3 implementations of GetMcpConfigPath
aspire (3)
Agents\ClaudeCode\ClaudeCodeAgentClient.cs (1)
86public string GetMcpConfigPath(AgentConfigurationScope scope, DirectoryInfo workspaceRoot)
Agents\Copilot\CopilotAgentClient.cs (1)
69public string GetMcpConfigPath(AgentConfigurationScope scope, DirectoryInfo workspaceRoot)
Agents\OpenCode\OpenCodeAgentClient.cs (1)
51public string GetMcpConfigPath(AgentConfigurationScope scope, DirectoryInfo workspaceRoot)
19 references to GetMcpConfigPath
Aspire.Cli.Tests (19)
Agents\AgentConfigurationTestContext.cs (1)
87client.GetMcpConfigPath(scope, Project), Project, scope, edit, cancellationToken);
Agents\AgentPathTests.cs (1)
47_context.Copilot.GetMcpConfigPath(AgentConfigurationScope.Global, _context.Project));
Agents\OpenCodeAgentClientTests.cs (1)
356Assert.Equal(_context.OpenCode.GetMcpConfigPath(AgentConfigurationScope.Global, _context.Project), result.TargetPath);
Commands\AgentInitClientSelectionTests.cs (12)
104? defaults.Select(client => client.GetMcpConfigPath(selectedScope, workspace.WorkspaceRoot)).Distinct().Order(StringComparer.Ordinal) 106clients.Select(client => client.GetMcpConfigPath(selectedScope, workspace.WorkspaceRoot)) 643var paths = provider.GetServices<IAgentClient>().Select(client => client.GetMcpConfigPath(selectedScope, workspace.WorkspaceRoot)).Distinct().ToArray(); 814Assert.Equal(expectedPath, openCode.GetMcpConfigPath(scope, workspace.WorkspaceRoot)); 1083var path = client.GetMcpConfigPath(AgentConfigurationScope.Global, workspace.WorkspaceRoot); 1182var path = client.GetMcpConfigPath(scope, workspace.WorkspaceRoot); 1233var path = client.GetMcpConfigPath(scope, workspace.WorkspaceRoot); 1266var path = client.GetMcpConfigPath(scope, workspace.WorkspaceRoot); 1428var path = client.GetMcpConfigPath(AgentConfigurationScope.Global, workspace.WorkspaceRoot); 1476var mcpPath = client.GetMcpConfigPath(AgentConfigurationScope.Global, workspace.WorkspaceRoot); 1642Assert.True(File.Exists(context.Copilot.GetMcpConfigPath(AgentConfigurationScope.Global, context.Project))); 1649var mcpPath = context.Copilot.GetMcpConfigPath(AgentConfigurationScope.Global, context.Project);
Commands\AgentInitCommandTests.cs (4)
1366var path = context.OpenCode.GetMcpConfigPath(scope, context.Project); 1383Assert.True(File.Exists(context.Copilot.GetMcpConfigPath(scope, context.Project))); 1414client.GetMcpConfigPath(AgentConfigurationScope.Project, context.Project)))!; 1418Assert.True(File.Exists(context.Copilot.GetMcpConfigPath(AgentConfigurationScope.Project, context.Project)));