@ziggs-ai/ziggs-mcp 0.43.3 → 0.43.5

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.43.5
6
+
7
+ - `ziggs_session_hold` takes `messageId` (any message of the conversation) in place of `executionContextId`: a window holds a conversation by its thread, so the follow-up reaches the window that holds it. `ziggs_session_list` rows carry `heldThreadIds` in place of `heldExecutionIds`. A window that writes in a thread holds it without calling anything.
8
+
9
+ ## 0.43.4
10
+
5
11
  ## 0.43.3
6
12
 
7
13
  - Assistants connected through ChatGPT, Claude and Cursor can now list, read and send in buckets: `ziggs_bucket_list`, `ziggs_bucket_read` and `ziggs_bucket_send` join create and insert.
package/dist/config.d.ts CHANGED
@@ -48,7 +48,8 @@ declare const envSchema: z.ZodObject<{
48
48
  * skipping the heavy groups (payments, links, marketplace, connections) to
49
49
  * cut cold-start deferred-loading (#7). Unset = all tools register.
50
50
  */
51
- ZIGGS_MCP_CORE_ONLY: z.ZodOptional<z.ZodString>;
51
+ /** Set to 1/true/yes to also list the tool catalog and the read/write dispatchers (for clients that mount only an allow-list). */
52
+ ZIGGS_MCP_CATALOG: z.ZodOptional<z.ZodString>;
52
53
  /**
53
54
  * Set to 1/true/yes to ring an open Claude Code session when new mail
54
55
  * arrives (a Claude Code channel). Claude Code must also load this server
@@ -68,7 +69,7 @@ declare const envSchema: z.ZodObject<{
68
69
  ZIGGS_APP?: string | undefined;
69
70
  ZIGGS_SESSION_NAME?: string | undefined;
70
71
  ZIGGS_MCP_DEBUG?: string | undefined;
71
- ZIGGS_MCP_CORE_ONLY?: string | undefined;
72
+ ZIGGS_MCP_CATALOG?: string | undefined;
72
73
  ZIGGS_MCP_CHANNEL?: string | undefined;
73
74
  }, {
74
75
  ZIGGS_OPERATOR_KEY: string;
@@ -83,7 +84,7 @@ declare const envSchema: z.ZodObject<{
83
84
  ZIGGS_APP?: string | undefined;
84
85
  ZIGGS_SESSION_NAME?: string | undefined;
85
86
  ZIGGS_MCP_DEBUG?: string | undefined;
86
- ZIGGS_MCP_CORE_ONLY?: string | undefined;
87
+ ZIGGS_MCP_CATALOG?: string | undefined;
87
88
  ZIGGS_MCP_CHANNEL?: string | undefined;
88
89
  }>;
89
90
  type EnvConfig = z.infer<typeof envSchema>;
@@ -96,7 +97,8 @@ export interface ZiggsMcpConfig extends EnvConfig {
96
97
  * When true, register only the core everyday/session-start tool tier and skip
97
98
  * the heavy groups (payments, links, marketplace, connections) #7.
98
99
  */
99
- coreOnly: boolean;
100
+ /** List `ziggs_tools`, `ziggs_tool_read` and `ziggs_tool_write` on the operator-key door. */
101
+ catalog?: boolean;
100
102
  /**
101
103
  * True unless the credential was minted by the MCP OAuth consent flow.
102
104
  *
package/dist/config.js CHANGED
@@ -50,7 +50,8 @@ const envSchema = z.object({
50
50
  * skipping the heavy groups (payments, links, marketplace, connections) to
51
51
  * cut cold-start deferred-loading (#7). Unset = all tools register.
52
52
  */
53
- ZIGGS_MCP_CORE_ONLY: z.string().optional(),
53
+ /** Set to 1/true/yes to also list the tool catalog and the read/write dispatchers (for clients that mount only an allow-list). */
54
+ ZIGGS_MCP_CATALOG: z.string().optional(),
54
55
  /**
55
56
  * Set to 1/true/yes to ring an open Claude Code session when new mail
56
57
  * arrives (a Claude Code channel). Claude Code must also load this server
@@ -58,7 +59,7 @@ const envSchema = z.object({
58
59
  */
59
60
  ZIGGS_MCP_CHANNEL: z.string().optional(),
60
61
  });
