@ziggs-ai/ziggs-mcp 0.26.0 → 0.27.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/dist/capabilityAdapter.js +11 -5
- package/package.json +2 -2
|
@@ -31,12 +31,18 @@ function zodParam(param) {
|
|
|
31
31
|
break;
|
|
32
32
|
case 'array': {
|
|
33
33
|
const items = param.items;
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
if (items?.type === 'string') {
|
|
35
|
+
const inner = items.enum
|
|
36
36
|
? z.enum(items.enum)
|
|
37
|
-
: z.string()
|
|
38
|
-
:
|
|
39
|
-
|
|
37
|
+
: z.string();
|
|
38
|
+
// A list of strings also takes one string, as a list of one: agents
|
|
39
|
+
// write `scopeKind: "chat"` as often as `["chat"]`, and refusing it
|
|
40
|
+
// costs a round trip for nothing. The schema still advertises a list.
|
|
41
|
+
t = z.preprocess((value) => (typeof value === 'string' ? [value] : value), z.array(inner));
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
t = z.array(z.record(z.unknown()));
|
|
45
|
+
}
|
|
40
46
|
break;
|
|
41
47
|
}
|
|
42
48
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ziggs-ai/ziggs-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "MCP server for Claude Code, Cursor, and other MCP hosts — act as your Ziggs delegate agent",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
42
|
-
"@ziggs-ai/api-client": "0.
|
|
42
|
+
"@ziggs-ai/api-client": "0.27.0",
|
|
43
43
|
"dotenv": "^16.6.1",
|
|
44
44
|
"zod": "^3.24.2",
|
|
45
45
|
"zod-to-json-schema": "^3.25.1"
|