1 write to _logger
aspire (1)
Commands\AgentMcpCommand.cs (1)
62
_logger
= logger;
22 references to _logger
aspire (22)
Commands\AgentMcpCommand.cs (22)
127
_logger
.LogWarning(ex, "Failed to index aspire.dev documentation in background");
144
_logger
.LogDebug("MCP ListTools request received");
175
_logger
.LogDebug(ex, "Failed to aggregate resource MCP tools");
178
_logger
.LogDebug("Returning {ToolCount} tools", tools.Count);
187
_logger
.LogDebug("MCP CallTool request received for tool: {ToolName}", toolName);
235
if (
_logger
.IsEnabled(LogLevel.Debug))
237
_logger
.LogDebug("Invoking tool {Name} with arguments {Arguments}", toolName, JsonSerializer.Serialize(args, BackchannelJsonSerializerContext.Default.DictionaryStringJsonElement));
250
_logger
.LogWarning("Unknown tool requested: {ToolName}", toolName);
271
_logger
.LogWarning("No Aspire AppHost is currently running");
281
_logger
.LogWarning("Dashboard is not available in the running AppHost");
289
_logger
.LogInformation(
315
_logger
.LogDebug("Calling tool {ToolName} on dashboard MCP server", toolName);
319
_logger
.LogDebug("Invoking CallToolAsync for tool {ToolName} with arguments: {Arguments}", toolName, arguments);
321
_logger
.LogDebug("Tool {ToolName} completed successfully", toolName);
326
_logger
.LogError(ex, "Error occurred while calling tool {ToolName}", toolName);
372
_logger
.LogDebug("Resources with MCP tools received: {Count}", resourcesWithTools.Count);
386
_logger
.LogDebug("{Tool}: {Description}", exposedName, tool.Description);
395
_logger
.LogDebug(ex, "Failed to refresh resource MCP tool routing map");
438
_logger
.LogDebug("Using explicitly selected AppHost: {AppHostPath}", selectedPath);
442
_logger
.LogWarning("Selected AppHost at '{SelectedPath}' is no longer running, falling back to selection logic", selectedPath);
452
_logger
.LogDebug("Using single in-scope AppHost: {AppHostPath}", inScopeConnections[0].AppHostInfo?.AppHostPath ?? "N/A");
476
_logger
.LogDebug(