@certscore/mcp 0.2.12 → 0.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -141,7 +141,7 @@ export async function getCertScoreMcpDoctorReport(options = {}) {
141
141
  exitCode = 1;
142
142
  }
143
143
  }
144
- lines.push("CertScore outputs are automated public-web observations for review, not legal advice, certification, or a compliance determination.");
144
+ lines.push("CertScore outputs are automated public-web observations for human and agentic review, not legal advice, certification, or a compliance determination.");
145
145
  return { exitCode, lines };
146
146
  }
147
147
  function isMainModule() {
package/dist/server.d.ts CHANGED
@@ -1,11 +1,53 @@
1
1
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ import type { RequestInfo } from "@modelcontextprotocol/sdk/types.js";
2
3
  export interface CertScoreMcpOptions {
3
4
  apiKey?: string;
4
5
  baseUrl?: string;
5
6
  forwardedClientIp?: string | null;
7
+ resolveForwardedClientIp?: (headers: RequestInfo["headers"]) => string | null;
8
+ resolveAnonymousRequesterSession?: () => string | null;
6
9
  anonymousRequesterSecret?: string | null;
10
+ anonymousSurface?: "mcp_light" | "mcp_anonymous" | null;
7
11
  timeout?: number;
8
12
  toolProfile?: "full" | "light";
13
+ exampleDomainDemoUrl?: string | null;
14
+ onToolInvocation?: (observation: McpToolInvocationObservation, requestContext: McpToolInvocationRequestContext) => void | Promise<void>;
9
15
  }
16
+ export type McpToolInvocationRequestContext = {
17
+ headers: RequestInfo["headers"] | null;
18
+ };
19
+ export type McpToolInvocationObservation = {
20
+ durationMs: number;
21
+ errorCode: string | null;
22
+ freshness: "latest" | "refresh" | null;
23
+ isCanary: boolean;
24
+ outcome: "success" | "error" | "rate_limited";
25
+ quotaOutcome: "allowed" | "rate_limited";
26
+ requestedResource: string | null;
27
+ requestedResourceType: "url" | "domain" | "scan_id" | "job_id" | null;
28
+ scanDecision: "reused" | "new" | "unavailable" | "not_applicable";
29
+ scanFrom: "eu_de" | "eu_ie" | "california" | null;
30
+ scanId: string | null;
31
+ scanStatus: string | null;
32
+ targetHostname: string | null;
33
+ toolName: string;
34
+ transportOutcome: "mcp_result" | "mcp_error";
35
+ };
36
+ export declare function resolveMcpScanSiteWaitBudget(input: {
37
+ maxWaitSeconds?: number;
38
+ startedAtMs: number;
39
+ nowMs: number;
40
+ }): {
41
+ elapsedMs: number;
42
+ remainingWaitMs: number;
43
+ responseReserveMs: number;
44
+ totalBudgetMs: number;
45
+ };
46
+ export declare function projectMcpToolInvocationObservation(input: {
47
+ args: unknown;
48
+ durationMs: number;
49
+ result: unknown;
50
+ toolName: string;
51
+ }): McpToolInvocationObservation;
10
52
  export declare function createCertScoreMcpServer(options?: CertScoreMcpOptions): McpServer;
11
53
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAIpE,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAChC;AAwDD,wBAAgB,wBAAwB,CAAC,OAAO,GAAE,mBAAwB,aA2SzE"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAItE,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CA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