import { NextResponse } from 'next/server';
import { resolve } from '../../../lib/server-container.js';
export async function GET() {
    try {
        const useCase = resolve('ListToolsUseCase');
        const tools = await useCase.execute();
        return NextResponse.json(tools);
    }
    catch (error) {
        const message = error instanceof Error ? error.message : 'Failed to list tools';
        return NextResponse.json({ error: message }, { status: 500 });
    }
}
