@certscore/mcp 0.2.6 → 0.2.7
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/README.md +1 -1
- package/dist/certscore-mcp.mjs +16 -21
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +18 -18
- package/package.json +11 -12
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
CertScore MCP exposes a focused Model Context Protocol server for CertScore Pulse workflows.
|
|
4
4
|
|
|
5
|
-
Status: public developer preview. Version 0.2.
|
|
5
|
+
Status: public developer preview. Version 0.2.7 is available as a Homebrew/npm stdio server and as a hosted OAuth-protected Streamable HTTP service. Local WC01 development uses `pnpm mcp:certscore`.
|
|
6
6
|
|
|
7
7
|
Public docs:
|
|
8
8
|
|
package/dist/certscore-mcp.mjs
CHANGED
|
@@ -32665,28 +32665,23 @@ function toToolResult(payload) {
|
|
|
32665
32665
|
};
|
|
32666
32666
|
}
|
|
32667
32667
|
function toToolError(error2) {
|
|
32668
|
-
|
|
32669
|
-
|
|
32670
|
-
|
|
32671
|
-
|
|
32672
|
-
|
|
32673
|
-
|
|
32674
|
-
|
|
32675
|
-
|
|
32676
|
-
|
|
32677
|
-
|
|
32678
|
-
|
|
32679
|
-
|
|
32680
|
-
|
|
32681
|
-
}
|
|
32682
|
-
}
|
|
32668
|
+
const payload = error2 instanceof CertScoreError ? {
|
|
32669
|
+
error: {
|
|
32670
|
+
name: error2.name,
|
|
32671
|
+
message: error2.message,
|
|
32672
|
+
status: error2.status,
|
|
32673
|
+
code: error2.code,
|
|
32674
|
+
retryAfterSeconds: "retryAfterSeconds" in error2 ? error2.retryAfterSeconds : void 0,
|
|
32675
|
+
responseBody: truncateErrorResponseBody(error2.responseBody)
|
|
32676
|
+
}
|
|
32677
|
+
} : {
|
|
32678
|
+
error: {
|
|
32679
|
+
name: error2 instanceof Error ? error2.name : "Error",
|
|
32680
|
+
message: error2 instanceof Error ? error2.message : "Unknown CertScore MCP error."
|
|
32681
|
+
}
|
|
32682
|
+
};
|
|
32683
32683
|
return {
|
|
32684
|
-
|
|
32685
|
-
error: {
|
|
32686
|
-
name: error2 instanceof Error ? error2.name : "Error",
|
|
32687
|
-
message: error2 instanceof Error ? error2.message : "Unknown CertScore MCP error."
|
|
32688
|
-
}
|
|
32689
|
-
}),
|
|
32684
|
+
content: [{ type: "text", text: JSON.stringify(payload) }],
|
|
32690
32685
|
isError: true
|
|
32691
32686
|
};
|
|
32692
32687
|
}
|
package/dist/tools.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAkB,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGvI,eAAO,MAAM,yBAAyB,SAAU,CAAC;AAKjD,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,CAa7D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAkB,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGvI,eAAO,MAAM,yBAAyB,SAAU,CAAC;AAKjD,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,CAa7D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,cAA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25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
isError: true
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
...toToolResult({
|
|
22
|
+
const payload = error instanceof CertScoreError
|
|
23
|
+
? {
|
|
24
|
+
error: {
|
|
25
|
+
name: error.name,
|
|
26
|
+
message: error.message,
|
|
27
|
+
status: error.status,
|
|
28
|
+
code: error.code,
|
|
29
|
+
retryAfterSeconds: "retryAfterSeconds" in error ? error.retryAfterSeconds : undefined,
|
|
30
|
+
responseBody: truncateErrorResponseBody(error.responseBody)
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
: {
|
|
39
34
|
error: {
|
|
40
35
|
name: error instanceof Error ? error.name : "Error",
|
|
41
36
|
message: error instanceof Error ? error.message : "Unknown CertScore MCP error."
|
|
42
37
|
}
|
|
43
|
-
}
|
|
38
|
+
};
|
|
39
|
+
// MCP validates structuredContent against the tool's success output schema,
|
|
40
|
+
// including for isError results. Keep errors in text content so a bounded
|
|
41
|
+
// error envelope cannot be rejected as an invalid success resource.
|
|
42
|
+
return {
|
|
43
|
+
content: [{ type: "text", text: JSON.stringify(payload) }],
|
|
44
44
|
isError: true
|
|
45
45
|
};
|
|
46
46
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@certscore/mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"mcpName": "ai.certscore/mcp",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "MCP server for CertScore public website risk-signal workflows.",
|
|
@@ -46,14 +46,6 @@
|
|
|
46
46
|
"url": "https://certscore.ai/contact",
|
|
47
47
|
"email": "support@certscore.ai"
|
|
48
48
|
},
|
|
49
|
-
"scripts": {
|
|
50
|
-
"build": "tsc -p tsconfig.json && esbuild src/index.ts --bundle --platform=node --format=esm --target=node20 --banner:js='#!/usr/bin/env node' --outfile=dist/certscore-mcp.mjs",
|
|
51
|
-
"bundle": "esbuild src/index.ts --bundle --platform=node --format=esm --target=node20 --banner:js='#!/usr/bin/env node' --outfile=dist/certscore-mcp.mjs",
|
|
52
|
-
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
53
|
-
"test": "node --import tsx --test src/*.test.ts",
|
|
54
|
-
"prepack": "pnpm run build",
|
|
55
|
-
"clean": "rm -rf dist"
|
|
56
|
-
},
|
|
57
49
|
"keywords": [
|
|
58
50
|
"certscore",
|
|
59
51
|
"pulse",
|
|
@@ -67,7 +59,14 @@
|
|
|
67
59
|
"zod": "^3.25.76"
|
|
68
60
|
},
|
|
69
61
|
"devDependencies": {
|
|
70
|
-
"@certscore/api-contracts": "
|
|
71
|
-
"@certscore/sdk": "
|
|
62
|
+
"@certscore/api-contracts": "0.1.0",
|
|
63
|
+
"@certscore/sdk": "0.2.4"
|
|
64
|
+
},
|
|
65
|
+
"scripts": {
|
|
66
|
+
"build": "tsc -p tsconfig.json && esbuild src/index.ts --bundle --platform=node --format=esm --target=node20 --banner:js='#!/usr/bin/env node' --outfile=dist/certscore-mcp.mjs",
|
|
67
|
+
"bundle": "esbuild src/index.ts --bundle --platform=node --format=esm --target=node20 --banner:js='#!/usr/bin/env node' --outfile=dist/certscore-mcp.mjs",
|
|
68
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
69
|
+
"test": "node --import tsx --test src/*.test.ts",
|
|
70
|
+
"clean": "rm -rf dist"
|
|
72
71
|
}
|
|
73
|
-
}
|
|
72
|
+
}
|
package/server.json
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
"url": "https://github.com/ergoveritas1-alt/certscore.ai",
|
|
8
8
|
"source": "github"
|
|
9
9
|
},
|
|
10
|
-
"version": "0.2.
|
|
10
|
+
"version": "0.2.7",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registryType": "npm",
|
|
14
14
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
15
15
|
"identifier": "@certscore/mcp",
|
|
16
|
-
"version": "0.2.
|
|
16
|
+
"version": "0.2.7",
|
|
17
17
|
"transport": {
|
|
18
18
|
"type": "stdio"
|
|
19
19
|
},
|