Skip to content

evidence-report-mcp / verify

Function: verify() ​

ts
function verify(target: 
  | {
  ecosystem: "npm" | "PyPI" | "Go" | "Maven" | "crates.io" | "NuGet" | "RubyGems";
  kind: "package";
  name: string;
  version: string;
}
  | {
  assetId?: string;
  kind: "dataset";
  records: unknown[];
  schema: Record<string, unknown>;
}
  | {
  kind: "file";
  path: string;
}
  | {
  kind: "claim";
  sources: string[];
  text: string;
}): Promise<EvidenceReport>;

Defined in: server.ts:81

Runs every check for a target and returns the evidence report. Checks never throw: a check that fails to run is reported with status error.

Parameters ​

target ​

| { ecosystem: "npm" | "PyPI" | "Go" | "Maven" | "crates.io" | "NuGet" | "RubyGems"; kind: "package"; name: string; version: string; } | { assetId?: string; kind: "dataset"; records: unknown[]; schema: Record<string, unknown>; } | { kind: "file"; path: string; } | { kind: "claim"; sources: string[]; text: string; }

What to verify: a package, a dataset, a file or a claim.

Type Literal ​

{ assetId?: string; kind: "dataset"; records: unknown[]; schema: Record<string, unknown>; }

What to verify: a package, a dataset, a file or a claim.

assetId? ​

string = ...

Optional asset id in an observability tool (freshness, volume, lineage).

kind ​

"dataset" = ...

records ​

unknown[] = ...

Records to validate. Keep samples small; this is not a warehouse scan.

schema ​

Record<string, unknown> = ...

Inline JSON Schema the data must satisfy (the "contract").


Type Literal ​

{ kind: "file"; path: string; }

What to verify: a package, a dataset, a file or a claim.

kind ​

"file" = ...

path ​

string = ...

Local path of an image/video/audio file to check for C2PA credentials.


Type Literal ​

{ kind: "claim"; sources: string[]; text: string; }

What to verify: a package, a dataset, a file or a claim.

kind ​

"claim" = ...

sources ​

string[] = ...

Sources the agent is relying on. Never verified against the agent's own output.

text ​

string = ...

Returns ​

Promise<EvidenceReport>

The report, with the verdict, each check's evidence and what was not checked.