UNPKG

@receiz/mcp-server

Version:

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

74 lines • 5.58 kB
import { planReceizSubjectMessageEventV125, applyReceizSubjectMessageEventV125 } from "@receiz/sdk"; import { type ReceizV125TrustExternalConfiguration } from "./v125TrustExternal.js"; import { planReceizSubjectPresenceEventV125, applyReceizSubjectPresenceEventV125, createReceizAttestationAuthorityV125, type ReceizAttestationAuthorityOptionsV125, planReceizInitialAttestationSourceV125, planReceizInitialCredentialSourceV125, applyReceizInitialSourceV125, type ReceizInitialSourcePlanV125, verifyReceizCredentialPresentationV125, approveReceizPbiCeremonyV125, verifyReceizPbiCeremonyReceiptV125, planReceizCredentialLifecycleEventV125, applyReceizCredentialLifecycleEventV125, planReceizAttestationEventV125, type ReceizClient, type ReceizSubjectRelationshipEventPlanV125 } from "@receiz/sdk"; import { type ReceizMcpV124CallOptions } from "./v124Operations.js"; import type { ReceizV125TrustMcpHost } from "./v125TrustOperations.js"; export declare const isReceizV125TrustMcpHost: (host: ReceizV125TrustMcpHost) => boolean; export declare function assertReceizV125TrustMcpHostScope(host: ReceizV125TrustMcpHost, scope: Readonly<{ client: object; applicationAudience: string | null; }>): void; type SubjectApplyInput = Parameters<ReceizClient["subjectCoordination"]["applyRelationship"]>[0]; type PresencePlan = Awaited<ReturnType<typeof planReceizSubjectPresenceEventV125>>; type PresenceExecution = Pick<Parameters<typeof applyReceizSubjectPresenceEventV125>[0], "capability" | "sealer" | "store">; type CredentialPlan = Awaited<ReturnType<typeof planReceizCredentialLifecycleEventV125>>; type CredentialExecution = Pick<Parameters<typeof applyReceizCredentialLifecycleEventV125>[0], "capability" | "sealer" | "store">; type AttestationPlan = Awaited<ReturnType<typeof planReceizAttestationEventV125>>; type InitialAttestationInput = Parameters<typeof planReceizInitialAttestationSourceV125>[0]; type InitialCredentialInput = Parameters<typeof planReceizInitialCredentialSourceV125>[0]; type InitialMaterial = (Omit<InitialAttestationInput, "authority" | "verifiedActorEvidence"> | Omit<InitialCredentialInput, "authority" | "verifiedActorEvidence" | "verifier">) & Readonly<{ domainReference: string; }>; type InitialExecution = Pick<Parameters<typeof applyReceizInitialSourceV125>[0], "capability" | "sealer" | "store">; type PresentationVerificationInput = Parameters<typeof verifyReceizCredentialPresentationV125>[0]; type PbiApprovalInput = Parameters<typeof approveReceizPbiCeremonyV125>[0]; type PbiVerificationInput = Parameters<typeof verifyReceizPbiCeremonyReceiptV125>[0]; type PresentationMaterial = Readonly<{ domainReference: string; sourceArtifact: ReceizAttestationAuthorityOptionsV125["domainAuthorityArtifact"]; presentation: PresentationVerificationInput["presentation"]; holderPresence?: PresentationVerificationInput["holderPresence"]; }>; /** Named SDK bindings; private references and confirmation never grant proof authority. */ export declare function createReceizV125TrustMcpOperations(input: Readonly<{ client: ReceizClient; applicationAudience: string; materialOptions?: Pick<ReceizMcpV124CallOptions, "resolveMaterial" | "persistMaterial">; credentialPresentation?: Readonly<{ resolvePbiAuthorship?(request: Readonly<{ sourceArtifact: PresentationMaterial["sourceArtifact"]; authority: Awaited<ReturnType<typeof createReceizAttestationAuthorityV125>>; }>): Promise<NonNullable<PresentationVerificationInput["verifyPbiAuthorship"]>>; handoff?: Readonly<{ origin: string; nfcAvailable: boolean; maximumNfcPayloadBytes?: number; }>; }>; pbiCeremony?: Readonly<{ resolveAuthorshipVerifier(request: Pick<PbiApprovalInput["challenge"], "proofObjectId" | "acceptedHead" | "holderReceizId">): Promise<PbiApprovalInput["verifyPbiAuthorship"]>; resolveHolderSigner?(challenge: PbiApprovalInput["challenge"]): Promise<Pick<PbiApprovalInput, "keyFile" | "passphrase">>; replayGuard?: PbiVerificationInput["replayGuard"]; }>; attestation?: Pick<ReceizAttestationAuthorityOptionsV125, "resolveAdmittedGrantor" | "resolveEvidenceArtifact"> & Readonly<{ resolveInitialActorEvidence?(request: Readonly<{ kind: "attestation" | "credential"; material: InitialMaterial; }>): Promise<InitialAttestationInput["verifiedActorEvidence"]>; resolveInitialCommitAuthority?(plan: ReceizInitialSourcePlanV125): Promise<InitialExecution>; resolveCredentialCommitAuthority?(plan: CredentialPlan): Promise<CredentialExecution>; resolveAttestationCommitAuthority?(plan: AttestationPlan): Promise<CredentialExecution>; }>; externalExecution?: ReceizV125TrustExternalConfiguration; subjectMessage?: Readonly<{ resolveCommitAuthority(plan: Awaited<ReturnType<typeof planReceizSubjectMessageEventV125>>): Promise<Pick<Parameters<typeof applyReceizSubjectMessageEventV125>[0], "signedCapability" | "sealer" | "store">>; }>; subjectCoordination?: Readonly<{ verifyPbiAuthorship: SubjectApplyInput["verifyPbiAuthorship"]; replayGuard: SubjectApplyInput["replayGuard"]; resolveCommitAuthority(plan: ReceizSubjectRelationshipEventPlanV125): Promise<Required<Pick<SubjectApplyInput, "capability" | "sealer" | "store">>>; resolvePresenceCommitAuthority?(plan: PresencePlan): Promise<PresenceExecution>; }>; }>): ReceizV125TrustMcpHost; export {}; //# sourceMappingURL=v125TrustHost.d.ts.map