using Microsoft.Extensions.Logging;

namespace ColaFlow.Modules.Mcp.Application.Handlers;

/// <summary>
/// Handler for the 'tools/list' MCP method
/// </summary>
public class ToolsListMethodHandler(ILogger<ToolsListMethodHandler> logger) : IMcpMethodHandler
{
    public string MethodName => "tools/list";

    public Task<object?> HandleAsync(object? @params, CancellationToken cancellationToken)
    {
        logger.LogDebug("Handling tools/list request");

        // TODO: Implement in Story 5.11 (Core MCP Tools)
        // For now, return empty list
        var response = new
        {
            tools = Array.Empty<object>()
        };

        return Task.FromResult<object?>(response);
    }
}
