@ziggs-ai/ziggs-mcp 0.25.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/dist/tools.js +1 -1
- 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/dist/tools.js
CHANGED
|
@@ -449,7 +449,7 @@ export function registerZiggsTools(server, creds, cfg) {
|
|
|
449
449
|
receiverId: z
|
|
450
450
|
.string()
|
|
451
451
|
.optional()
|
|
452
|
-
.describe("Receiver id for the message. Prefer a real user/agent id when you have one. Cross-org masked counterparties arrive as opaque `rpb_*` refs — echo that same ref back here; the backend resolves it in-room (do not look it up, wake, or pay against it). Optional: Jev may select
|
|
452
|
+
.describe("Receiver id for the message. Prefer a real user/agent id when you have one. Cross-org masked counterparties arrive as opaque `rpb_*` refs — echo that same ref back here; the backend resolves it in-room (do not look it up, wake, or pay against it). Optional: with one other participant in the room, it is the recipient; with several, Jev may select one when confident. Otherwise the message remains room context with no specific wake. The last writer is never an automatic recipient. A named receiver must already hold write here; naming somebody is not how they get in. Pass 'human' to broadcast to the people in the room."),
|
|
453
453
|
conversationAgreementId: z.string().optional().describe('Explicit service work requested from the recipient. Room history never selects it.'),
|
|
454
454
|
underAgreementId: z.string().optional().describe('The agreement authorizing your run. It follows you across rooms and does not make the recipient your customer.'),
|
|
455
455
|
taskId: z.string().optional().describe('Task being discussed; its agreement determines this message’s work scope.'),
|
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"
|