mlgym-deploy 2.7.0 → 2.7.1

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.
Files changed (2) hide show
  1. package/index.js +13 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -17,7 +17,7 @@ import crypto from 'crypto';
17
17
  const execAsync = promisify(exec);
18
18
 
19
19
  // Current version of this MCP server - INCREMENT FOR WORKFLOW FIXES
20
- const CURRENT_VERSION = '2.7.0';
20
+ const CURRENT_VERSION = '2.7.1';
21
21
  const PACKAGE_NAME = 'mlgym-deploy';
22
22
 
23
23
  // Version check state
@@ -952,8 +952,18 @@ async function initProject(args) {
952
952
  enable_deployment: enable_deployment
953
953
  };
954
954
 
955
- if (enable_deployment && hostname) {
956
- projectData.hostname = hostname;
955
+ if (enable_deployment) {
956
+ // Generate a secure webhook secret for deployments
957
+ const webhookSecret = Array.from(
958
+ crypto.getRandomValues(new Uint8Array(32)),
959
+ byte => byte.toString(16).padStart(2, '0')
960
+ ).join('');
961
+
962
+ projectData.webhook_secret = webhookSecret;
963
+
964
+ if (hostname) {
965
+ projectData.hostname = hostname;
966
+ }
957
967
  }
958
968
 
959
969
  const result = await apiRequest('POST', '/api/v1/projects', projectData, true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mlgym-deploy",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "MCP server for GitLab Backend - User creation and project deployment",
5
5
  "main": "index.js",
6
6
  "type": "module",