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); 190if (_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(