61
- /** Parse a truthy env flag (1/true/yes) — shared by ZIGGS_MCP_DEBUG and ZIGGS_MCP_CORE_ONLY. */
62
+ /** Parse a truthy env flag (1/true/yes) (ZIGGS_MCP_DEBUG). */
62
63
  function parseBoolFlag(raw) {
63
64
  if (!raw)
64
65
  return false;
@@ -80,7 +81,7 @@ export function loadConfig() {
80
81
  ZIGGS_APP: process.env.ZIGGS_APP,
81
82
  ZIGGS_SESSION_NAME: process.env.ZIGGS_SESSION_NAME,
82
83
  ZIGGS_MCP_DEBUG: process.env.ZIGGS_MCP_DEBUG,
83
- ZIGGS_MCP_CORE_ONLY: process.env.ZIGGS_MCP_CORE_ONLY,
84
+ ZIGGS_MCP_CATALOG: process.env.ZIGGS_MCP_CATALOG,
84
85
  ZIGGS_MCP_CHANNEL: process.env.ZIGGS_MCP_CHANNEL,
85
86
  };
86
87
  const parsed = envSchema.safeParse(raw);
@@ -114,7 +115,7 @@ export function loadConfig() {
114
115
  ...parsed.data,
115
116
  resolvedAgentId,
116
117
  debugTools: parseBoolFlag(parsed.data.ZIGGS_MCP_DEBUG),
117
- coreOnly: parseBoolFlag(parsed.data.ZIGGS_MCP_CORE_ONLY),
118
+ catalog: parseBoolFlag(parsed.data.ZIGGS_MCP_CATALOG),
118
119
  channel: parseBoolFlag(parsed.data.ZIGGS_MCP_CHANNEL),
119
120
  directConnection: !isDirectoryBoarded(decodeOperatorKeyClaims(parsed.data.ZIGGS_OPERATOR_KEY)),
120
121
  };
@@ -36,7 +36,6 @@ export function connectionFromBearer(bearer, httpBaseUrl, ownerUserId, execution
36
36
  ZIGGS_OWNER_USER_ID: ownerUserId,
37
37
  resolvedAgentId,
38
38
  debugTools: false,
39
- coreOnly: false,
40
39
  // The listed surface for a token the OAuth consent flow minted (a connected
41
40
  // assistant), the whole surface for an operator key someone pasted here
42
41
  // themselves. The line is the credential, not this endpoint; see
@@ -19,7 +19,7 @@ export declare const PROTOCOL: {
19
19
  * a key-based (compact) door lists the everyday set and reaches the rest
20
20
  * through the catalog. The skill ships on both, so it says both.
21
21
  */
22
- readonly surface: "Every tool you can call is listed by name, and each says whether it only reads. A key-based connection that lists ziggs_tools also reaches the rest of the surface through it: ziggs_tools names them, ziggs_tool_read and ziggs_tool_write call them by name. Check the list before concluding a capability is missing.";
22
+ readonly surface: "Every tool you can call is listed by name, and each says whether it only reads. A client that asks for the catalog (ZIGGS_MCP_CATALOG) also gets ziggs_tools, ziggs_tool_read and ziggs_tool_write to reach the rest of the surface by name. Check the list before concluding a capability is missing.";
23
23
  /** The working loop, as the `ziggs_inbox` description phrases it. */
24
24
  readonly loop: "Flow: inbox → read → act → ack. Use the workspace your human named. If they didn't, ask them. Never guess.";
25
25
  /**
@@ -19,7 +19,7 @@ export const PROTOCOL = {
19
19
  * a key-based (compact) door lists the everyday set and reaches the rest
20
20
  * through the catalog. The skill ships on both, so it says both.
21
21
  */
22
- surface: 'Every tool you can call is listed by name, and each says whether it only reads. A key-based connection that lists ziggs_tools also reaches the rest of the surface through it: ziggs_tools names them, ziggs_tool_read and ziggs_tool_write call them by name. Check the list before concluding a capability is missing.',
22
+ surface: 'Every tool you can call is listed by name, and each says whether it only reads. A client that asks for the catalog (ZIGGS_MCP_CATALOG) also gets ziggs_tools, ziggs_tool_read and ziggs_tool_write to reach the rest of the surface by name. Check the list before concluding a capability is missing.',
23
23
  /** The working loop, as the `ziggs_inbox` description phrases it. */
24
24
  loop: "Flow: inbox → read → act → ack. Use the workspace your human named. If they didn't, ask them. Never guess.",
25
25
  /**
@@ -155,7 +155,7 @@ export function retiredToolResult(name, retired, ctx) {
155
155
  }
156
156
  if (ctx.door === 'compact') {
157
157
  lines.push(retired.use.length
158
- ? 'Call the replacement now through ziggs_tool_read (read-only tools) or ziggs_tool_write (tools that change something), and also give your person these steps so your tool list is current:'
158
+ ? 'Call the replacement now by its name from your tool list, and also give your person these steps so your tool list is current:'
159
159
  : 'Give your person these steps so your tool list is current:');
160
160
  }
161
161
  else {
package/dist/server.js CHANGED
@@ -39,11 +39,11 @@ export function createZiggsMcpServer(creds, cfg) {
39
39
  installConnectionNotices(server, creds, version);
40
40
  const routedCreds = installWorkspaceRouting(server, creds);
41
41
  registerZiggsTools(server, routedCreds, cfg.directConnection === false
42
- ? { ...cfg, coreOnly: false, debugTools: false } : cfg);
42
+ ? { ...cfg, debugTools: false } : cfg);
43
43
  // Directory clients get every registered operation directly. The compact
44
44
  // catalog remains only for self-configured operator-key clients.
45
45
  if (cfg.directConnection !== false)
46
- applySurfacePolicy(server, { pickTool: backendToolPick(creds) });
46
+ applySurfacePolicy(server, { pickTool: backendToolPick(creds), listCatalog: cfg.catalog === true });
47
47
  listWithoutSchemaDialect(server);
48
48
  answerRetiredCalls(server, cfg.directConnection === false ? 'directory' : 'compact');
49
49
  return server;
@@ -88,23 +88,16 @@ meta) {
88
88
  shape = { ...shape, orgId: shape.orgId?.optional() ?? z.string().optional().describe(WORKSPACE_PARAM) };
89
89
  cb = router.wrap(name, annotations.readOnlyHint === true, cb, nativeOrgId);
90
90
  }
91
- // A tool that declares its own `executionContextId` (ziggs_session_hold)
92
- // names an execution as its subject, not the work it runs inside. Its param
93
- // keeps its own schema and reaches the handler untouched; the call runs under
94
- // the connection's execution like any call that selects none.
95
- const ownsExecutionParam = Object.prototype.hasOwnProperty.call(shape, 'executionContextId');
96
- if (!ownsExecutionParam)
97
- shape = { ...shape, executionContextId: z.string().optional() };
91
+ shape = { ...shape, executionContextId: z.string().optional() };
98
92
  const routed = cb;
99
93
  cb = (async (...args) => {
100
94
  const input = args[0];
101
- const selected = !ownsExecutionParam && typeof input.executionContextId === 'string' ? input.executionContextId : undefined;
95
+ const selected = typeof input.executionContextId === 'string' ? input.executionContextId : undefined;
102
96
  const executionContextId = selected ?? defaultExecutions.get(server);
103
97
  // Account-level notices and their cache belong outside shared execution state.
104
98
  const notices = executionContextId ? [] : await readConnectionNotices(server, name === 'ziggs_auth_status' || name === 'ziggs_inbox');
105
99
  const clean = { ...input };
106
- if (!ownsExecutionParam)
107
- delete clean.executionContextId;
100
+ delete clean.executionContextId;
108
101
  const forwarded = [clean, ...args.slice(1)];
109
102
  return withWorkExecutionId(executionContextId, async () => appendConnectionNotices(server, name, markIntroductionStrings(name, clean, await routed(...forwarded)), notices));
110
103
  });
package/dist/surface.d.ts CHANGED
@@ -30,7 +30,7 @@ import { type CatalogEntry } from './toolCatalog.js';
30
30
  */
31
31
  export declare const NATIVE_TOOLS: readonly string[];
32
32
  /**
33
- * The catalog and its two dispatchers. Always listed, whatever the tier.
33
+ * The catalog and its two dispatchers. Listed only when a client asks (ZIGGS_MCP_CATALOG).
34
34
  *
35
35
  * Two dispatchers rather than one, split by annotation. A host and a store
36
36
  * reviewer both read what a tool is from its annotation, and one dispatcher
@@ -62,4 +62,6 @@ export declare function listWithoutSchemaDialect(server: McpServer): void;
62
62
  export declare function applySurfacePolicy(server: McpServer, opts?: {
63
63
  /** Answers `ziggs_tools need=`. Absent: `need` falls back to the full list. */
64
64
  pickTool?: PickTool;
65
+ /** List the catalog and the dispatchers. Off by default: every tool is already listed. */
66
+ listCatalog?: boolean;
65
67
  }): void;
package/dist/surface.js CHANGED
@@ -49,7 +49,7 @@ const TOOLS_CATALOG_NAME = 'ziggs_tools';
49
49
  const TOOL_READ_NAME = 'ziggs_tool_read';
50
50
  const TOOL_WRITE_NAME = 'ziggs_tool_write';
51
51
  /**
52
- * The catalog and its two dispatchers. Always listed, whatever the tier.
52
+ * The catalog and its two dispatchers. Listed only when a client asks (ZIGGS_MCP_CATALOG).
53
53
  *
54
54
  * Two dispatchers rather than one, split by annotation. A host and a store
55
55
  * reviewer both read what a tool is from its annotation, and one dispatcher
@@ -186,6 +186,8 @@ function registerDispatcher(server, lane) {
186
186
  * the list (an allow-list) still reaches the rest.
187
187
  */
188
188
  export function applySurfacePolicy(server, opts = {}) {
189
+ if (opts.listCatalog !== true)
190
+ return;
189
191
  // Every tool is listed, as on the directory door. Listing everything costs
190
192
  // the same or less per task, because a tool outside the everyday set no
191
193
  // longer needs a catalog call first, and a host's permission prompt names
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Search aliases for the catalog listing.
3
3
  *
4
- * Names-first delivery made `ziggs_tools { search }` the way a caller finds a
5
- * tool, and it matched on name and title only. That is fine when the caller
4
+ * `ziggs_tools { search }` is how a caller finds a tool in the catalog, and it
5
+ * matched on name and title only. That is fine when the caller
6
6
  * already speaks our vocabulary and useless when it does not: searching "hire"
7
7
  * returned `ziggs_agreement_handoff` — one tool, and the wrong one — because
8
8
  * "hire" happened to appear in that title and nowhere else. The default door
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Search aliases for the catalog listing.
3
3
  *
4
- * Names-first delivery made `ziggs_tools { search }` the way a caller finds a
5
- * tool, and it matched on name and title only. That is fine when the caller
4
+ * `ziggs_tools { search }` is how a caller finds a tool in the catalog, and it
5
+ * matched on name and title only. That is fine when the caller
6
6
  * already speaks our vocabulary and useless when it does not: searching "hire"
7
7
  * returned `ziggs_agreement_handoff` — one tool, and the wrong one — because
8
8
  * "hire" happened to appear in that title and nowhere else. The default door
@@ -23,9 +23,9 @@ import type { TitledAnnotations } from './toolAnnotations.js';
23
23
  * needs no cooperation from any client. Two of them, one per annotation lane
24
24
  * (`ziggs_tool_read`, `ziggs_tool_write`): a host and a store reviewer read
25
25
  * what a tool is from its annotation, and one dispatcher cannot be read-only
26
- * and writing at once. Nothing is hidden: `ziggs_tools` names
27
- * every tool that exists, and `ziggs_tools` with `describe` hands back full
28
- * schemas on demand. An agent can always find what exists and ask for it,
26
+ * and writing at once. These three tools are listed only when a client asks
27
+ * (`ZIGGS_MCP_CATALOG`); otherwise every operation is listed natively and the
28
+ * catalog stays reachable for clients that mount an allow-list. An agent can always find what exists and ask for it,
29
29
  * which is what made per-caller filtering the wrong trade.
30
30
  *
31
31
  * The cost this shape does carry: catalog tools are not first-class in the
package/dist/tools.js CHANGED
@@ -363,6 +363,17 @@ export function registerZiggsTools(server, creds, cfg) {
363
363
  return toolError(e);
364
364
  }
365
365
  });
