@ziggs-ai/ziggs-mcp 0.37.1 → 0.37.3
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/config.d.ts +7 -0
- package/dist/protocol/connectText.d.ts +5 -1
- package/dist/protocol/connectText.js +10 -1
- package/dist/server.js +3 -1
- package/dist/tools.js +1 -1
- package/package.json +2 -2
package/dist/config.d.ts
CHANGED
|
@@ -107,6 +107,13 @@ export interface ZiggsMcpConfig extends EnvConfig {
|
|
|
107
107
|
* call may do: every call is still authorized by the backend.
|
|
108
108
|
*/
|
|
109
109
|
directConnection: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* The serving backend delivers `ziggs.inbox.updated` events to hosts that
|
|
112
|
+
* subscribe (its `MCP_EVENTS_ENABLED`). Only the remote server knows, so it
|
|
113
|
+
* sets this; stdio leaves it unset. Adds one rule to the directory door's
|
|
114
|
+
* connect text, inside that text's budget.
|
|
115
|
+
*/
|
|
116
|
+
eventsEnabled?: boolean;
|
|
110
117
|
}
|
|
111
118
|
/** Load delegate credentials from the environment. */
|
|
112
119
|
export declare function loadConfig(): ZiggsMcpConfig;
|
|
@@ -24,4 +24,8 @@ export type ConnectDoor = 'directory' | 'compact';
|
|
|
24
24
|
* inbox read, the first call an agent makes, in the same words as above.
|
|
25
25
|
*/
|
|
26
26
|
export declare function sessionRules(door: ConnectDoor): string[];
|
|
27
|
-
export
|
|
27
|
+
export interface ConnectTextOptions {
|
|
28
|
+
/** The serving backend delivers `ziggs.inbox.updated` events. */
|
|
29
|
+
events?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare function renderConnectText(door: ConnectDoor, options?: ConnectTextOptions): string;
|
|
@@ -47,12 +47,21 @@ export function sessionRules(door) {
|
|
|
47
47
|
return [DATA, INBOX[door], WAIT, ACCESS, REPLY, GROUNDING];
|
|
48
48
|
}
|
|
49
49
|
const CATALOG = 'Only the everyday tools are loaded. ziggs_tools lists the rest; call them through ziggs_tool_read or ziggs_tool_write.';
|
|
50
|
-
|
|
50
|
+
/**
|
|
51
|
+
* Directory door only: inbox events ride the connection key that door is
|
|
52
|
+
* minted for. Said only when the serving backend has events on, so a host is
|
|
53
|
+
* never told to subscribe where nothing answers. Lives here, inside the
|
|
54
|
+
* budget the tests enforce, rather than appended by the backend after the
|
|
55
|
+
* text was already sized: that append is what cut the text mid-word.
|
|
56
|
+
*/
|
|
57
|
+
const EVENTS = 'Inbox events: a host may subscribe to ziggs.inbox.updated per workspace; promise alerts only once it confirms. An event carries only orgId: read that inbox and follow its rules.';
|
|
58
|
+
export function renderConnectText(door, options = {}) {
|
|
51
59
|
return [
|
|
52
60
|
`- ${DATA}`,
|
|
53
61
|
`- ${SESSION}`,
|
|
54
62
|
`- ${INBOX[door]}`,
|
|
55
63
|
...RULES.map((r) => `- ${r}`),
|
|
56
64
|
...(door === 'compact' ? [`- ${CATALOG}`] : []),
|
|
65
|
+
...(door === 'directory' && options.events ? [`- ${EVENTS}`] : []),
|
|
57
66
|
].join('\n');
|
|
58
67
|
}
|
package/dist/server.js
CHANGED
|
@@ -23,7 +23,9 @@ export function createZiggsMcpServer(creds, cfg) {
|
|
|
23
23
|
// this into model context on `initialize`: the short connect text, the
|
|
24
24
|
// same for every client — clients truncate a long one. Covers
|
|
25
25
|
// stdio and remote HTTP alike, since both build the server here.
|
|
26
|
-
instructions: renderConnectText(cfg.directConnection === false ? 'directory' : 'compact'
|
|
26
|
+
instructions: renderConnectText(cfg.directConnection === false ? 'directory' : 'compact', {
|
|
27
|
+
events: cfg.eventsEnabled === true,
|
|
28
|
+
}),
|
|
27
29
|
});
|
|
28
30
|
if (cfg.directConnection === false)
|
|
29
31
|
installDirectorySurface(server);
|
package/dist/tools.js
CHANGED
|
@@ -436,7 +436,7 @@ export function registerZiggsTools(server, creds, cfg) {
|
|
|
436
436
|
receiverId: z
|
|
437
437
|
.string()
|
|
438
438
|
.optional()
|
|
439
|
-
.describe("Receiver id for the message. Leave it out to write back in this room, and name someone only when you mean them. To name a masked party, pass its `rpb_` ref as it came; do not look it up, wake it, or pay against it. With one other participant, they are the recipient. With several, Jev may select one when confident. Otherwise the message stays in the room with no specific wake. A named receiver must already hold write here; naming somebody is not how they get in. Pass 'human' to
|
|
439
|
+
.describe("Receiver id for the message. Leave it out to write back in this room, and name someone only when you mean them. To name a masked party, pass its `rpb_` ref as it came; do not look it up, wake it, or pay against it. With one other participant, they are the recipient. With several, Jev may select one when confident. Otherwise the message stays in the room with no specific wake. A named receiver must already hold write here; naming somebody is not how they get in. Pass 'human' only for a broadcast to the people in the room; it does not wake assistants or stand-ins. For a reply from a person or their assistant, name that person's returned participant id. This does not grant their assistant access or guarantee a reply."),
|
|
440
440
|
conversationAgreementId: z.string().optional().describe('The agreement this message is under. Required when a send was refused with WORK_SELECTION_REQUIRED: pick one of its choices. Room history never selects it.'),
|
|
441
441
|
underAgreementId: z.string().optional().describe('The agreement authorizing your run. It follows you across rooms and does not make the recipient your customer.'),
|
|
442
442
|
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.37.
|
|
3
|
+
"version": "0.37.3",
|
|
4
4
|
"description": "MCP server for Claude Code, Cursor, and other MCP hosts \u2014 act as your Ziggs delegate agent",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
50
|
-
"@ziggs-ai/api-client": "0.37.
|
|
50
|
+
"@ziggs-ai/api-client": "0.37.1",
|
|
51
51
|
"dotenv": "^16.6.1",
|
|
52
52
|
"zod": "^3.24.2",
|
|
53
53
|
"zod-to-json-schema": "^3.25.1"
|