@meterapp/car-image 1.0.0 → 1.0.1
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 +4 -4
- package/dist/bin.js +0 -0
- package/dist/commands/help.js +2 -2
- package/dist/commands/onboard.js +1 -1
- package/dist/commands/onboard.js.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +14 -12
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ CLI and MCP server for the **Car Image API** by Meter — studio-quality, transp
|
|
|
9
9
|
```bash
|
|
10
10
|
npx @meterapp/car-image # no install
|
|
11
11
|
npm install -g @meterapp/car-image # or pnpm add -g / bun add -g
|
|
12
|
-
curl -fsSL https://
|
|
12
|
+
curl -fsSL https://carimage.dev/install.sh | sh
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Node.js 20+.
|
|
@@ -57,12 +57,12 @@ Exit codes: `0` ok · `1` failure · `2` usage error. API errors are shown as `T
|
|
|
57
57
|
|
|
58
58
|
Two servers expose the same tools — `get_car_image`, `create_car_image_urls`, `search_vehicles`, `resolve_vehicle`, `list_image_options`, `get_account`, `rate_image`, `describe_api`:
|
|
59
59
|
|
|
60
|
-
- **Remote (recommended):** `https://
|
|
60
|
+
- **Remote (recommended):** `https://carimage.dev/api/mcp` with header `Authorization: Bearer ${CAR_IMAGE_API_KEY}`.
|
|
61
61
|
- **Local stdio:** `car-image mcp` (reads `CAR_IMAGE_API_KEY` or the stored key).
|
|
62
62
|
|
|
63
63
|
```bash
|
|
64
64
|
# Claude Code
|
|
65
|
-
claude mcp add --transport http car-image https://
|
|
65
|
+
claude mcp add --transport http car-image https://carimage.dev/api/mcp --header "Authorization: Bearer ${CAR_IMAGE_API_KEY}"
|
|
66
66
|
claude mcp add car-image-local --env CAR_IMAGE_API_KEY=${CAR_IMAGE_API_KEY} -- npx -y @meterapp/car-image mcp
|
|
67
67
|
|
|
68
68
|
# Cursor (.cursor/mcp.json), Claude Desktop, ChatGPT, generic:
|
|
@@ -86,7 +86,7 @@ npm uninstall -g @meterapp/car-image # or pnpm remove -g / bun remove -g
|
|
|
86
86
|
rm -rf ~/.config/car-image-api # stored key + update cache
|
|
87
87
|
```
|
|
88
88
|
|
|
89
|
-
Revoke keys any time at https://
|
|
89
|
+
Revoke keys any time at https://carimage.dev/dashboard/keys.
|
|
90
90
|
|
|
91
91
|
## License
|
|
92
92
|
|
package/dist/bin.js
CHANGED
|
File without changes
|
package/dist/commands/help.js
CHANGED
|
@@ -21,7 +21,7 @@ ${commands}
|
|
|
21
21
|
Global options:
|
|
22
22
|
--json machine-readable output on stdout
|
|
23
23
|
--quiet, -q only errors and essential output
|
|
24
|
-
--base-url <url> API origin (default https://
|
|
24
|
+
--base-url <url> API origin (default https://carimage.dev; env CAR_IMAGE_API_URL)
|
|
25
25
|
--api-key <key> override the stored key for this run (env CAR_IMAGE_API_KEY)
|
|
26
26
|
--no-color disable colors (env NO_COLOR)
|
|
27
27
|
-h, --help show help (also \`${BIN_NAME} <command> --help\`)
|
|
@@ -41,7 +41,7 @@ Examples:
|
|
|
41
41
|
${BIN_NAME} agent-config --host claude-code
|
|
42
42
|
${BIN_NAME} doctor --yes
|
|
43
43
|
|
|
44
|
-
Exit codes: 0 ok, 1 failure, 2 usage error. Docs: https://
|
|
44
|
+
Exit codes: 0 ok, 1 failure, 2 usage error. Docs: https://carimage.dev/docs
|
|
45
45
|
`;
|
|
46
46
|
}
|
|
47
47
|
export function helpCommand(entries) {
|
package/dist/commands/onboard.js
CHANGED
|
@@ -34,7 +34,7 @@ export const onboardCommand = {
|
|
|
34
34
|
" car-image resolve red 2024 porsche 911 side view # free text → parameters",
|
|
35
35
|
" car-image agent-config --host claude-code # MCP setup for agents",
|
|
36
36
|
" car-image describe # the REST API, explained",
|
|
37
|
-
" Docs: https://
|
|
37
|
+
" Docs: https://carimage.dev/docs · Agents: https://carimage.dev/agents.md",
|
|
38
38
|
].join("\n") + "\n");
|
|
39
39
|
return doctor;
|
|
40
40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C9F,iGAAiG;YACjG,4EAA4E;SAC7E,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CACpB,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAC"}
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meterapp/car-image",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "CLI and MCP server for the Car Image API by Meter: studio-quality, transparent-background vehicle renders for agents, apps and browsers. Login, fetch images, mint signed URLs, run diagnostics, configure agents.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Meter <hello@meterapp.co> (https://meterapp.co)",
|
|
7
|
-
"homepage": "https://
|
|
7
|
+
"homepage": "https://carimage.dev",
|
|
8
8
|
"bugs": {
|
|
9
|
-
"url": "https://
|
|
9
|
+
"url": "https://carimage.dev/docs/feedback",
|
|
10
10
|
"email": "hello@meterapp.co"
|
|
11
11
|
},
|
|
12
12
|
"keywords": [
|
|
@@ -34,10 +34,18 @@
|
|
|
34
34
|
"engines": {
|
|
35
35
|
"node": ">=20"
|
|
36
36
|
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsc -p tsconfig.build.json",
|
|
39
|
+
"clean": "rm -rf dist",
|
|
40
|
+
"prepare": "tsc -p tsconfig.build.json",
|
|
41
|
+
"prepublishOnly": "tsc -p tsconfig.build.json",
|
|
42
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
43
|
+
"test": "vitest run"
|
|
44
|
+
},
|
|
37
45
|
"dependencies": {
|
|
46
|
+
"@meterapp/car-image-sdk": "workspace:^",
|
|
38
47
|
"@modelcontextprotocol/server": "^2.0.0",
|
|
39
|
-
"zod": "^4.5.4"
|
|
40
|
-
"@meterapp/car-image-sdk": "^1.0.0"
|
|
48
|
+
"zod": "^4.5.4"
|
|
41
49
|
},
|
|
42
50
|
"devDependencies": {
|
|
43
51
|
"@types/node": "^22.20.1",
|
|
@@ -46,11 +54,5 @@
|
|
|
46
54
|
},
|
|
47
55
|
"publishConfig": {
|
|
48
56
|
"access": "public"
|
|
49
|
-
},
|
|
50
|
-
"scripts": {
|
|
51
|
-
"build": "tsc -p tsconfig.build.json",
|
|
52
|
-
"clean": "rm -rf dist",
|
|
53
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
54
|
-
"test": "vitest run"
|
|
55
57
|
}
|
|
56
|
-
}
|
|
58
|
+
}
|