@gapi/gcli 1.8.193 → 1.8.195

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/README.md CHANGED
@@ -1,13 +1,45 @@
1
1
  ### Installation
2
2
 
3
3
  ```bash
4
- curl -L "https://github.com/Stradivario/gapi/raw/master/packages/gcli/release/gcli-linux" -o ~/.local/bin/gcli
4
+ curl -L "https://github.com/Stradivario/gapi/releases/download/v1.8.194/gcli-linux" -o ~/.local/bin/gcli
5
5
  ```
6
6
 
7
7
  ```bash
8
8
  chmod +x ~/.local/bin/gcli
9
9
  ```
10
10
 
11
+ Use MCP tool in Claude or any other tool that accepts mcp servers config
12
+
13
+ ```json
14
+ {
15
+ "mcpServers": {
16
+ "lambforge": {
17
+ "command": "gcli",
18
+ "args": ["mcp:start", "--url", "http://localhost:8000/mcp"]
19
+ }
20
+ }
21
+ }
22
+ ```
23
+
24
+ Using regular npm package installed globally `npm install @gapi/gcli -g`
25
+
26
+ ```json
27
+ {
28
+ "mcpServers": {
29
+ "lambforge": {
30
+ "command": "/home/user/.nvm/versions/node/v24.11.1/bin/node",
31
+ "args": [
32
+ "/home/user/.nvm/versions/node/v24.11.1/bin/npx",
33
+ "gcli",
34
+ "mcp:start",
35
+ "--url",
36
+ "http://localhost:8000/mcp"
37
+ ]
38
+ }
39
+ }
40
+ }
41
+ ```
42
+
11
43
  #### Using NPM
12
44
 
13
45
  ```bash
package/build.js CHANGED
@@ -6,14 +6,8 @@ require('esbuild')
6
6
  entryPoints: ['./src/main.ts'],
7
7
  bundle: true,
8
8
  platform: 'node',
9
- target: 'node14.4',
9
+ target: 'node24',
10
10
  outfile: './release/index.js',
11
- external: ['esbuild'],
12
- define: {
13
- 'process.env.MONGODB_URI': `'${process.env.MONGODB_URI}'`,
14
- 'process.env.NODE_ENV': `'${process.env.NODE_ENV}'`,
15
- 'process.env.PORT': `9000`,
16
- },
17
11
  })
18
12
  .then((data) => console.log('SUCCESS', data))
19
13
  .catch((e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gapi/gcli",
3
- "version": "1.8.193",
3
+ "version": "1.8.195",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Stradivario/gapi.git"
@@ -13,8 +13,13 @@
13
13
  "lint": "npx eslint . --ext .ts",
14
14
  "test": "jest",
15
15
  "lint-fix": "npx eslint . --fix --ext .ts",
16
- "build:release": "gapi build --single-executable && cp ./dist/gcli-linux ./release && cp ./dist/index.js ./release",
17
- "build": "echo BUILD",
16
+ "build:all": "npm run build:release && unset BINARY_BUILD && npm run esbuild",
17
+ "build:release": "BINARY_BUILD=true npm run esbuild && npm run create:blob && npm run copy:nodejs && npm run postject && npm run chmod",
18
+ "create:blob": "node --experimental-sea-config sea-config.json",
19
+ "copy:nodejs": "cp $(command -v node) ./release/gcli-linux",
20
+ "chmod": "chmod +x ./release/gcli-linux",
21
+ "postject": "npx postject ./release/gcli-linux NODE_SEA_BLOB ./release/gcli.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2",
22
+ "build": "npm run esbuild",
18
23
  "esbuild": "node build.js",
19
24
  "introspect": "gapi schema introspect --collect-documents --collect-types"
20
25
  },
@@ -61,15 +66,16 @@
61
66
  "rxjs": "^7.8.2",
62
67
  "stream-to-buffer": "^0.1.0",
63
68
  "ts-jest": "^29.4.6",
69
+ "postject": "^1.0.0-alpha.6",
64
70
  "typescript": "^5.9.3",
65
- "@anatine/esbuild-decorators": "^0.2.19"
71
+ "@anatine/esbuild-decorators": "^0.2.19",
72
+ "@modelcontextprotocol/sdk": "^1.24.3",
73
+ "esbuild": "^0.27.3"
66
74
  },
67
75
  "bin": {
68
76
  "gcli": "./release/index.js"
69
77
  },
70
- "dependencies": {
71
- "esbuild": "^0.27.2"
72
- },
78
+ "dependencies": {},
73
79
  "main": "./dist/index.js",
74
80
  "types": "./dist/index.d.ts",
75
81
  "module": "./dist/index.js",