366
+ const AGREEMENT_LIST_DEFAULT_FIELDS = [
367
+ 'agreementId',
368
+ 'status',
369
+ 'proposalStatus',
370
+ 'engagementKind',
371
+ 'description',
372
+ 'parties',
373
+ 'peer',
374
+ 'money',
375
+ 'expiresAt',
376
+ ];
366
377
  registerStrictTool(server, 'ziggs_agreement_list', {
367
378
  scope: z
368
379
  .enum(['mine', 'reachable'])
@@ -375,7 +386,7 @@ export function registerZiggsTools(server, creds, cfg) {
375
386
  fields: z
376
387
  .array(z.string())
377
388
  .optional()
378
- .describe('Return only these keys on each row. Omit for the full row. Keep agreementId if you will claim or get next.'),
389
+ .describe('Return only these keys on each row. Omit for short rows (id, status, parties, description, money); ziggs_agreement_get returns the full agreement. Keep agreementId if you will claim or get next.'),
379
390
  }, readOnly('List your agreements'), async ({ scope, proposalStatus, fields }) => {
380
391
  try {
381
392
  const agreements = await getMyAgreements({
@@ -383,11 +394,17 @@ export function registerZiggsTools(server, creds, cfg) {
383
394
  partyOnly: scope === 'mine',
384
395
  }, creds);
385
396
  const projected = parseListFields(fields);
397
+ // Without `fields` a row is the short summary; the full row is one
398
+ // ziggs_agreement_get away, and `fields` opts back into any key.
386
399
  return textResult({
387
400
  count: agreements.length,
388
401
  scope: scope ?? 'reachable',
389
- agreements: pickListedRows(agreements, projected),
390
- ...listedFieldNote(agreements, projected),
402
+ agreements: pickListedRows(agreements, projected ?? AGREEMENT_LIST_DEFAULT_FIELDS),
403
+ ...(projected
404
+ ? listedFieldNote(agreements, projected)
405
+ : {
406
+ note: 'Short rows. ziggs_agreement_get returns the full agreement; fields picks other keys.',
407
+ }),
391
408
  });
392
409
  }
393
410
  catch (e) {
@@ -423,10 +440,8 @@ export function registerZiggsTools(server, creds, cfg) {
423
440
  registerCapability(server, agreementSubcontractCapability, creds, {
424
441
  webUrl: cfg.ZIGGS_WEB_URL,
425
442
  });
426
- // browse rides wherever claim rides. ziggs_agreement_claim is
427
- // always registered, so the view that produces claimable agreement ids must
428
- // survive coreOnly too; an agent that can claim but cannot browse holds a
429
- // default pathway it cannot begin.
443
+ // browse rides wherever claim rides: an agent that can claim but cannot
444
+ // browse holds a default pathway it cannot begin.
430
445
  registerCapability(server, marketplaceViewCapability, creds);
431
446
  registerStrictTool(server, 'ziggs_agreement_respond', {
432
447
  agreementId: z.string(),
@@ -557,13 +572,13 @@ export function registerZiggsTools(server, creds, cfg) {
557
572
  }
558
573
  });
559
574
  registerStrictTool(server, 'ziggs_session_hold', {
560
- executionContextId: z
575
+ messageId: z
561
576
  .string()
562
577
  .min(1)
563
- .describe('Execution context to hold in this window. Taken off any sibling that held it.'),
564
- }, write('Hold an execution in this window'), async ({ executionContextId }) => {
578
+ .describe('Any message of the conversation to hold in this window. Taken off any sibling that held it.'),
579
+ }, write('Hold a conversation in this window'), async ({ messageId }) => {
565
580
  try {
566
- const result = await new SessionsClient(creds).hold(executionContextId);
581
+ const result = await new SessionsClient(creds).hold(messageId);
567
582
  return textResult(result);
568
583
  }
569
584
  catch (error) {
@@ -1122,11 +1137,7 @@ export function registerZiggsTools(server, creds, cfg) {
1122
1137
  // ---------------------------------------------------------------------------
1123
1138
  // Connection proxy
1124
1139
  // ---------------------------------------------------------------------------
1125
- if (!cfg.coreOnly) {
1126
- registerConnectionTools(server, creds, cfg);
1127
- }
1140
+ registerConnectionTools(server, creds, cfg);
1128
1141
  registerTrustTools(server, creds, cfg);
1129
- if (!cfg.coreOnly) {
1130
- registerPaymentTools(server, creds);
1131
- }
1142
+ registerPaymentTools(server, creds);
1132
1143
  }
@@ -16,18 +16,15 @@ export function registerTrustTools(server, creds, cfg) {
16
16
  registerCapabilities(server, DISCOVERY_CAPABILITIES, creds);
17
17
  registerCapability(server, contextDelegateCapability, creds);
18
18
  registerCapability(server, accessRequestCapability, creds, { webUrl });
19
- if (!cfg?.coreOnly) {
20
- // #7 — the link tool group is skipped by the lean session-start
21
- // tier (ZIGGS_MCP_CORE_ONLY). Definitions live in the shared capability
22
- // layer, including the linkSummary shaping the mutations now share.
23
- registerCapabilities(server, LINK_CAPABILITIES, creds, { webUrl });
24
- // The introduction rail rides with links: redeeming one is how a
25
- // meeting somewhere Ziggs does not own becomes a link proposal here.
26
- registerCapabilities(server, INTRODUCTION_CAPABILITIES, creds, { webUrl });
27
- // A person not on Ziggs yet arrives by mail or Slack; what the workspace
28
- // knows about them rides in every snapshot they appear in.
29
- registerCapabilities(server, PARTY_CAPABILITIES, creds);
30
- }
19
+ // Link definitions live in the shared capability layer, including the
20
+ // linkSummary shaping the mutations share.
21
+ registerCapabilities(server, LINK_CAPABILITIES, creds, { webUrl });
22
+ // The introduction rail rides with links: redeeming one is how a
23
+ // meeting somewhere Ziggs does not own becomes a link proposal here.
24
+ registerCapabilities(server, INTRODUCTION_CAPABILITIES, creds, { webUrl });
25
+ // A person not on Ziggs yet arrives by mail or Slack; what the workspace
26
+ // knows about them rides in every snapshot they appear in.
27
+ registerCapabilities(server, PARTY_CAPABILITIES, creds);
31
28
  registerStrictTool(server, 'ziggs_context_revoke_grant', {
32
29
  grantId: z.string(),
33
30
  }, destructive('Revoke a context grant'), async ({ grantId }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/ziggs-mcp",
3
- "version": "0.43.3",
3
+ "version": "0.43.5",
4
4
  "description": "MCP server for Claude Code, Cursor, and other MCP hosts — act as your Ziggs delegate agent",
5
5
  "homepage": "https://ziggsai.com/docs",
6
6
  "bugs": {
@@ -51,13 +51,13 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@modelcontextprotocol/sdk": "^1.29.0",
54
- "@ziggs-ai/api-client": "0.42.2",
54
+ "@ziggs-ai/api-client": "0.42.4",
55
55
  "dotenv": "^16.6.1",
56
56
  "zod": "^3.24.2",
57
57
  "zod-to-json-schema": "^3.25.1"
58
58
  },
59
59
  "devDependencies": {
60
- "@ziggs-ai/agent-sdk": "0.48.2"
60
+ "@ziggs-ai/agent-sdk": "0.48.4"
61
61
  },
62
62
  "engines": {
63
63
  "node": ">=20"
@@ -3,7 +3,7 @@
3
3
 
4
4
  You are a delegate agent on a Ziggs team. Read workBrief for the current work and audience; open and access_explain return the same scoped action states. Use each action’s tool, args and required inputs. A recovery call is a suggested next step, never an approval. Do not reconstruct authority from role names. Not evaluated means the normal tool still checks the action; it does not require a new human approval. workBrief.position describes the selected execution: actor, accountable party, agreement, role, destination and audience. A view has no execution authority. Unnamed audience readers still constrain the work. actingFor describes the separate spending mandate; role and relationship.side authorize nothing by themselves. A conversation alone never selects a customer payer. Select command.mandate.agreementId explicitly for agreed work; refused paid work cannot fall back to a personal send. The MCP tools are the connection; operate by this protocol.
5
5
 
6
- - Every tool you can call is listed by name, and each says whether it only reads. A key-based connection that lists ziggs_tools also reaches the rest of the surface through it: ziggs_tools names them, ziggs_tool_read and ziggs_tool_write call them by name. Check the list before concluding a capability is missing.
6
+ - Every tool you can call is listed by name, and each says whether it only reads. A client that asks for the catalog (ZIGGS_MCP_CATALOG) also gets ziggs_tools, ziggs_tool_read and ziggs_tool_write to reach the rest of the surface by name. Check the list before concluding a capability is missing.
7
7
  - Flow: inbox → read → act → ack. Use the workspace your human named. If they didn't, ask them. Never guess.
8
8
  - All communication uses ziggs_message_send with command:{operationId,content:{text},audience:{kind:"explicit",principalIds:[...]},deliveries:{kind:"explicit",principalIds:[...]},intent}. Every message carries one flag: intent "request" wakes the agents it is delivered to; intent "fyi" is delivered and filed, never woken on. Nothing records whether a request was answered: a reply is ziggs_message_send with your text and relationships.replyToMessageId naming the message it answers, and that link is the only link. Select command.mandate:{agreementId,taskId?} for work; a message carrying relationships.taskIds or a task mandate is that task's input. relationships.replyToMessageId is causal only, never access, delivery or completion. Reuse the exact operationId and command after an uncertain response; conflicts are refusals. ziggs_message_replies reads authorized durable replies, independently of receipts. Pages invoke these same operations. Reading never advances the watermark. Pass ackTo VERBATIM to ziggs_inbox_ack to record observation. Complete assigned work separately with handledDeliveryIds containing only successfully handled receiptId values. Failed or inaccessible assignments stay pending. A resource ID is not a receipt. Carry executionContext.contextId as executionContextId on every read and action for that assignment, and isolate model state between execution contexts. Rows without your assignment are observations, never your completion receipts. Never rewind an ack to an older value.
9
9
  - Honor task.control when opening work or handling a task change. For pause or stop, stop starting actions for that task, settle in-flight work, then call ziggs_task_acknowledge_control with its current requestId and supported=true. If you cannot honor it, report supported=false. Never attest that another runtime stopped. Continue unrelated conversation and tasks. Resume allows this task to run again. Work is a task under an agreement (the ticket). Read it from the inbox — or, if handed a bare taskId, open it with ziggs_task_get — then post progress by naming the steps that changed with ziggs_task_update_steps. Restructure the checklist with ziggs_task_replace_plan (full list).
@@ -22,7 +22,7 @@ You represent a **delegate agent** on Ziggs. MCP tools are the connection; this
22
22
  <!-- BEGIN GENERATED: delegate-protocol — generated file, do not edit by hand -->
23
23
  _You are a delegate agent on a Ziggs team. Read workBrief for the current work and audience; open and access_explain return the same scoped action states. Use each action’s tool, args and required inputs. A recovery call is a suggested next step, never an approval. Do not reconstruct authority from role names. Not evaluated means the normal tool still checks the action; it does not require a new human approval. workBrief.position describes the selected execution: actor, accountable party, agreement, role, destination and audience. A view has no execution authority. Unnamed audience readers still constrain the work. actingFor describes the separate spending mandate; role and relationship.side authorize nothing by themselves. A conversation alone never selects a customer payer. Select command.mandate.agreementId explicitly for agreed work; refused paid work cannot fall back to a personal send. The MCP tools are the connection; operate by this protocol._
24
24
 
25
- - Every tool you can call is listed by name, and each says whether it only reads. A key-based connection that lists ziggs_tools also reaches the rest of the surface through it: ziggs_tools names them, ziggs_tool_read and ziggs_tool_write call them by name. Check the list before concluding a capability is missing.
25
+ - Every tool you can call is listed by name, and each says whether it only reads. A client that asks for the catalog (ZIGGS_MCP_CATALOG) also gets ziggs_tools, ziggs_tool_read and ziggs_tool_write to reach the rest of the surface by name. Check the list before concluding a capability is missing.
26
26
  - Flow: inbox → read → act → ack. Use the workspace your human named. If they didn't, ask them. Never guess.
27
27
  - All communication uses ziggs_message_send with command:{operationId,content:{text},audience:{kind:"explicit",principalIds:[...]},deliveries:{kind:"explicit",principalIds:[...]},intent}. Every message carries one flag: intent "request" wakes the agents it is delivered to; intent "fyi" is delivered and filed, never woken on. Nothing records whether a request was answered: a reply is ziggs_message_send with your text and relationships.replyToMessageId naming the message it answers, and that link is the only link. Select command.mandate:{agreementId,taskId?} for work; a message carrying relationships.taskIds or a task mandate is that task's input. relationships.replyToMessageId is causal only, never access, delivery or completion. Reuse the exact operationId and command after an uncertain response; conflicts are refusals. ziggs_message_replies reads authorized durable replies, independently of receipts. Pages invoke these same operations. Reading never advances the watermark. Pass ackTo VERBATIM to ziggs_inbox_ack to record observation. Complete assigned work separately with handledDeliveryIds containing only successfully handled receiptId values. Failed or inaccessible assignments stay pending. A resource ID is not a receipt. Carry executionContext.contextId as executionContextId on every read and action for that assignment, and isolate model state between execution contexts. Rows without your assignment are observations, never your completion receipts. Never rewind an ack to an older value.
28
28
  - Honor task.control when opening work or handling a task change. For pause or stop, stop starting actions for that task, settle in-flight work, then call ziggs_task_acknowledge_control with its current requestId and supported=true. If you cannot honor it, report supported=false. Never attest that another runtime stopped. Continue unrelated conversation and tasks. Resume allows this task to run again. Work is a task under an agreement (the ticket). Read it from the inbox — or, if handed a bare taskId, open it with ziggs_task_get — then post progress by naming the steps that changed with ziggs_task_update_steps. Restructure the checklist with ziggs_task_replace_plan (full list).