grok-imagine-image-mcp-server 1.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.
- package/.env.example +15 -0
- package/LICENSE +21 -0
- package/README.ja.md +225 -0
- package/README.md +225 -0
- package/dist/cli/batch.d.ts +19 -0
- package/dist/cli/batch.d.ts.map +1 -0
- package/dist/cli/batch.js +288 -0
- package/dist/cli/batch.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +203 -0
- package/dist/index.js.map +1 -0
- package/dist/tools/edit.d.ts +14 -0
- package/dist/tools/edit.d.ts.map +1 -0
- package/dist/tools/edit.js +236 -0
- package/dist/tools/edit.js.map +1 -0
- package/dist/tools/generate.d.ts +13 -0
- package/dist/tools/generate.d.ts.map +1 -0
- package/dist/tools/generate.js +183 -0
- package/dist/tools/generate.js.map +1 -0
- package/dist/types/batch.d.ts +137 -0
- package/dist/types/batch.d.ts.map +1 -0
- package/dist/types/batch.js +5 -0
- package/dist/types/batch.js.map +1 -0
- package/dist/types/tools.d.ts +52 -0
- package/dist/types/tools.d.ts.map +1 -0
- package/dist/types/tools.js +20 -0
- package/dist/types/tools.js.map +1 -0
- package/dist/utils/batch-config.d.ts +31 -0
- package/dist/utils/batch-config.d.ts.map +1 -0
- package/dist/utils/batch-config.js +236 -0
- package/dist/utils/batch-config.js.map +1 -0
- package/dist/utils/batch-manager.d.ts +24 -0
- package/dist/utils/batch-manager.d.ts.map +1 -0
- package/dist/utils/batch-manager.js +301 -0
- package/dist/utils/batch-manager.js.map +1 -0
- package/dist/utils/debug.d.ts +5 -0
- package/dist/utils/debug.d.ts.map +1 -0
- package/dist/utils/debug.js +16 -0
- package/dist/utils/debug.js.map +1 -0
- package/dist/utils/image.d.ts +36 -0
- package/dist/utils/image.d.ts.map +1 -0
- package/dist/utils/image.js +85 -0
- package/dist/utils/image.js.map +1 -0
- package/dist/utils/path.d.ts +16 -0
- package/dist/utils/path.d.ts.map +1 -0
- package/dist/utils/path.js +70 -0
- package/dist/utils/path.js.map +1 -0
- package/examples/batch-detailed.json +41 -0
- package/examples/batch-simple.json +14 -0
- package/examples/batch-variants.json +23 -0
- package/examples/batch-with-edits.json +26 -0
- package/package.json +66 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"jobs": [
|
|
3
|
+
{
|
|
4
|
+
"prompt": "A park with green trees and blue sky",
|
|
5
|
+
"output_path": "original_park.jpg"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"prompt": "Change the scene to autumn with orange and red leaves",
|
|
9
|
+
"image_path": "./output/original_park.jpg",
|
|
10
|
+
"output_path": "park_autumn.jpg"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"prompt": "Transform to a winter scene with snow",
|
|
14
|
+
"image_path": "./output/original_park.jpg",
|
|
15
|
+
"output_path": "park_winter.jpg"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"prompt": "Make it a nighttime scene with stars",
|
|
19
|
+
"image_path": "./output/original_park.jpg",
|
|
20
|
+
"output_path": "park_night.jpg"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"output_dir": "./output",
|
|
24
|
+
"max_concurrent": 1,
|
|
25
|
+
"default_model": "grok-imagine-image"
|
|
26
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "grok-imagine-image-mcp-server",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "MCP server for xAI Grok Imagine Image API - Generate and edit images using grok-imagine-image model",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"grok-imagine-image-mcp-server": "./dist/index.js",
|
|
9
|
+
"grok-imagine-image-batch": "./dist/cli/batch.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist/**/*",
|
|
13
|
+
"README.md",
|
|
14
|
+
"README.ja.md",
|
|
15
|
+
"LICENSE",
|
|
16
|
+
".env.example",
|
|
17
|
+
"examples/**/*"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsc",
|
|
21
|
+
"prepublishOnly": "npm run build",
|
|
22
|
+
"start": "node dist/index.js",
|
|
23
|
+
"batch": "node dist/cli/batch.js",
|
|
24
|
+
"dev": "tsc --watch",
|
|
25
|
+
"pack": "npm pack"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"mcp",
|
|
29
|
+
"xai",
|
|
30
|
+
"grok",
|
|
31
|
+
"grok-imagine-image",
|
|
32
|
+
"image-generation",
|
|
33
|
+
"image-editing",
|
|
34
|
+
"claude",
|
|
35
|
+
"model-context-protocol",
|
|
36
|
+
"ai",
|
|
37
|
+
"text-to-image",
|
|
38
|
+
"anthropic",
|
|
39
|
+
"batch"
|
|
40
|
+
],
|
|
41
|
+
"author": "Junji Takashima <takajyun00@gmail.com>",
|
|
42
|
+
"license": "MIT",
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "git+https://github.com/takajun/grok-imagine-image-mcp-server.git"
|
|
46
|
+
},
|
|
47
|
+
"bugs": {
|
|
48
|
+
"url": "https://github.com/takajun/grok-imagine-image-mcp-server/issues"
|
|
49
|
+
},
|
|
50
|
+
"homepage": "https://github.com/takajun/grok-imagine-image-mcp-server#readme",
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@modelcontextprotocol/sdk": "^1.0.4",
|
|
53
|
+
"dotenv": "^16.4.7",
|
|
54
|
+
"sharp": "^0.33.5"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@types/node": "^22.18.8",
|
|
58
|
+
"typescript": "^5.7.2"
|
|
59
|
+
},
|
|
60
|
+
"engines": {
|
|
61
|
+
"node": ">=18.0.0"
|
|
62
|
+
},
|
|
63
|
+
"publishConfig": {
|
|
64
|
+
"access": "public"
|
|
65
|
+
}
|
|
66
|
+
}
|