We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MikeORed/catalog-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
list-datasets-use-case.ts•634 B
import type { DatasetStoragePort } from '../ports/secondary/dataset-storage-port.js';
import type { DatasetSchema } from '../domain/entities/dataset-schema.js';
/**
* Use case for listing all available datasets.
*
* Returns schema information for all datasets in the catalog,
* allowing clients to discover what data is available.
*/
export class ListDatasetsUseCase {
constructor(private readonly storage: DatasetStoragePort) {}
/**
* Execute the list datasets operation.
*
* @returns Array of all dataset schemas
*/
async execute(): Promise<DatasetSchema[]> {
return this.storage.listSchemas();
}
}