UNPKG

xmcp

Version:

The TypeScript MCP framework

8 lines (7 loc) • 618 B
import type { AudioContent, EmbeddedResource, ImageContent } from "@modelcontextprotocol/server"; /** Create an MCP image content block from raw bytes. */ export declare function image(bytes: Uint8Array | ArrayBuffer, mimeType: string): ImageContent; /** Create an MCP audio content block from raw bytes. */ export declare function audio(bytes: Uint8Array | ArrayBuffer, mimeType: string): AudioContent; /** Embed text or binary resource contents without registering a resource. */ export declare function embeddedResource(uri: string, content: string | Uint8Array | ArrayBuffer, mimeType?: string): EmbeddedResource;