conduyt-mcp 4.3.0 → 4.3.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/dist/index.js +1 -1
- package/dist/tools/smart-lists.js +5 -2
- package/package.json +4 -2
package/dist/index.js
CHANGED
|
@@ -45,7 +45,7 @@ if (!apiKey.startsWith("cdy_")) {
|
|
|
45
45
|
const client = new ConduytClient({ apiUrl, apiKey });
|
|
46
46
|
const server = new McpServer({
|
|
47
47
|
name: "conduyt",
|
|
48
|
-
version: "4.3.
|
|
48
|
+
version: "4.3.1",
|
|
49
49
|
});
|
|
50
50
|
registerDiscoveryTools(server, client);
|
|
51
51
|
registerContactTools(server, client);
|
|
@@ -43,12 +43,15 @@ export function registerSmartListTools(server, client) {
|
|
|
43
43
|
page: z.number().optional().describe("Page number"),
|
|
44
44
|
per_page: z.number().optional().describe("Results per page"),
|
|
45
45
|
}, async ({ smartListId, page, per_page }) => {
|
|
46
|
-
|
|
46
|
+
// There is no GET /smart-lists/:id/contacts route; contacts are fetched
|
|
47
|
+
// from the contacts list filtered by smartListId (static lists return
|
|
48
|
+
// members, dynamic lists run the saved filter).
|
|
49
|
+
const params = new URLSearchParams({ smartListId });
|
|
47
50
|
if (page)
|
|
48
51
|
params.set("page", String(page));
|
|
49
52
|
if (per_page)
|
|
50
53
|
params.set("per_page", String(per_page));
|
|
51
|
-
const result = await client.get(`/api/v1/
|
|
54
|
+
const result = await client.get(`/api/v1/contacts?${params}`);
|
|
52
55
|
return formatResult(result);
|
|
53
56
|
});
|
|
54
57
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "conduyt-mcp",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.1",
|
|
4
4
|
"description": "MCP server for Conduyt CRM — expose CRM operations as AI-accessible tools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
"start": "tsx src/index.ts",
|
|
21
21
|
"build": "tsc",
|
|
22
22
|
"typecheck": "tsc --noEmit",
|
|
23
|
-
"prepublishOnly": "npm run build"
|
|
23
|
+
"prepublishOnly": "npm run build && ENFORCE=1 node scripts/verify-contracts.mjs",
|
|
24
|
+
"audit:contracts": "node scripts/verify-contracts.mjs",
|
|
25
|
+
"contracts:refresh": "node scripts/refresh-contracts.mjs"
|
|
24
26
|
},
|
|
25
27
|
"keywords": [
|
|
26
28
|
"mcp",
|