@peac/mcp-server 0.16.3 → 0.16.5

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.16.3";
5
+ export declare const SERVER_VERSION = "0.16.5";
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;
package/dist/server.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * MCP Server binding -- ONLY file importing @modelcontextprotocol/sdk
2
+ * MCP Server binding -- the only module that registers tools with @modelcontextprotocol/sdk
3
3
  *
4
4
  * Registers pure tool handlers with the MCP server.
5
5
  * Injects _meta audit block into every response.
@@ -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;AA+FD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,aAAa,GAAG,SAAS,CAgQrE;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
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;AAkGD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,aAAa,GAAG,SAAS,CAmQrE;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -44,6 +44,8 @@ export declare class SessionManager {
44
44
  createSession(serverFactory: ServerFactory, clientIp?: string): Promise<SessionEntry>;
45
45
  /** Look up an existing session by ID */
46
46
  getSession(sessionId: string): SessionEntry | undefined;
47
+ /** Whether an unexpired session exists; unlike getSession(), does not refresh lastSeen. */
48
+ hasSession(sessionId: string): boolean;
47
49
  /** Terminate and clean up a specific session */
48
50
  terminateSession(sessionId: string): Promise<boolean>;
49
51
  /** Terminate all sessions and stop sweep */
@@ -1 +1 @@
1
- {"version":3,"file":"session-manager.d.ts","sourceRoot":"","sources":["../src/session-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AAEnG,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,6BAA6B,CAAC;IAClD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAA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Y,GAAG,SAAS;IAQvD,2FAA2F;IAC3F,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAKtC,gDAAgD;IAC1C,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAe3D,4CAA4C;IACtC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAsB9B,gCAAgC;IAChC,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,8BAA8B;IAC9B,OAAO,CAAC,UAAU;IAalB,yEAAyE;IACzE,OAAO,CAAC,gBAAgB;CAQzB"}
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.16.3",
6
+ "version": "0.16.5",
7
7
  "description": "Verify, inspect, decode, issue, and bundle PEAC records. Portable, offline-verifiable evidence for agent interactions.",
8
8
  "long_description": "PEAC Protocol provides cryptographically signed, offline-verifiable interaction records for automated interactions. Each current Wire record is a compact JWS (JSON Web Signature) using Ed25519 signatures. This MCP server exposes 5 tools for record operations: verify (signature + claims), inspect (metadata without verification), decode (raw JWS structure), issue (sign new records), 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.16.3",
3
+ "version": "0.16.5",
4
4
  "description": "PEAC record operations as MCP tools (verify, inspect, decode, issue, bundle)",
5
5
  "mcpName": "io.github.peacprotocol/peac",
6
6
  "main": "dist/index.cjs",
@@ -45,13 +45,13 @@
45
45
  "provenance": true
46
46
  },
47
47
  "dependencies": {
48
- "@modelcontextprotocol/sdk": "~1.28.0",
48
+ "@modelcontextprotocol/sdk": "1.32.1",
49
49
  "commander": "^11.0.0",
50
- "zod": "^4.3.6",
51
- "@peac/kernel": "0.16.3",
52
- "@peac/schema": "0.16.3",
53
- "@peac/protocol": "0.16.3",
54
- "@peac/crypto": "0.16.3"
50
+ "zod": "^4.6.6",
51
+ "@peac/crypto": "0.16.5",
52
+ "@peac/kernel": "0.16.5",
53
+ "@peac/protocol": "0.16.5",
54
+ "@peac/schema": "0.16.5"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/node": "^22.0.0",
package/server.json CHANGED
@@ -8,25 +8,16 @@
8
8
  "source": "github",
9
9
  "subfolder": "packages/mcp-server"
10
10
  },
11
- "version": "0.16.3",
11
+ "version": "0.16.5",
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.16.3",
17
+ "version": "0.16.5",
18
18
  "transport": {
19
19
  "type": "stdio"
20
20
  }
21
- },
22
- {
23
- "registryType": "npm",
24
- "identifier": "@peac/mcp-server",
25
- "version": "0.16.3",
26
- "transport": {
27
- "type": "streamable-http",
28
- "url": "http://localhost:3000/mcp"
29
- }
30
21
  }
31
22
  ]
32
23
  }
package/smithery.yaml CHANGED
@@ -25,7 +25,7 @@ startCommand:
25
25
  description: JWKS file for verifier key resolution (optional)
26
26
  commandFunction: |-
27
27
  (config) => {
28
- const args = ['-y', '@peac/mcp-server@0.16.3'];
28
+ const args = ['-y', '@peac/mcp-server@0.16.5'];
29
29
  if (config.issuerKey) { args.push('--issuer-key', config.issuerKey); }
30
30
  if (config.issuerId) { args.push('--issuer-id', config.issuerId); }
31
31
  if (config.bundleDir) { args.push('--bundle-dir', config.bundleDir); }