Skip to main content
Glama

Scenario Word

by HyunJuHwan
ImagestyleResource.ts578 B
import { MCPResource, ResourceContent } from "mcp-framework"; class ImagestyleResource extends MCPResource { uri = "resource://imageStyle"; name = "Imagestyle"; description = "Imagestyle resource description"; mimeType = "application/json"; readonly list = [ { id: '2d', label: '2D 스타일' }, { id: '3d', label: '3D 스타일' } ]; async read(): Promise<ResourceContent[]> { return [ { uri: this.uri, mimeType: this.mimeType, text: JSON.stringify(this.list), }, ]; } } export default ImagestyleResource;

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/HyunJuHwan/mcp-server'

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