meltflex-mcp 0.1.0 → 0.2.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/README.md +1 -1
- package/dist/api.js +1 -1
- package/dist/cli.js +2 -2
- package/package.json +1 -1
- package/skill/SKILL.md +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ npx -y meltflex-mcp auth mf_sk_xxxxxxxxxxxx
|
|
|
12
12
|
npx -y meltflex-mcp whoami
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
Get an API key at <https://www.meltflexai.com/settings> (
|
|
15
|
+
Get an API key at <https://www.meltflexai.com/settings> (any active subscription).
|
|
16
16
|
Alternatively, skip `auth` and provide `MELTFLEX_API_KEY` via the client's `env` block (below).
|
|
17
17
|
|
|
18
18
|
## Add to Claude Code
|
package/dist/api.js
CHANGED
|
@@ -40,7 +40,7 @@ export class MeltflexClient {
|
|
|
40
40
|
static fromConfig() {
|
|
41
41
|
const { apiKey, baseUrl } = loadConfig();
|
|
42
42
|
if (!apiKey) {
|
|
43
|
-
throw new Error('No MeltFlex API key configured. Run `meltflex auth <mf_sk_...>` or set the MELTFLEX_API_KEY environment variable. Get a key at https://www.meltflexai.com/settings (
|
|
43
|
+
throw new Error('No MeltFlex API key configured. Run `meltflex auth <mf_sk_...>` or set the MELTFLEX_API_KEY environment variable. Get a key at https://www.meltflexai.com/settings (any active subscription).');
|
|
44
44
|
}
|
|
45
45
|
return new MeltflexClient(apiKey, baseUrl);
|
|
46
46
|
}
|
package/dist/cli.js
CHANGED
|
@@ -19,7 +19,7 @@ generate options:
|
|
|
19
19
|
-r, --ref <path|url> Reference furniture image (repeatable, up to 10)
|
|
20
20
|
-o, --out <path> Where to save the result (default ./meltflex-output/)
|
|
21
21
|
|
|
22
|
-
Get an API key at https://www.meltflexai.com/settings (
|
|
22
|
+
Get an API key at https://www.meltflexai.com/settings (any active subscription).
|
|
23
23
|
Config file: ${CONFIG_PATH}
|
|
24
24
|
`;
|
|
25
25
|
/** Minimal flag parser supporting repeatable --ref. */
|
|
@@ -94,7 +94,7 @@ async function main() {
|
|
|
94
94
|
case 'auth': {
|
|
95
95
|
const key = rest[0]?.trim();
|
|
96
96
|
if (!key || !key.startsWith('mf_sk_')) {
|
|
97
|
-
console.error('Usage: meltflex auth <mf_sk_...>\nGet your API key at https://www.meltflexai.com/settings (
|
|
97
|
+
console.error('Usage: meltflex auth <mf_sk_...>\nGet your API key at https://www.meltflexai.com/settings (any active subscription).');
|
|
98
98
|
process.exit(1);
|
|
99
99
|
}
|
|
100
100
|
console.log(`✅ API key saved to ${saveApiKey(key)}`);
|
package/package.json
CHANGED
package/skill/SKILL.md
CHANGED
|
@@ -15,7 +15,7 @@ The MCP server must be connected and authenticated. The user authenticates to **
|
|
|
15
15
|
npx -y meltflex-mcp auth mf_sk_xxxxxxxx # or set MELTFLEX_API_KEY
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
If a tool reports "No MeltFlex API key configured", tell the user to run the command above. API keys come from https://www.meltflexai.com/settings (
|
|
18
|
+
If a tool reports "No MeltFlex API key configured", tell the user to run the command above. API keys come from https://www.meltflexai.com/settings (any active subscription).
|
|
19
19
|
|
|
20
20
|
## Tools
|
|
21
21
|
|