forgemesh-imagegen 1.0.1 → 2.0.0

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 (3) hide show
  1. package/README.md +5 -5
  2. package/index.js +11 -11
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -10,10 +10,10 @@ Part of the [ForgeMesh](https://github.com/forgemeshlabs/forgemesh) ecosystem
10
10
 
11
11
  | Tool | What it does | Price |
12
12
  |---|---|---|
13
- | `generate_image` | Text-to-image generation | $0.10 USDC |
14
- | `generate_clean` | Generate + background removal | $0.15 USDC |
15
- | `generate_hd` | Generate + 4x upscale (HD) | $0.20 USDC |
16
- | `generate_pro` | Generate + bg removal + 4x upscale | $0.30 USDC |
13
+ | `generate_image` | Standard text-to-image generation | $0.25 USDC |
14
+ | `generate_clean` | Generate + background removal | $0.35 USDC |
15
+ | `generate_hd` | Premium generate + 4x upscale (HD) | $0.50 USDC |
16
+ | `generate_pro` | Top-tier generate + bg removal + 4x upscale | $0.75 USDC |
17
17
 
18
18
  All tools accept `prompt` (required) and `aspect` (optional: `1:1`, `16:9`, `9:16`, `4:3`).
19
19
  `generate_image` also accepts `affiliate_id` for Pyrimid attribution, or uses `PYRIMID_AFFILIATE_ID` from the environment.
@@ -57,7 +57,7 @@ export WALLET_PRIVATE_KEY=0x...
57
57
  ## Requirements
58
58
 
59
59
  - A Base mainnet wallet private key with USDC
60
- - $1 USDC ≈ 10 base images, 6 clean, 5 HD, or 3 pro
60
+ - $1 USDC ≈ 4 base images, 2 clean, 2 HD, or 1 pro
61
61
  - No other API keys needed
62
62
 
63
63
  Get USDC on Base: [Coinbase](https://coinbase.com) → Bridge to Base, or buy directly on Base.
package/index.js CHANGED
@@ -23,13 +23,13 @@ const USDC_ABI = parseAbi([
23
23
  "function approve(address spender, uint256 amount) external returns (bool)",
24
24
  ]);
25
25
  const PYRIMID_PRODUCTS = {
26
- "/generate": { productId: 3n, priceUsdc: 100000n },
26
+ "/generate": { productId: 3n, priceUsdc: 250000n },
27
27
  };
28
28
 
29
29
  const TOOLS = [
30
30
  {
31
31
  name: "generate_image",
32
- description: "Generate an AI image from a text prompt. Returns a PNG image URL. Costs $0.10 USDC on Base mainnet — paid automatically.",
32
+ description: "Generate a standard AI image from a text prompt. Returns a PNG image URL. Costs $0.25 USDC on Base mainnet — paid automatically.",
33
33
  inputSchema: {
34
34
  type: "object",
35
35
  properties: {
@@ -42,7 +42,7 @@ const TOOLS = [
42
42
  },
43
43
  {
44
44
  name: "generate_clean",
45
- description: "Generate an AI image with the background removed. Returns a transparent PNG URL. Costs $0.15 USDC on Base mainnet.",
45
+ description: "Generate an AI image with background removed. Returns a transparent PNG URL. Costs $0.35 USDC on Base mainnet.",
46
46
  inputSchema: {
47
47
  type: "object",
48
48
  properties: {
@@ -54,7 +54,7 @@ const TOOLS = [
54
54
  },
55
55
  {
56
56
  name: "generate_hd",
57
- description: "Generate an AI image upscaled to 4x resolution. Returns a high-resolution image URL. Costs $0.20 USDC on Base mainnet.",
57
+ description: "Generate a premium AI image upscaled 4x HD. Returns a high-resolution image URL. Costs $0.50 USDC on Base mainnet.",
58
58
  inputSchema: {
59
59
  type: "object",
60
60
  properties: {
@@ -66,7 +66,7 @@ const TOOLS = [
66
66
  },
67
67
  {
68
68
  name: "generate_pro",
69
- description: "Generate an AI image with background removed AND upscaled 4x HD. The full pipeline. Costs $0.30 USDC on Base mainnet.",
69
+ description: "Generate a top-tier AI image with background removal and 4x HD upscale. Costs $0.75 USDC on Base mainnet.",
70
70
  inputSchema: {
71
71
  type: "object",
72
72
  properties: {
@@ -79,10 +79,10 @@ const TOOLS = [
79
79
  ];
80
80
 
81
81
  const TOOL_ENDPOINTS = {
82
- generate_image: { path: "/generate", price: "$0.10" },
83
- generate_clean: { path: "/generate/clean", price: "$0.15" },
84
- generate_hd: { path: "/generate/hd", price: "$0.20" },
85
- generate_pro: { path: "/generate/pro", price: "$0.30" },
82
+ generate_image: { path: "/generate", price: "$0.25" },
83
+ generate_clean: { path: "/generate/clean", price: "$0.35" },
84
+ generate_hd: { path: "/generate/hd", price: "$0.50" },
85
+ generate_pro: { path: "/generate/pro", price: "$0.75" },
86
86
  };
87
87
 
88
88
  function buildHttpClient() {
@@ -90,7 +90,7 @@ function buildHttpClient() {
90
90
  if (!key) {
91
91
  throw new Error(
92
92
  "WALLET_PRIVATE_KEY required — set a Base wallet private key funded with USDC.\n" +
93
- " generate_image = $0.10 | generate_clean = $0.15 | generate_hd = $0.20 | generate_pro = $0.30"
93
+ " generate_image = $0.25 | generate_clean = $0.35 | generate_hd = $0.50 | generate_pro = $0.75"
94
94
  );
95
95
  }
96
96
  const pk = key.startsWith("0x") ? key : "0x" + key;
@@ -190,7 +190,7 @@ async function main() {
190
190
  }
191
191
 
192
192
  const server = new Server(
193
- { name: "forgemesh-imagegen", version: "1.0.1" },
193
+ { name: "forgemesh-imagegen", version: "1.0.2" },
194
194
  { capabilities: { tools: {} } }
195
195
  );
196
196
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forgemesh-imagegen",
3
- "version": "1.0.1",
3
+ "version": "2.0.0",
4
4
  "mcpName": "io.github.forgemeshlabs/imagegen-mcp",
5
5
  "description": "MCP server for AI image generation — generate, clean (bg removal), HD (4x upscale), Pro. Pay per image in USDC via x402 on Base. No API key needed.",
6
6
  "main": "index.js",
@@ -15,7 +15,7 @@
15
15
  "start": "node index.js"
16
16
  },
17
17
  "engines": {
18
- "node": ">=18"
18
+ "node": ">=20"
19
19
  },
20
20
  "keywords": [
21
21
  "mcp",
@@ -48,7 +48,7 @@
48
48
  "url": "https://github.com/forgemeshlabs/imagegen-mcp/issues"
49
49
  },
50
50
  "dependencies": {
51
- "@modelcontextprotocol/sdk": "^1.10.1",
51
+ "@modelcontextprotocol/sdk": "^1.30.0",
52
52
  "@x402/core": "^2.11.0",
53
53
  "@x402/evm": "^2.11.0",
54
54
  "viem": "^2.0.0"