@centrali-io/centrali-mcp 4.2.4 → 4.2.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.
- package/dist/tools/describe.js +11 -0
- package/package.json +1 -1
- package/src/tools/describe.ts +11 -0
package/dist/tools/describe.js
CHANGED
|
@@ -469,6 +469,16 @@ function registerDescribeTools(server) {
|
|
|
469
469
|
required_params: ["triggerId"],
|
|
470
470
|
},
|
|
471
471
|
},
|
|
472
|
+
sandbox_api: {
|
|
473
|
+
description: "Functions receive an `api` object with built-in utilities. Key crypto methods:",
|
|
474
|
+
crypto: {
|
|
475
|
+
"api.crypto.sha256(data)": "SHA256 hash → base64 string",
|
|
476
|
+
"api.crypto.hmacSha256(key, data, options?)": "HMAC-SHA256 → base64 string. options: { keyEncoding: 'utf8' | 'base64' }",
|
|
477
|
+
"api.crypto.rsaSign(privateKeyPem, data, algorithm?)": "RSA signature → base64url string. algorithm: 'RS256' (default), 'RS384', 'RS512'",
|
|
478
|
+
"api.crypto.signJwt(privateKeyPem, payload, options?)": "Build + sign a JWT → 'header.payload.signature'. options: { algorithm, expiresIn (seconds), issuer }",
|
|
479
|
+
},
|
|
480
|
+
note: "Private keys should be stored as encrypted trigger params. signJwt automatically sets iat and supports RS256/RS384/RS512.",
|
|
481
|
+
},
|
|
472
482
|
tips: [
|
|
473
483
|
"Use list_functions to see all available functions",
|
|
474
484
|
"Use list_triggers to see how functions are wired to execution events",
|
|
@@ -477,6 +487,7 @@ function registerDescribeTools(server) {
|
|
|
477
487
|
"Use pause_trigger/resume_trigger to temporarily disable triggers without deleting them",
|
|
478
488
|
"Use test_function to validate code before creating or updating a function",
|
|
479
489
|
"Use create_function + create_trigger together to set up a complete compute pipeline",
|
|
490
|
+
"Use api.crypto.signJwt() for GitHub App, Google Cloud, or Azure AD authentication flows",
|
|
480
491
|
],
|
|
481
492
|
}, null, 2),
|
|
482
493
|
},
|
package/package.json
CHANGED
package/src/tools/describe.ts
CHANGED
|
@@ -539,6 +539,16 @@ export function registerDescribeTools(server: McpServer) {
|
|
|
539
539
|
required_params: ["triggerId"],
|
|
540
540
|
},
|
|
541
541
|
},
|
|
542
|
+
sandbox_api: {
|
|
543
|
+
description: "Functions receive an `api` object with built-in utilities. Key crypto methods:",
|
|
544
|
+
crypto: {
|
|
545
|
+
"api.crypto.sha256(data)": "SHA256 hash → base64 string",
|
|
546
|
+
"api.crypto.hmacSha256(key, data, options?)": "HMAC-SHA256 → base64 string. options: { keyEncoding: 'utf8' | 'base64' }",
|
|
547
|
+
"api.crypto.rsaSign(privateKeyPem, data, algorithm?)": "RSA signature → base64url string. algorithm: 'RS256' (default), 'RS384', 'RS512'",
|
|
548
|
+
"api.crypto.signJwt(privateKeyPem, payload, options?)": "Build + sign a JWT → 'header.payload.signature'. options: { algorithm, expiresIn (seconds), issuer }",
|
|
549
|
+
},
|
|
550
|
+
note: "Private keys should be stored as encrypted trigger params. signJwt automatically sets iat and supports RS256/RS384/RS512.",
|
|
551
|
+
},
|
|
542
552
|
tips: [
|
|
543
553
|
"Use list_functions to see all available functions",
|
|
544
554
|
"Use list_triggers to see how functions are wired to execution events",
|
|
@@ -547,6 +557,7 @@ export function registerDescribeTools(server: McpServer) {
|
|
|
547
557
|
"Use pause_trigger/resume_trigger to temporarily disable triggers without deleting them",
|
|
548
558
|
"Use test_function to validate code before creating or updating a function",
|
|
549
559
|
"Use create_function + create_trigger together to set up a complete compute pipeline",
|
|
560
|
+
"Use api.crypto.signJwt() for GitHub App, Google Cloud, or Azure AD authentication flows",
|
|
550
561
|
],
|
|
551
562
|
},
|
|
552
563
|
null,
|