@hapticpaper/mcp-server 1.0.35 → 1.0.36
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/auth/access.js +4 -6
- package/package.json +1 -1
- package/server.json +2 -2
package/dist/auth/access.js
CHANGED
|
@@ -25,13 +25,11 @@ export function tryVerifyAccessToken(extra) {
|
|
|
25
25
|
// No token in extra - this is OK for stdio transport, let the API client handle auth
|
|
26
26
|
return null;
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
const decoded = jwt.verify(token, secret);
|
|
28
|
+
// MCP server is just a thin proxy - decode the token without verifying signature.
|
|
29
|
+
// The backend will do full verification when we forward the token.
|
|
30
|
+
const decoded = jwt.decode(token);
|
|
33
31
|
if (!decoded || typeof decoded !== 'object') {
|
|
34
|
-
throw new Error('Invalid authentication token.');
|
|
32
|
+
throw new Error('Invalid authentication token format.');
|
|
35
33
|
}
|
|
36
34
|
const scopes = parseScopesFromClaims(decoded);
|
|
37
35
|
return {
|
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.
|
|
4
|
+
"version": "1.0.36",
|
|
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.
|
|
28
|
+
"version": "1.0.36",
|
|
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.
|
|
40
|
+
"version": "1.0.36",
|
|
41
41
|
"transport": {
|
|
42
42
|
"type": "stdio"
|
|
43
43
|
},
|