@peac/mcp-server 0.13.0 → 0.13.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.
@@ -2,7 +2,7 @@
2
2
  * MCP Server constants -- zero imports
3
3
  */
4
4
  export declare const SERVER_NAME = "peac-mcp-server";
5
- export declare const SERVER_VERSION = "0.13.0";
5
+ export declare const SERVER_VERSION = "0.13.2";
6
6
  export declare const MCP_PROTOCOL_VERSION = "2025-11-25";
7
7
  export declare const DEFAULT_MAX_JWS_BYTES = 16384;
8
8
  export declare const DEFAULT_MAX_RESPONSE_BYTES = 65536;
@@ -7,25 +7,25 @@
7
7
  export type McpServerErrorCode = 'E_MCP_KEY_LOAD' | 'E_MCP_POLICY_LOAD' | 'E_MCP_JWKS_LOAD' | 'E_MCP_INPUT_TOO_LARGE' | 'E_MCP_OUTPUT_TOO_LARGE' | 'E_MCP_TOOL_DISABLED' | 'E_MCP_TOOL_TIMEOUT' | 'E_MCP_KEY_RESOLUTION' | 'E_MCP_KID_REQUIRED' | 'E_MCP_JWKS_NO_MATCH' | 'E_MCP_INVALID_INPUT' | 'E_MCP_HANDLER_ERROR' | 'E_MCP_STDOUT_FENCE_VIOLATION' | 'E_MCP_KEY_REQUIRED' | 'E_MCP_ISSUE_FAILED' | 'E_MCP_BUNDLE_FAILED' | 'E_MCP_PATH_TRAVERSAL' | 'E_MCP_BUNDLE_DIR_REQUIRED' | 'E_MCP_CANCELLED';
8
8
  export declare class McpServerError extends Error {
9
9
  readonly code: McpServerErrorCode;
10
- constructor(code: McpServerErrorCode, message: string);
10
+ constructor(code: McpServerErrorCode, message: string, options?: ErrorOptions);
11
11
  }
12
12
  export declare class KeyLoadError extends McpServerError {
13
- constructor(message: string);
13
+ constructor(message: string, options?: ErrorOptions);
14
14
  }
15
15
  export declare class PolicyLoadError extends McpServerError {
16
- constructor(message: string);
16
+ constructor(message: string, options?: ErrorOptions);
17
17
  }
18
18
  export declare class JwksLoadError extends McpServerError {
19
- constructor(message: string);
19
+ constructor(message: string, options?: ErrorOptions);
20
20
  }
21
21
  export declare class IssueToolError extends McpServerError {
22
- constructor(message: string);
22
+ constructor(message: string, options?: ErrorOptions);
23
23
  }
24
24
  export declare class BundleToolError extends McpServerError {
25
- constructor(message: string);
25
+ constructor(message: string, options?: ErrorOptions);
26
26
  }
27
27
  export declare class PathTraversalError extends McpServerError {
28
- constructor(message: string);
28
+ constructor(message: string, options?: ErrorOptions);
29
29
  }
30
30
  /**
31
31
  * Strip key-like material from output strings (Trust Gate 1 helper).
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/infra/errors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,kBAAkB,GAC1B,gBAAgB,GAChB,mBAAmB,GACnB,iBAAiB,GACjB,uBAAuB,GACvB,wBAAwB,GACxB,qBAAqB,GACrB,oBAAoB,GACpB,sBAAsB,GACtB,oBAAoB,GACpB,qBAAqB,GACrB,qBAAqB,GACrB,qBAAqB,GACrB,8BAA8B,GAC9B,oBAAoB,GACpB,oBAAoB,GACpB,qBAAqB,GACrB,sBAAsB,GACtB,2BAA2B,GAC3B,iBAAiB,CAAC;AAEtB,qBAAa,cAAe,SAAQ,KAAK;IACvC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;gBAEtB,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM;CAKtD;AAED,qBAAa,YAAa,SAAQ,cAAc;gBAClC,OAAO,EAAE,MAAM;CAI5B;AAED,qBAAa,eAAgB,SAAQ,cAAc;gBACrC,OAAO,EAAE,MAAM;CAI5B;AAED,qBAAa,aAAc,SAAQ,cAAc;gBACnC,OAAO,EAAE,MAAM;CAI5B;AAED,qBAAa,cAAe,SAAQ,cAAc;gBACpC,OAAO,EAAE,MAAM;CAI5B;AAED,qBAAa,eAAgB,SAAQ,cAAc;gBACrC,OAAO,EAAE,MAAM;CAI5B;AAED,qBAAa,kBA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AAc;gBACxC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;CAIpD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,GAAG,MAAM,CAMhF"}
@@ -1 +1 @@
1
- {"version":3,"file":"jwks-loader.d.ts","sourceRoot":"","sources":["../../src/infra/jwks-loader.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,UAAU,CAAC;CACvB;AAED,wBAAsB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAgD5E;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,YAAY,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAGzF"}
1
+ {"version":3,"file":"jwks-loader.d.ts","sourceRoot":"","sources":["../../src/infra/jwks-loader.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,UAAU,CAAC;CACvB;AAED,wBAAsB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAiD5E;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,YAAY,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAGzF"}
@@ -1 +1 @@
1
- {"version":3,"file":"key-loader.d.ts","sourceRoot":"","sources":["../../src/infra/key-loader.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAaH,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,UAAU,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,wBAAsB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAkFzE"}
1
+ {"version":3,"file":"key-loader.d.ts","sourceRoot":"","sources":["../../src/infra/key-loader.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAaH,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,UAAU,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,wBAAsB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAmFzE"}
@@ -1 +1 @@
1
- {"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../src/infra/policy.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiCxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;iBAOvB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAmBxD,wBAAgB,gBAAgB,IAAI,YAAY,CAE/C;AAoBD;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAGrF;AAED,wBAAsB,UAAU,CAC9B,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC;IAAE,MAAM,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAsCjD"}
1
+ {"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../src/infra/policy.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiCxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;iBAOvB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAmBxD,wBAAgB,gBAAgB,IAAI,YAAY,CAE/C;AAoBD;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAGrF;AAED,wBAAsB,UAAU,CAC9B,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC;IAAE,MAAM,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAuCjD"}
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.13.0",
6
+ "version": "0.13.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.13.0",
3
+ "version": "0.13.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.28.0",
49
49
  "commander": "^11.0.0",
50
50
  "zod": "^4.3.6",
51
- "@peac/kernel": "0.13.0",
52
- "@peac/crypto": "0.13.0",
53
- "@peac/schema": "0.13.0",
54
- "@peac/protocol": "0.13.0"
51
+ "@peac/crypto": "0.13.2",
52
+ "@peac/kernel": "0.13.2",
53
+ "@peac/schema": "0.13.2",
54
+ "@peac/protocol": "0.13.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.13.0",
11
+ "version": "0.13.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.13.0",
17
+ "version": "0.13.2",
18
18
  "transport": {
19
19
  "type": "stdio"
20
20
  }
@@ -22,7 +22,7 @@
22
22
  {
23
23
  "registryType": "npm",
24
24
  "identifier": "@peac/mcp-server",
25
- "version": "0.13.0",
25
+ "version": "0.13.2",
26
26
  "transport": {
27
27
  "type": "streamable-http",
28
28
  "url": "http://localhost:3000/mcp"