@hapticpaper/mcp-server 1.0.24 → 1.0.26

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
@@ -320,7 +320,8 @@ ${widgetJs}
320
320
  }
321
321
  catch (e) {
322
322
  // If ES256 fails, and we have a secret, try HS256 (migration path)
323
- if (secret && e.message === 'invalid signature') {
323
+ // We catch 'invalid signature' (wrong key) AND 'invalid algorithm' (token is HS256 but we asked for ES256)
324
+ if (secret && (e.message === 'invalid signature' || e.message.includes('invalid algorithm'))) {
324
325
  decoded = jwt.verify(token, secret, { algorithms: ['HS256'] });
325
326
  }
326
327
  else {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hapticpaper/mcp-server",
3
3
  "mcpName": "com.hapticpaper/mcp",
4
- "version": "1.0.24",
4
+ "version": "1.0.26",
5
5
  "description": "Official MCP Server for Haptic Paper - Connect your account to create human tasks from agentic pipelines.",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
package/server.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "subfolder": "packages/mcp-server"
26
26
  },
27
27
  "websiteUrl": "https://hapticpaper.com/developer",
28
- "version": "1.0.24",
28
+ "version": "1.0.26",
29
29
  "remotes": [
30
30
  {
31
31
  "type": "streamable-http",
@@ -37,7 +37,7 @@
37
37
  "registryType": "npm",
38
38
  "registryBaseUrl": "https://registry.npmjs.org",
39
39
  "identifier": "@hapticpaper/mcp-server",
40
- "version": "1.0.24",
40
+ "version": "1.0.26",
41
41
  "transport": {
42
42
  "type": "stdio"
43
43
  },