@productmaker/mcp 0.16.0 → 0.17.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 +12 -1
- package/dist/http.js +9 -1
- package/dist/stdio.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,11 +41,22 @@ Verify with `claude mcp list`. Use `--scope user` for a global install.
|
|
|
41
41
|
No install needed — connect to the hosted endpoint:
|
|
42
42
|
|
|
43
43
|
- **Server URL:** `https://mcp.productmaker.app/mcp`
|
|
44
|
-
- **Header:** `Authorization: Bearer pm_live_...`
|
|
44
|
+
- **Header:** `Authorization: Bearer pm_live_...` *(or use the URL-only form below)*
|
|
45
45
|
|
|
46
46
|
In claude.ai: *Settings → Integrations → Add MCP server*.
|
|
47
47
|
In ChatGPT: *Settings → Connectors → Add custom connector*.
|
|
48
48
|
|
|
49
|
+
### Claude Desktop (Add custom connector — URL only)
|
|
50
|
+
|
|
51
|
+
Claude Desktop's *Settings → Connectors → Add custom connector* modal only
|
|
52
|
+
accepts a URL. Paste your key as a query parameter:
|
|
53
|
+
|
|
54
|
+
- **Name:** Product Maker
|
|
55
|
+
- **Remote MCP server URL:** `https://mcp.productmaker.app/mcp?apikey=pm_live_...`
|
|
56
|
+
|
|
57
|
+
That's it — no JSON file, no Node install. If you prefer to keep the key out
|
|
58
|
+
of the URL, use Claude Code (CLI) or the stdio install above instead.
|
|
59
|
+
|
|
49
60
|
### Get your API key
|
|
50
61
|
|
|
51
62
|
Sign up at [productmaker.app](https://productmaker.app) and create a key (prefix `pm_live_`) at [productmaker.app/account/api-keys](https://productmaker.app/account/api-keys). Full setup walkthrough: [productmaker.app/install](https://productmaker.app/install).
|
package/dist/http.js
CHANGED
|
@@ -113,7 +113,7 @@ var ApiClient = class {
|
|
|
113
113
|
};
|
|
114
114
|
|
|
115
115
|
// src/index.ts
|
|
116
|
-
var MCP_VERSION = "0.
|
|
116
|
+
var MCP_VERSION = "0.17.0";
|
|
117
117
|
|
|
118
118
|
// src/tools/tasks.ts
|
|
119
119
|
import { z as z2 } from "zod";
|
|
@@ -1978,6 +1978,12 @@ function firstHeader(value) {
|
|
|
1978
1978
|
return value;
|
|
1979
1979
|
}
|
|
1980
1980
|
__name(firstHeader, "firstHeader");
|
|
1981
|
+
function firstQuery(value) {
|
|
1982
|
+
if (typeof value === "string") return value;
|
|
1983
|
+
if (Array.isArray(value) && typeof value[0] === "string") return value[0];
|
|
1984
|
+
return void 0;
|
|
1985
|
+
}
|
|
1986
|
+
__name(firstQuery, "firstQuery");
|
|
1981
1987
|
function extractApiKey(req) {
|
|
1982
1988
|
const auth = firstHeader(req.headers["authorization"]);
|
|
1983
1989
|
if (auth && auth.startsWith(`Bearer ${PM_API_KEY_PREFIX}`)) {
|
|
@@ -1985,6 +1991,8 @@ function extractApiKey(req) {
|
|
|
1985
1991
|
}
|
|
1986
1992
|
const x = firstHeader(req.headers["x-api-key"]);
|
|
1987
1993
|
if (x && x.startsWith(PM_API_KEY_PREFIX)) return x.trim();
|
|
1994
|
+
const q = firstQuery(req.query["apikey"]);
|
|
1995
|
+
if (q && q.startsWith(PM_API_KEY_PREFIX)) return q.trim();
|
|
1988
1996
|
return null;
|
|
1989
1997
|
}
|
|
1990
1998
|
__name(extractApiKey, "extractApiKey");
|
package/dist/stdio.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@productmaker/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Product Maker MCP server — connect Claude Desktop, Claude Code, ChatGPT, or Gemini to Product Maker AI to generate dropshipping landing pages, UGC videos, and ad creatives, and publish to Shopify and Meta Ads from your AI assistant.",
|