xmcp
Version:
The TypeScript MCP framework
17 lines (16 loc) • 498 B
TypeScript
export interface X402ToolOptions {
price?: number;
currency?: string;
network?: string;
receipt?: boolean;
maxPaymentAge?: number;
description?: string;
}
export interface PaidHandler {
__x402: X402ToolOptions;
}
declare global {
var __XMCP_X402_REGISTRY: Map<string, X402ToolOptions> | undefined;
}
export declare function isPaidHandler(handler: unknown): handler is PaidHandler;
export declare function getX402Registry(): Map<string, X402ToolOptions> | undefined;