3 implementations of GetMcpConfigPath
aspire (3)
Agents\ClaudeCode\ClaudeCodeAgentClient.cs (1)
58public string GetMcpConfigPath(AgentConfigurationScope scope, DirectoryInfo workspaceRoot)
Agents\Copilot\CopilotAgentClient.cs (1)
70public string GetMcpConfigPath(AgentConfigurationScope scope, DirectoryInfo workspaceRoot)
Agents\OpenCode\OpenCodeAgentClient.cs (1)
124public string GetMcpConfigPath(AgentConfigurationScope scope, DirectoryInfo workspaceRoot)
19 references to GetMcpConfigPath
aspire (2)
Commands\AgentInitCommand.cs (2)
1013var paths = clients.Select(client => client.GetMcpConfigPath(scope, workspaceRoot)) 1019client.GetMcpConfigPath(scope, workspaceRoot)))]);
Aspire.Cli.Tests (17)
Agents\AgentConfigurationTestContext.cs (1)
81client.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 (9)
183? defaults.Select(client => client.GetMcpConfigPath(selectedScope, workspace.WorkspaceRoot)).Distinct().Order(StringComparer.Ordinal) 185clients.Select(client => client.GetMcpConfigPath(selectedScope, workspace.WorkspaceRoot)) 571var paths = provider.GetServices<IAgentClient>().Select(client => client.GetMcpConfigPath(selectedScope, workspace.WorkspaceRoot)).Distinct().ToArray(); 740Assert.Equal(expectedPath, openCode.GetMcpConfigPath(scope, workspace.WorkspaceRoot)); 1006var path = client.GetMcpConfigPath(AgentConfigurationScope.Global, workspace.WorkspaceRoot); 1104var path = client.GetMcpConfigPath(scope, workspace.WorkspaceRoot); 1155var path = client.GetMcpConfigPath(scope, workspace.WorkspaceRoot); 1188var path = client.GetMcpConfigPath(scope, workspace.WorkspaceRoot); 1381Assert.True(File.Exists(context.Copilot.GetMcpConfigPath(AgentConfigurationScope.Global, context.Project)));
Commands\AgentInitCommandTests.cs (5)
408Assert.False(File.Exists(client.GetMcpConfigPath(AgentConfigurationScope.Project, workspace.WorkspaceRoot)))); 1313var path = context.OpenCode.GetMcpConfigPath(scope, context.Project); 1331Assert.True(File.Exists(context.Copilot.GetMcpConfigPath(scope, context.Project))); 1361client.GetMcpConfigPath(AgentConfigurationScope.Project, context.Project)))!; 1365Assert.True(File.Exists(context.Copilot.GetMcpConfigPath(AgentConfigurationScope.Project, context.Project)));