@receiz/mcp-server
Version:
MCP server for agents building and verifying Receiz proof-native applications through the canonical Receiz SDK rails.
153 lines • 4.52 kB
TypeScript
import { sealReceizSourceBytes } from "./offlineSealing.js";
export declare const RECEIZ_OFFLINE_CRYSTAL_TOOLS: ({
name: string;
description: string;
inputSchema: {
type: string;
properties: {
sourceReference: {
type: string;
};
predecessorReference: {
type: string;
};
crystalReference?: undefined;
};
required: string[];
additionalProperties: boolean;
};
outputSchema: {
type: string;
properties: {
artifactReference: {
type: string;
};
artifactSha256: {
type: string;
};
suggestedFilename: {
type: string;
};
mimeType: {
type: string;
};
byteLength: {
type: string;
};
};
required: string[];
};
_meta: {
ui: {
resourceUri: string;
};
"openai/outputTemplate": string;
};
} | {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
crystalReference: {
type: string;
};
sourceReference?: undefined;
predecessorReference?: undefined;
};
required: string[];
additionalProperties: boolean;
};
outputSchema?: undefined;
_meta?: undefined;
})[];
/** Safe MCP projection; no carried source bytes enter model output. */
export declare function openReceizOfflineCrystal(bytes: Uint8Array, filename: string): Promise<{
verified: true;
artifactId: string;
artifactSha256: string;
headDigest: string;
nodeCount: number;
sources: {
artifactSha256: string;
filename: string;
}[];
signer: string;
mcpAuthority: false;
strongerTruth: "sealed-receiz-proof-object";
}>;
/** Trusted-host integration seam for any intelligence runtime. Only exact
* enclosing-proof-verified sources are returned, never an MCP response. */
export declare function readVerifiedReceizOfflineCrystalSources(bytes: Uint8Array, filename: string): Promise<{
artifactId: string;
artifactSha256: string;
headDigest: string;
sources: {
exactBytes: Uint8Array<ArrayBuffer>;
artifactSha256: string;
filename: string;
}[];
}>;
export declare function appendReceizOfflineCrystal(input: {
sourceReference: string;
predecessorReference?: string;
}, options: {
workspace: string;
} & Parameters<typeof sealReceizSourceBytes>[1]): Promise<{
crystal: {
verified: true;
artifactId: string;
artifactSha256: string;
headDigest: string;
nodeCount: number;
sources: {
artifactSha256: string;
filename: string;
}[];
signer: string;
mcpAuthority: false;
strongerTruth: "sealed-receiz-proof-object";
};
outputPath: string;
artifactReference: string;
artifactSha256: string;
suggestedFilename: string;
mimeType: string;
byteLength: number;
verification: Readonly<{
ok: boolean;
integrity: Readonly<{
ok: boolean;
errors: string[];
}>;
kind: "png" | "pdf" | "heic-box" | "trailer" | "bundle" | "folder_package" | "unknown";
errors: string[];
warnings: string[];
bundle: Readonly<Record<string, unknown>> | null;
anchor: Readonly<Record<string, unknown>> | null;
package: Readonly<Record<string, unknown>> | null;
assetContinuity?: import("@/packages/receiz-sdk/dist/verifier/types.js").ReceizLocalAssetContinuity;
denial?: Readonly<{
status: "operational-denial";
code: import("@receiz/sdk").ReceizProtocolLimitCode;
artifactValidity: "not-evaluated";
}>;
}>;
mcpAuthority: boolean;
strongerTruth: "sealed-receiz-proof-object";
}>;
export declare function openReceizOfflineCrystalReference(reference: string, workspace: string): Promise<{
verified: true;
artifactId: string;
artifactSha256: string;
headDigest: string;
nodeCount: number;
sources: {
artifactSha256: string;
filename: string;
}[];
signer: string;
mcpAuthority: false;
strongerTruth: "sealed-receiz-proof-object";
}>;
//# sourceMappingURL=offlineCrystal.d.ts.map