Skip to content

McpAppFingerprint

Namespace: Vercel.AI.Mcp

public static class McpAppFingerprint

SHA-256 fingerprint of an MCP app resource.

Inheritance: object

View source

public static bool DetectDrift(string current, string baseline)

True when the current fingerprint differs from the baseline.

Parameters

Name Type Description
current string
baseline string

Returns: bool

View source

Fingerprint(string, JsonElement?, JsonElement?)

Section titled “Fingerprint(string, JsonElement?, JsonElement?)”
public static string Fingerprint(string html, JsonElement? csp, JsonElement? permissions)

Stable base64url SHA-256 of html, csp, and permissions. Object keys are sorted.

Parameters

Name Type Description
html string
csp JsonElement?
permissions JsonElement?

Returns: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product