Skip to main content
Glama
ListResources.ts446 B
import type { GetArtworkByIdTool } from '../tools/GetArtworkByIdTool'; export class ListResources { constructor(private getArtworkByIdTool: GetArtworkByIdTool) {} public async handle() { return { resources: [ ...Array.from(this.getArtworkByIdTool.imageByTitle.keys()).map(title => ({ uri: `artic-image://${title}`, mimeType: 'image/jpeg', name: `${title}`, })), ], }; } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mikechao/artic-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server