@forgemeshlabs/x402-ads-mcp 0.1.7 → 0.1.8

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/Dockerfile CHANGED
@@ -5,7 +5,7 @@ WORKDIR /app
5
5
  COPY package.json package-lock.json ./
6
6
  RUN npm ci --omit=dev
7
7
 
8
- COPY index.js README.md LICENSE server.json glama.json ./
8
+ COPY index.js README.md LICENSE server.json glama.json GLAMA.md ./
9
9
 
10
10
  ENV NODE_ENV=production \
11
11
  X402_ADS_BASE_URL=https://ads.forgemesh.io
package/GLAMA.md ADDED
@@ -0,0 +1,67 @@
1
+ # Glama Build Notes
2
+
3
+ Durable source for Glama admin fields. Keep this in the public MCP repo so the
4
+ next refresh does not depend on chat history.
5
+
6
+ ## Repository
7
+
8
+ - GitHub: https://github.com/forgemeshlabs/x402-ads-mcp
9
+ - npm: @forgemeshlabs/x402-ads-mcp
10
+ - Hosted API: https://ads.forgemesh.io
11
+
12
+ ## Build Steps
13
+
14
+ Plain JavaScript with lockfile:
15
+
16
+ ```json
17
+ ["npm ci --omit=dev"]
18
+ ```
19
+
20
+ `package.json` also defines a no-op `"build"` script (`echo "no build step required"`).
21
+ Glama's generic build pipeline runs `npm install && npm run build` regardless of
22
+ the custom steps above — without this no-op script the build fails with
23
+ `npm error Missing script: "build"`. Keep this script in every future MCP package
24
+ even when there is nothing to compile.
25
+
26
+ ## Command Arguments
27
+
28
+ ```json
29
+ ["node", "index.js"]
30
+ ```
31
+
32
+ If Glama shows a full proxy wrapper, it may render something like:
33
+
34
+ ```json
35
+ ["mcp-proxy", "--", "node", "index.js"]
36
+ ```
37
+
38
+ In the manual command field, enter only the server startup command unless Glama
39
+ explicitly asks for the wrapped command.
40
+
41
+ ## Placeholder Arguments
42
+
43
+ ```json
44
+ {}
45
+ ```
46
+
47
+ ## Environment Variables
48
+
49
+ Canonical env schema belongs in `server.json`, not `glama.json`.
50
+
51
+ - `WALLET_PRIVATE_KEY` - optional low-balance Base wallet for settling paid calls.
52
+ - `X402_ADS_PUBLISHER_KEY` - optional publisher key, makes `get_intent_report` free.
53
+ - `X402_ADS_BASE_URL` - optional intent network base URL override.
54
+ - `BASE_RPC_URL` - optional Base mainnet RPC URL.
55
+
56
+ ## Dockerfile
57
+
58
+ Glama generates its own server runtime from admin fields. The repo Dockerfile is
59
+ a reference and local smoke-test target only.
60
+
61
+ ```bash
62
+ docker build -t x402-ads-mcp .
63
+ docker run --rm -i x402-ads-mcp
64
+ ```
65
+
66
+ Do not bake wallet private keys, API keys, `.env`, runtime databases, or test
67
+ wallet files into the image.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgemeshlabs/x402-ads-mcp",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "mcpName": "io.github.forgemeshlabs/x402-ads-mcp",
5
5
  "description": "Install one middleware. Monetize unused 402 responses with recommendations, discovery, and machine commerce analytics. MCP server: 7 tools for agent demand analytics, paid per call in USDC on Base; free for publishers on their own traffic.",
6
6
  "main": "index.js",
@@ -12,11 +12,13 @@
12
12
  "README.md",
13
13
  "LICENSE",
14
14
  "glama.json",
15
+ "GLAMA.md",
15
16
  "server.json",
16
17
  "Dockerfile"
17
18
  ],
18
19
  "scripts": {
19
20
  "start": "node index.js",
21
+ "build": "echo \"no build step required\"",
20
22
  "check": "node --check index.js",
21
23
  "test": "node tests/smoke.test.js",
22
24
  "test:free": "node tests/free-tools.test.js",
package/server.json CHANGED
@@ -6,12 +6,12 @@
6
6
  "url": "https://github.com/forgemeshlabs/x402-ads-mcp",
7
7
  "source": "github"
8
8
  },
9
- "version": "0.1.7",
9
+ "version": "0.1.8",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "@forgemeshlabs/x402-ads-mcp",
14
- "version": "0.1.7",
14
+ "version": "0.1.8",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },