@peac/mcp-server 0.11.3 → 0.12.0-preview.2
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/cli.cjs +77 -59
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +78 -60
- package/dist/cli.mjs.map +1 -1
- package/dist/handlers/issue.d.ts +2 -2
- package/dist/handlers/issue.d.ts.map +1 -1
- package/dist/handlers/verify.d.ts.map +1 -1
- package/dist/index.cjs +77 -59
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +78 -60
- package/dist/index.mjs.map +1 -1
- package/dist/schemas/issue.d.ts +35 -20
- package/dist/schemas/issue.d.ts.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/manifest.json +1 -1
- package/package.json +5 -5
- package/server.json +2 -2
package/dist/schemas/issue.d.ts
CHANGED
|
@@ -1,23 +1,38 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Issue tool schemas --
|
|
2
|
+
* Issue tool schemas -- Wire 0.2 only (DD-57, DD-156)
|
|
3
|
+
*
|
|
4
|
+
* The MCP peac_issue tool accepts Wire 0.2 fields exclusively.
|
|
5
|
+
* No wire_version discriminator: the MCP server is a forward-looking
|
|
6
|
+
* adoption surface; agents should only issue Wire 0.2 receipts.
|
|
3
7
|
*/
|
|
4
8
|
import { z } from 'zod';
|
|
5
9
|
export declare const IssueInputSchema: z.ZodObject<{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
kind: z.ZodEnum<{
|
|
11
|
+
evidence: "evidence";
|
|
12
|
+
challenge: "challenge";
|
|
13
|
+
}>;
|
|
14
|
+
type: z.ZodString;
|
|
15
|
+
sub: z.ZodOptional<z.ZodString>;
|
|
16
|
+
pillars: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
17
|
+
attribution: "attribution";
|
|
18
|
+
identity: "identity";
|
|
19
|
+
purpose: "purpose";
|
|
20
|
+
access: "access";
|
|
21
|
+
commerce: "commerce";
|
|
22
|
+
compliance: "compliance";
|
|
23
|
+
consent: "consent";
|
|
24
|
+
privacy: "privacy";
|
|
25
|
+
provenance: "provenance";
|
|
26
|
+
safety: "safety";
|
|
27
|
+
}>>>;
|
|
28
|
+
occurred_at: z.ZodOptional<z.ZodString>;
|
|
29
|
+
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
30
|
+
policy: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
uri: z.ZodString;
|
|
32
|
+
version: z.ZodOptional<z.ZodString>;
|
|
33
|
+
digest: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
19
35
|
ttl_seconds: z.ZodOptional<z.ZodNumber>;
|
|
20
|
-
kind: z.ZodOptional<z.ZodString>;
|
|
21
36
|
}, z.core.$strip>;
|
|
22
37
|
export type IssueInput = z.infer<typeof IssueInputSchema>;
|
|
23
38
|
export declare const IssueOutputSchema: z.ZodObject<{
|
|
@@ -30,12 +45,12 @@ export declare const IssueOutputSchema: z.ZodObject<{
|
|
|
30
45
|
jws: z.ZodString;
|
|
31
46
|
claimsSummary: z.ZodObject<{
|
|
32
47
|
iss: z.ZodString;
|
|
33
|
-
|
|
48
|
+
kind: z.ZodString;
|
|
49
|
+
type: z.ZodString;
|
|
34
50
|
iat: z.ZodNumber;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
cur: z.ZodString;
|
|
51
|
+
jti: z.ZodString;
|
|
52
|
+
sub: z.ZodOptional<z.ZodString>;
|
|
53
|
+
pillars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
39
54
|
}, z.core.$strip>;
|
|
40
55
|
}, z.core.$strip>;
|
|
41
56
|
export type IssueOutput = z.infer<typeof IssueOutputSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue.d.ts","sourceRoot":"","sources":["../../src/schemas/issue.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"issue.d.ts","sourceRoot":"","sources":["../../src/schemas/issue.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+E3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAkB1D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;iBAK5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAIpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAiB,MAAM,qBAAqB,CAAC;AAkBxE,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,YAAY,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,aAAa,CAAC;CACxB;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAIpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAiB,MAAM,qBAAqB,CAAC;AAkBxE,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,YAAY,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,aAAa,CAAC;CACxB;AA+FD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,aAAa,GAAG,SAAS,CAgQrE;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
package/manifest.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"manifest_version": "0.4",
|
|
4
4
|
"name": "peac-mcp-server",
|
|
5
5
|
"display_name": "PEAC Protocol",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.12.0-preview.2",
|
|
7
7
|
"description": "Verify, inspect, decode, issue, and bundle PEAC receipts. Portable, offline-verifiable evidence for AI agent interactions.",
|
|
8
8
|
"long_description": "PEAC Protocol provides cryptographically signed, offline-verifiable receipts that record what happened during automated interactions. Each receipt is a compact JWS (JSON Web Signature) using Ed25519 signatures. This MCP server exposes 5 tools for receipt operations: verify (signature + claims), inspect (metadata without verification), decode (raw JWS structure), issue (sign new receipts), and create_bundle (portable evidence directories).",
|
|
9
9
|
"author": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peac/mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0-preview.2",
|
|
4
4
|
"description": "PEAC receipt operations as MCP tools (verify, inspect, decode, issue, bundle)",
|
|
5
5
|
"mcpName": "io.github.peacprotocol/peac",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"@modelcontextprotocol/sdk": "~1.27.0",
|
|
49
49
|
"commander": "^11.0.0",
|
|
50
50
|
"zod": "^4.3.6",
|
|
51
|
-
"@peac/crypto": "0.
|
|
52
|
-
"@peac/kernel": "0.
|
|
53
|
-
"@peac/schema": "0.
|
|
54
|
-
"@peac/protocol": "0.
|
|
51
|
+
"@peac/crypto": "0.12.0-preview.2",
|
|
52
|
+
"@peac/kernel": "0.12.0-preview.2",
|
|
53
|
+
"@peac/schema": "0.12.0-preview.2",
|
|
54
|
+
"@peac/protocol": "0.12.0-preview.2"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/node": "^22.0.0",
|
package/server.json
CHANGED
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
"source": "github",
|
|
9
9
|
"subfolder": "packages/mcp-server"
|
|
10
10
|
},
|
|
11
|
-
"version": "0.
|
|
11
|
+
"version": "0.12.0-preview.2",
|
|
12
12
|
"websiteUrl": "https://www.peacprotocol.org",
|
|
13
13
|
"packages": [
|
|
14
14
|
{
|
|
15
15
|
"registryType": "npm",
|
|
16
16
|
"identifier": "@peac/mcp-server",
|
|
17
|
-
"version": "0.
|
|
17
|
+
"version": "0.12.0-preview.2",
|
|
18
18
|
"transport": {
|
|
19
19
|
"type": "stdio"
|
|
20
20
|
}
|