1 write to _logger
aspire (1)
Commands\McpStartCommand.cs (1)
42
_logger
= logger;
21 references to _logger
aspire (21)
Commands\McpStartCommand.cs (21)
99
_logger
.LogDebug("MCP ListTools request received");
130
_logger
.LogDebug(ex, "Failed to aggregate resource MCP tools");
133
_logger
.LogDebug("Returning {ToolCount} tools", tools.Count);
142
_logger
.LogDebug("MCP CallTool request received for tool: {ToolName}", toolName);
190
if (
_logger
.IsEnabled(LogLevel.Debug))
192
_logger
.LogDebug("Invoking tool {Name} with arguments {Arguments}", toolName, JsonSerializer.Serialize(args, BackchannelJsonSerializerContext.Default.DictionaryStringJsonElement));
205
_logger
.LogWarning("Unknown tool requested: {ToolName}", toolName);
226
_logger
.LogWarning("No Aspire AppHost is currently running");
236
_logger
.LogWarning("Dashboard is not available in the running AppHost");
244
_logger
.LogInformation(
270
_logger
.LogDebug("Calling tool {ToolName} on dashboard MCP server", toolName);
274
_logger
.LogDebug("Invoking CallToolAsync for tool {ToolName} with arguments: {Arguments}", toolName, arguments);
276
_logger
.LogDebug("Tool {ToolName} completed successfully", toolName);
281
_logger
.LogError(ex, "Error occurred while calling tool {ToolName}", toolName);
327
_logger
.LogDebug("Resources with MCP tools received: {Count}", resourcesWithTools.Count);
341
_logger
.LogDebug("{Tool}: {Description}", exposedName, tool.Description);
350
_logger
.LogDebug(ex, "Failed to refresh resource MCP tool routing map");
388
_logger
.LogDebug("Using explicitly selected AppHost: {AppHostPath}", selectedPath);
392
_logger
.LogWarning("Selected AppHost at '{SelectedPath}' is no longer running, falling back to selection logic", selectedPath);
402
_logger
.LogDebug("Using single in-scope AppHost: {AppHostPath}", inScopeConnections[0].AppHostInfo?.AppHostPath ?? "N/A");
426
_logger
.LogDebug(