McpAppFingerprint
Namespace: Vercel.AI.Mcp
public static class McpAppFingerprintSHA-256 fingerprint of an MCP app resource.
Inheritance: object
Methods
Section titled “Methods”DetectDrift(string, string)
Section titled “DetectDrift(string, string)”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
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
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product