@thorium-dev-group/x402-mcp-extension
Version:
X402-MCP Protocol Extension
18 lines (17 loc) • 909 B
TypeScript
import 'reflect-metadata';
import { z } from 'zod';
import { PaymentOptions } from './PaymentOptions';
export declare const METADATA_KEY_MCP_PROMPT = "x402_mcp_protocol:mcp_prompt";
export interface MCPPromptOptions {
name: string;
description?: string;
argsSchema?: z.ZodRawShape;
title?: string;
payment?: PaymentOptions;
_meta?: object;
}
export declare function MCPPrompt(options: MCPPromptOptions): (target: any, propertyKey: string | symbol) => void;
export declare function isMCPPrompt(target: Object, propertyKey: string | symbol): boolean;
export declare function getMCPPromptOptions(target: Object, propertyKey: string | symbol): MCPPromptOptions | undefined;
export declare function isPaymentRequired(target: Object, propertyKey: string | symbol): boolean;
export declare function getPaymentOptions(target: Object, propertyKey: string | symbol): PaymentOptions | undefined;