@receiz/mcp-server
Version:
MCP server for agents building and verifying Receiz proof-native applications through the canonical Receiz SDK rails.
93 lines • 3.18 kB
TypeScript
export declare class ArtifactInputError extends Error {
readonly code: string;
readonly stage: "attachment_authorization" | "download" | "file_reading" | "canonical_verification";
constructor(code: string, stage: "attachment_authorization" | "download" | "file_reading" | "canonical_verification");
}
export declare const RECEIZ_VERIFY_UPLOADED_ARTIFACT_TOOL: {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
file: {
type: string;
properties: {
download_url: {
type: string;
};
file_id: {
type: string;
};
mime_type: {
type: string;
};
file_name: {
type: string;
};
};
required: string[];
additionalProperties: boolean;
};
};
required: string[];
additionalProperties: boolean;
};
annotations: {
readOnlyHint: boolean;
destructiveHint: boolean;
openWorldHint: boolean;
idempotentHint: boolean;
};
_meta: {
"openai/fileParams": string[];
};
};
/** Host configuration only; never accept permitted origins through a tool call.
* The enclosing relay authenticates the request owner and retains exact attempts.
* A selected file's capability URL grants retrieval only, never artifact authority.
*/
export declare function readAuthorizedUploadedArtifact(raw: unknown, options?: {
allowedOrigins?: readonly string[];
fetch?: typeof globalThis.fetch;
}): Promise<{
bytes: Uint8Array<ArrayBufferLike>;
filename: string;
mimeType: string | undefined;
transport: {
byteLength: number;
sha256: string;
authority: boolean;
};
}>;
export declare function verifyUploadedArtifact(raw: unknown, options?: {
allowedOrigins?: readonly string[];
fetch?: typeof globalThis.fetch;
}): Promise<{
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("@/packages/receiz-sdk/dist/verificationLimits.js").ReceizProtocolLimitCode;
artifactValidity: "not-evaluated";
}>;
}>;
verdictObtained: boolean;
transport: {
byteLength: number;
sha256: string;
authority: boolean;
};
mcpAuthority: boolean;
}>;
//# sourceMappingURL=uploadedArtifact.d.ts.map