@ziggs-ai/ziggs-mcp 0.43.35 → 0.43.37

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,15 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.43.37
6
+
7
+ - `ziggs_reach_search` searches threads, files and tasks you can read, by meaning and words. Each hit is a title and id. Exact-word file search stays on `ziggs_artifact_find`.
8
+
9
+ ## 0.43.36
10
+
11
+ - `ziggs_app_request` replaces `ziggs_connection_request`: ask a person to connect an app (an MCP server) and share its tools with you. Like `ziggs_app_call`, it is listed only on a connection configured with an operator key. A call to `ziggs_connection_request` or `ziggs_request_connection` says to use `ziggs_app_request`.
12
+ - Tool text and the skill say app where they said connection; an inbox link request is called a link request.
13
+
5
14
  ## 0.43.35
6
15
 
7
16
  - `ziggs_app_list` and `ziggs_app_call` replace `ziggs_connection_list`, `ziggs_connection_proxy`, `ziggs_mcp_tools_list` and `ziggs_mcp_tool_call`. An app is an MCP server or a built-in connector shared with you: list your apps, name one to see its tools, call one tool; Ziggs routes it and checks the grant. A connected assistant gets only `ziggs_app_list`; a connection configured with an operator key also gets `ziggs_app_call`. A call to an old name says which tool replaces it.
@@ -11,7 +11,7 @@ ziggs_agreement_respond ziggs_agreement_revoke ziggs_agreement_counter ziggs_agr
11
11
  ziggs_inbox_changes ziggs_inbox_peek ziggs_inbox ziggs_inbox_show ziggs_inbox_claim ziggs_inbox_ack ziggs_inbox_defer
12
12
  ziggs_grant_list ziggs_context_expand_reach ziggs_context_discover_grantable
13
13
  ziggs_open ziggs_access_explain ziggs_context_read
14
- ziggs_artifact_record ziggs_artifact_list ziggs_artifact_find
14
+ ziggs_artifact_record ziggs_artifact_list ziggs_artifact_find ziggs_reach_search
15
15
  ziggs_artifact_attach ziggs_artifact_contribution_review ziggs_artifact_contribute
16
16
  ziggs_artifact_upload_url ziggs_artifact_complete_file ziggs_artifact_download
17
17
  ziggs_message_read ziggs_message_send ziggs_message_replies ziggs_message_list ziggs_message_controls
