xmcp
Version:
The TypeScript MCP framework
10 lines (9 loc) • 376 B
TypeScript
import type { ComponentMetadata } from "@/types/component";
/** Keep framework options off the wire and put tags in the MCP metadata map. */
export declare function toMcpMetadata<T extends ComponentMetadata & {
_meta?: Record<string, unknown>;
}>(metadata: T): Omit<T, "tags" | "enabled"> & {
_meta: T["_meta"] | {
"xmcp/tags": string[];
} | undefined;
};