@receiz/mcp-server
Version:
MCP server for agents building and verifying Receiz proof-native applications through the canonical Receiz SDK rails.
42 lines • 2.65 kB
TypeScript
/** Host execution scope, beneath existing proof admission. Does not filter discovery. */
export declare const RECEIZ_MARKETPLACE_EXECUTION_PROFILE: "marketplace-phi";
/** Exact dispatch bindings, not keyword classification. Historical routes have no
* current implementation: their arbitrary JSON commerce contracts cannot prove
* Phi execution merely because the caller supplies currency: "phi".
* Evidence: SDK index.ts commerce/jobs; oneClickCheckout; twinTrading.server.ts
* createTwinMarketIntentForSession/approveTwinMarketIntentForSession.
*/
export declare const RECEIZ_MARKETPLACE_RESTRICTED_OPERATIONS: Readonly<{
readonly receiz_commerce_one_click_checkout: "commerce.oneClickCheckout";
readonly receiz_commerce_refunds_create: "commerce.refunds.create";
readonly receiz_commerce_subscriptions_create: "commerce.subscriptions.create";
readonly receiz_commerce_gift_cards_issue: "commerce.giftCards.issue";
readonly receiz_commerce_gift_cards_redeem: "commerce.giftCards.redeem";
readonly receiz_commerce_payouts_create: "commerce.payouts.create";
readonly receiz_commerce_discounts_redeem: "commerce.discounts.redeem";
readonly receiz_twin_create_market_intent: "twin.createMarketIntent";
readonly receiz_twin_approve_market_intent: "twin.approveMarketIntent";
readonly receiz_jobs_enqueue: "jobs.enqueue";
}>;
export declare class ReceizMarketplaceExecutionError extends Error {
readonly operation: string;
readonly reason: string;
readonly code = "receiz_marketplace_execution_restricted";
constructor(operation: string, reason: string);
}
/** Invoke before MCP dispatch, including the standalone v127 SDK dispatcher.
* Ordinary inspection, local simulations, sealed proof, identity, world,
* ownership and canonical Phi Settlement/Reserve operations remain available.
*/
export declare function assertReceizMarketplaceToolCall(name: string, args?: unknown): void;
/** Reuse the existing atomic planner to validate the exact platform operation.
* This is execution scope, never proof admission or a replacement verifier.
* Custom reducers are not classified from their names or untrusted payloads.
*/
export declare function assertReceizMarketplaceAtomicPlan(value: unknown): Promise<void>;
/** Wrap the exact SDK methods used by dispatch. Scope is retained in closures;
* caller arguments cannot disable it. Unrelated methods keep their receiver.
* This is not a sandbox for arbitrary code holding the original SDK client.
*/
export declare function wrapReceizMarketplaceClient<T extends object>(client: T): T;
//# sourceMappingURL=marketplaceExecutionPolicy.d.ts.map