UNPKG

@receiz/mcp-server

Version:

MCP server for agents building and verifying Receiz proof-native applications through the canonical Receiz SDK rails.

52 lines • 2.12 kB
import { type ReceizHttpOperationSupport, type ReceizClient } from "@receiz/sdk"; type JsonObject = Record<string, unknown>; type Argument = "body" | "body?" | "query" | "query?" | "options?" | "subscriptionId" | "eventId" | "jobId" | "endpointId" | "intentId"; type Definition = Readonly<{ name: string; sdkMethod: string; arguments: readonly Argument[]; mutation: boolean; requiresDelegated: boolean; requiredPayload: readonly string[]; invoke: (client: ReceizClient, args: JsonObject) => unknown; }>; export declare const RECEIZ_V127_SDK_OPERATION_MAP: Readonly<Record<string, Definition & ReceizHttpOperationSupport>>; export declare const RECEIZ_V127_SDK_TOOLS: { name: string; description: string; inputSchema: JsonObject; annotations: { readOnlyHint: boolean; destructiveHint: boolean; openWorldHint: boolean; }; }[]; /** Reusable local exact-argument consent custody. This never admits proof. */ export declare function createReceizSdkMutationConsent(): (operation: string, args: JsonObject, confirmation?: unknown) => { schema: string; status: string; operation: string; arguments: JsonObject; confirmationDigest: string; confirmationRequired: boolean; writesPerformed: number; authority: string; } | undefined; /** Checkout clientSecret is host credential material, never model-visible * receipt or payment proof. Keep its exact value in the private MCP channel. */ export declare function projectReceizFinancialToolResult(name: string, value: unknown): { credentials?: JsonObject | undefined; publicResult: unknown; }; /** Confirmation is local consent custody, never admission or proof authority. */ export declare function createReceizV127SdkOperations(input: { client: ReceizClient; ensureDelegated: () => void; executionProfile?: "marketplace-phi" | "marketplace-nonfinancial"; }): { handles(name: string): boolean; requiresDelegated(name: string): boolean; call(name: string, raw?: unknown): Promise<unknown>; }; export {}; //# sourceMappingURL=v127SdkOperations.d.ts.map