@@ -93,7 +93,7 @@ export function buildReadPlan(inbox, grantsByScope, self = { agentId: '' }) {
93
93
  for (const c of connectionRequests)
94
94
  add(`respond:${c.requestId}`, {
95
95
  tool: 'ziggs_agreement_get', args: { agreementId: c.requestId },
96
- why: 'Read terms and approvalAction before answering this connection request.',
96
+ why: 'Read terms and approvalAction before answering this link request.',
97
97
  });
98
98
  const open = (kind, id, mine = true, settles) => add(`open:${kind}:${id}`, openCall(kind, id), mine, settles);
99
99
  // grantsByScope used to pin X-Context-Grant-Id on reconstructed via reads.
@@ -176,7 +176,7 @@ export function buildReadPlan(inbox, grantsByScope, self = { agentId: '' }) {
176
176
  break;
177
177
  case 'agreement': {
178
178
  // An agreement row whose reason names a decision on a request this
179
- // side made (an access request approved or refused, a connection
179
+ // side made (an access request approved or refused, an app
180
180
  // request answered, an approval slot filled) is planned as a read of
181
181
  // that agreement, and its `why` is what was decided rather than "open
182
182
  // the agreement": read generically, the row said nothing, and an agent
@@ -35,6 +35,7 @@ const RENAMED = [
35
35
  ['ziggs_list_connections', 'ziggs_app_list'],
36
36
  ['ziggs_connection_list', 'ziggs_app_list', 'One list for every app, MCP server or built-in connector.'],
37
37
  ['ziggs_connection_proxy', 'ziggs_app_call', 'One call for every app; Ziggs routes it by the app.'],
38
+ ['ziggs_connection_request', 'ziggs_app_request', 'What a person connects and shares with you is an app now.'],
38
39
  ['ziggs_mcp_tools_list', 'ziggs_app_list', 'Name the app to see its tools.'],
39
40
  ['ziggs_mcp_tool_call', 'ziggs_app_call', 'One call for every app; Ziggs routes it by the app.'],
40
41
  ['ziggs_list_grants', 'ziggs_grant_list'],
@@ -52,6 +53,7 @@ const RENAMED = [
52
53
  ['ziggs_read_context', 'ziggs_context_read'],
53
54
  ['ziggs_record_artifact', 'ziggs_artifact_record'],
54
55
  ['ziggs_redeem_party_connection_invite', 'ziggs_agreement_claim'],
56
+ ['ziggs_request_connection', 'ziggs_app_request', 'What a person connects and shares with you is an app now.'],
55
57
  ['ziggs_request_connection_status', 'ziggs_app_list'],
56
58
  ['ziggs_request_link', 'ziggs_link_propose'],
57
59
  ['ziggs_request_party_connection', 'ziggs_link_propose'],
@@ -108,7 +110,6 @@ const OTHER = [
108
110
  ['ziggs_mark_task_processing', gone('Nothing replaces it. Nearest: ziggs_inbox_claim.')],
109
111
  ['ziggs_update_task_state', gone('Nothing replaces it. Finish with ziggs_task_set_result or stop with ziggs_task_cancel.')],
110
112
  ['ziggs_switch_org', gone('The workspace is chosen when Ziggs is connected. See them with ziggs_org_list.')],
111
- ['ziggs_request_connection', gone('Requesting a connection is not a Ziggs MCP tool any more. See yours with ziggs_app_list.')],
112
113
  ['ziggs_artifact_reextract', gone('Not an agent tool any more.')],
113
114
  ['ziggs_provision_relay_workers', gone('Not an agent tool any more. Engage agents with the agreement tools and ziggs_task_create.')],
114
115
  ];
package/dist/tools.js CHANGED
@@ -4,7 +4,7 @@ import { INBOX_CARD_TOOL_META, inboxCardResult, registerInboxCardResource, } fro
4
4
  import { PAGE_CARD_TOOL_META, registerPageCardResource } from './pageCard.js';
5
5
  import { pageShowToolResult } from './pageShow.js';
6
6
  import { z } from 'zod';
7
- import { presentResourceActions, getAgreement, getMyAgreements, respondToAgreement, revokeAgreement, counterAgreement, fulfillAgreement, ContextReadClient, GrantsClient, InboxClient, SessionsClient, AssistantConnectionClient, createTask, isHeldTaskCreate, updateTaskState, acknowledgeTaskControl, replaceTaskPlan, updateTaskPlanSteps, listTasks, getTask, getBackendUrl, fetchMyOrgs, fetchSessionAccess, CallerContextClient, isMcpOAuthDelegateSession, GRANTS_CAPABILITIES, BUCKET_CAPABILITIES, AGREEMENT_TERMS_PARAMS, AGREEMENT_VERB_CAPABILITIES, LISTING_DOOR_CAPABILITIES, CONTEXT_GRANT_SCOPE_KINDS, contextCallersCapability, contextReadCapability, openCapability, accessExplainCapability, contextExpandReachCapability, contextDiscoverGrantableCapability, recordArtifactCapability, listArtifactsCapability, findArtifactsCapability, attachArtifactCapability, reviewArtifactContributionCapability, contributeArtifactCapability, uploadArtifactUrlCapability, completeArtifactFileCapability, downloadArtifactCapability, appListCapability, appCallCapability, requestConnectionCapability, agreementClaimCapability, agreementSubcontractCapability, listTasksCapability, cancelTaskCapability, passTaskOnCapability, delegateTaskCapability, marketplaceViewCapability, parseListFields, pickListedRows, listedFieldNote, sessionOrientation, presentTaskOutcome, explainRefusedRead, RESOURCE_HIDDEN_MESSAGE, SOURCES_DESCRIPTION, } from '@ziggs-ai/api-client';
7
+ import { presentResourceActions, getAgreement, getMyAgreements, respondToAgreement, revokeAgreement, counterAgreement, fulfillAgreement, ContextReadClient, GrantsClient, InboxClient, SessionsClient, AssistantConnectionClient, createTask, isHeldTaskCreate, updateTaskState, acknowledgeTaskControl, replaceTaskPlan, updateTaskPlanSteps, listTasks, getTask, getBackendUrl, fetchMyOrgs, fetchSessionAccess, CallerContextClient, isMcpOAuthDelegateSession, GRANTS_CAPABILITIES, BUCKET_CAPABILITIES, AGREEMENT_TERMS_PARAMS, AGREEMENT_VERB_CAPABILITIES, LISTING_DOOR_CAPABILITIES, CONTEXT_GRANT_SCOPE_KINDS, contextCallersCapability, contextReadCapability, openCapability, accessExplainCapability, contextExpandReachCapability, contextDiscoverGrantableCapability, reachSearchCapability, recordArtifactCapability, listArtifactsCapability, findArtifactsCapability, attachArtifactCapability, reviewArtifactContributionCapability, contributeArtifactCapability, uploadArtifactUrlCapability, completeArtifactFileCapability, downloadArtifactCapability, appListCapability, appCallCapability, appRequestCapability, agreementClaimCapability, agreementSubcontractCapability, listTasksCapability, cancelTaskCapability, passTaskOnCapability, delegateTaskCapability, marketplaceViewCapability, parseListFields, pickListedRows, listedFieldNote, sessionOrientation, presentTaskOutcome, explainRefusedRead, RESOURCE_HIDDEN_MESSAGE, SOURCES_DESCRIPTION, } from '@ziggs-ai/api-client';
8
8
  import { decodeOperatorKeyClaims } from './operatorKey.js';
9
9
  import { registerTrustTools } from './trustTools.js';
10
10
  import { registerPaymentTools } from './paymentTools.js';
@@ -196,7 +196,7 @@ async function loadSessionBinding(creds, cfg, opts = {}) {
196
196
  // every session. Nothing it did is lost: the agreement verbs and
197
197
  // ziggs_task_create are the same moves, one step at a time. Provisioning a
198
198
  // whole relay is operator work and belongs on an operator surface.
199
- function registerConnectionTools(server, creds, cfg) {
199
+ function registerAppTools(server, creds, cfg) {
200
200
  // Two tools for every app shared with the caller, MCP server or built-in
201
201
  // connector alike: ziggs_app_list says what it has (and, for one app, what
202
202
  // that app can do); ziggs_app_call runs one tool, routed by the app's kind,
@@ -213,7 +213,7 @@ function registerConnectionTools(server, creds, cfg) {
213
213
  if (!cfg.directConnection)
214
214
  return;
215
215
  registerCapability(server, appCallCapability, creds);
216
- registerCapability(server, requestConnectionCapability, creds);
216
+ registerCapability(server, appRequestCapability, creds);
217
217
  }
218
218
  function inboxFor(creds) {
219
219
  return new InboxClient(creds.operatorKey, creds.agentId, undefined, creds.instanceId, {
@@ -805,6 +805,7 @@ export function registerZiggsTools(server, creds, cfg) {
805
805
  registerCapability(server, contextCallersCapability, creds);
806
806
  registerCapability(server, contextExpandReachCapability, creds);
807
807
  registerCapability(server, contextDiscoverGrantableCapability, creds);
808
+ registerCapability(server, reachSearchCapability, creds);
808
809
  registerCapability(server, openCapability, creds);
809
810
  registerCapability(server, accessExplainCapability, creds);
810
811
  // The read-plan is MCP-local decoration (its next-call tool names and the
@@ -1124,9 +1125,9 @@ export function registerZiggsTools(server, creds, cfg) {
1124
1125
  }
1125
1126
  });
1126
1127
  // ---------------------------------------------------------------------------
1127
- // Connection proxy
1128
+ // Apps
1128
1129
  // ---------------------------------------------------------------------------
1129
- registerConnectionTools(server, creds, cfg);
1130
+ registerAppTools(server, creds, cfg);
1130
1131
  registerTrustTools(server, creds, cfg);
1131
1132
  registerPaymentTools(server, creds);
1132
1133
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/ziggs-mcp",
3
- "version": "0.43.35",
3
+ "version": "0.43.37",
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.26",
54
+ "@ziggs-ai/api-client": "0.42.28",
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.27"
60
+ "@ziggs-ai/agent-sdk": "0.48.30"
61
61
  },
62
62
  "engines": {
63
63
  "node": ">=20"
@@ -106,7 +106,7 @@ An app is an MCP server or a built-in connector (GitHub, Jira) that someone shar
106
106
  - Name one app (`app`: its id or name) to see its tools. Pass `tools: ["<name>"]` for those tools' parameters before calling one with arguments.
107
107
  - **`ziggs_app_call`** runs one tool: `app`, `tool` and `args`. Ziggs routes it to the app and checks your grant on every call. You never see the credential, and no task is needed.
108
108
 
109
- Where your tool list has no `ziggs_app_call`, you can list apps but not call them. To ask for an app you lack, use **`ziggs_connection_request`** where it is listed.
109
+ Where your tool list has no `ziggs_app_call`, you can list apps but not call them. To ask for an app you lack, use **`ziggs_app_request`** where it is listed.
110
110
 
111
111
  ## Untrusted input
112
112
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Reach is grant-gated
4
4
 
5
- You only read context your delegate **holds a grant for**. `ziggs_grant_list` lists every grant you hold across all rails (context / connection / wallet); `ziggs_context_read` enforces grants on every read.
5
+ You only read context your delegate **holds a grant for**. `ziggs_grant_list` lists every grant you hold across all rails (context / app / wallet; the app rail's `scopeKind` is `connection`); `ziggs_context_read` enforces grants on every read.
6
6
 
7
7
  To answer "what grants of mine do you hold?", call **`ziggs_grant_list`**: one call, all rails, cross-session. Filter by `scopeKind` for a single rail; rails you can't read are named in `unreadableRails`.
8
8
 
@@ -80,7 +80,7 @@ which workspace it is, and call `ziggs_introduction_redeem` with `confirm: true`
80
80
 
81
81
  **Org join:** accepting an org invite auto-links inviter ↔ joiner delegates when both exist (no separate MCP step).
82
82
 
83
- ## Web UI (Settings → Connections)
83
+ ## Links in the web app
84
84
 
85
- Confusingly named after the *other* "connection" (this is the agent-link handshake UI, not
86
- the apps you reach through `ziggs_app_list` and `ziggs_app_call`). After an agent link appears under **Connected**, use your Claude delegate (MCP) for **`ziggs_message_send`**, a bucket with them, or **`ziggs_context_delegate`**. The web UI manages handshake only, not chat or context grants.
85
+ The web app's link screens are the agent-link handshake only, not the apps you reach through
86
+ `ziggs_app_list` and `ziggs_app_call`. After an agent link is approved, use your Claude delegate (MCP) for **`ziggs_message_send`**, a bucket with them, or **`ziggs_context_delegate`**. The web app manages the handshake only, not chat or context grants.