@enactprotocol/mcp-server 1.2.5 → 1.2.6

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
@@ -239028,7 +239028,10 @@ class EnactCore {
239028
239028
  throw new Error(`Tool ${tool.name} does not have any signatures`);
239029
239029
  }
239030
239030
  const documentForVerification = {
239031
- command: tool.command
239031
+ command: tool.command,
239032
+ description: tool.description,
239033
+ from: tool.from,
239034
+ name: tool.name
239032
239035
  };
239033
239036
  const referenceSignature = {
239034
239037
  signature: tool.signatures[0].value,
@@ -239036,11 +239039,11 @@ class EnactCore {
239036
239039
  algorithm: tool.signatures[0].algorithm,
239037
239040
  timestamp: new Date(tool.signatures[0].created).getTime()
239038
239041
  };
239039
- const canonicalDoc = SigningService.getCanonicalDocument(documentForVerification, { includeFields: ["command"] });
239042
+ const canonicalDoc = SigningService.getCanonicalDocument(documentForVerification, { includeFields: ["command", "description", "from", "name"] });
239040
239043
  const docString = JSON.stringify(canonicalDoc);
239041
239044
  const messageHash = CryptoUtils.hash(docString);
239042
239045
  const directVerify = CryptoUtils.verify(referenceSignature.publicKey, messageHash, referenceSignature.signature);
239043
- const isValid2 = SigningService.verifyDocument(documentForVerification, referenceSignature, { includeFields: ["command"] });
239046
+ const isValid2 = SigningService.verifyDocument(documentForVerification, referenceSignature, { includeFields: ["command", "description", "from", "name"] });
239044
239047
  if (!isValid2) {
239045
239048
  throw new Error(`Tool ${tool.name} has invalid signatures`);
239046
239049
  }
package/dist/index.js.bak CHANGED
@@ -239027,7 +239027,10 @@ class EnactCore {
239027
239027
  throw new Error(`Tool ${tool.name} does not have any signatures`);
239028
239028
  }
239029
239029
  const documentForVerification = {
239030
- command: tool.command
239030
+ command: tool.command,
239031
+ description: tool.description,
239032
+ from: tool.from,
239033
+ name: tool.name
239031
239034
  };
239032
239035
  const referenceSignature = {
239033
239036
  signature: tool.signatures[0].value,
@@ -239035,11 +239038,11 @@ class EnactCore {
239035
239038
  algorithm: tool.signatures[0].algorithm,
239036
239039
  timestamp: new Date(tool.signatures[0].created).getTime()
239037
239040
  };
239038
- const canonicalDoc = SigningService.getCanonicalDocument(documentForVerification, { includeFields: ["command"] });
239041
+ const canonicalDoc = SigningService.getCanonicalDocument(documentForVerification, { includeFields: ["command", "description", "from", "name"] });
239039
239042
  const docString = JSON.stringify(canonicalDoc);
239040
239043
  const messageHash = CryptoUtils.hash(docString);
239041
239044
  const directVerify = CryptoUtils.verify(referenceSignature.publicKey, messageHash, referenceSignature.signature);
239042
- const isValid2 = SigningService.verifyDocument(documentForVerification, referenceSignature, { includeFields: ["command"] });
239045
+ const isValid2 = SigningService.verifyDocument(documentForVerification, referenceSignature, { includeFields: ["command", "description", "from", "name"] });
239043
239046
  if (!isValid2) {
239044
239047
  throw new Error(`Tool ${tool.name} has invalid signatures`);
239045
239048
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enactprotocol/mcp-server",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "MCP server for the Enact Protocol - enables AI tools integration via Model Context Protocol",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -38,7 +38,7 @@
38
38
  "node": ">=18.0.0"
39
39
  },
40
40
  "dependencies": {
41
- "@enactprotocol/shared": "1.2.5",
41
+ "@enactprotocol/shared": "1.2.6",
42
42
  "@modelcontextprotocol/sdk": "^1.13.0",
43
43
  "zod": "^3.25.67"
44
44
  },