gitlab-mcp 0.1.4 → 0.1.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.
Files changed (2) hide show
  1. package/build/index.js +3 -2
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -19,11 +19,12 @@ import { GitLabForkSchema, GitLabReferenceSchema, GitLabRepositorySchema, GitLab
19
19
  GitLabDiscussionNoteSchema, // Added
20
20
  GitLabDiscussionSchema, UpdateMergeRequestNoteSchema, // Added
21
21
  ListMergeRequestDiscussionsSchema, } from "./schemas.js";
22
- // Load .env from the current working directory
23
- config({ path: path.resolve(process.cwd(), ".env") });
24
22
  const argv = yargs(hideBin(process.argv)).argv;
25
23
  const isSSE = argv.mode === "sse";
26
24
  const port = argv.port ?? 3044;
25
+ const envFile = argv.envFile ?? ".env";
26
+ // Load .env from the current working directory
27
+ config({ path: envFile ?? path.resolve(process.cwd(), ".env") });
27
28
  /**
28
29
  * Read version from package.json
29
30
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitlab-mcp",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Model Context Protocol server for GitLab integration",
5
5
  "main": "./build/index.js",
6
6
  "type": "module",