@ziggs-ai/ziggs-mcp 0.14.1 → 0.14.2
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/tools.js +2 -36
- package/package.json +2 -2
package/dist/tools.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { randomUUID } from 'node:crypto';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { getAgreement, getMyAgreements, listMyChats, delegateAgreement, respondToAgreement, revokeAgreement, counterAgreement, fulfillAgreement, sendChatMessage, ConnectionsClient, PaymentsClient, ContextReadClient, GrantsClient, InboxClient, createTask, updateTaskState, replaceTaskPlan, updateTaskPlanSteps, listTasks, getTask, getBackendUrl, fetchMyOrgs, fetchSessionAccess, isMcpOAuthDelegateAgentId, GRANTS_CAPABILITIES, AGREEMENT_VERB_CAPABILITIES, CONTEXT_GRANT_SCOPE_KINDS, contextReadCapability, contextExpandReachCapability, contextDiscoverGrantableCapability, recordArtifactCapability, listArtifactsCapability, shareArtifactCapability, attachArtifactCapability, uploadArtifactUrlCapability, completeArtifactFileCapability, downloadArtifactCapability, openConversationCapability, connectionProxyCapability, requestConnectionCapability, agreementClaimCapability, marketplaceViewCapability, } from '@ziggs-ai/api-client';
|
|
3
|
+
import { getAgreement, getMyAgreements, listMyChats, delegateAgreement, respondToAgreement, revokeAgreement, counterAgreement, fulfillAgreement, sendChatMessage, ConnectionsClient, PaymentsClient, ContextReadClient, GrantsClient, InboxClient, createTask, updateTaskState, replaceTaskPlan, updateTaskPlanSteps, listTasks, getTask, getBackendUrl, fetchMyOrgs, fetchSessionAccess, isMcpOAuthDelegateAgentId, GRANTS_CAPABILITIES, AGREEMENT_VERB_CAPABILITIES, CONTEXT_GRANT_SCOPE_KINDS, contextReadCapability, contextExpandReachCapability, contextDiscoverGrantableCapability, recordArtifactCapability, listArtifactsCapability, shareArtifactCapability, attachArtifactCapability, uploadArtifactUrlCapability, completeArtifactFileCapability, downloadArtifactCapability, openConversationCapability, connectionProxyCapability, requestConnectionCapability, agreementClaimCapability, listTasksCapability, marketplaceViewCapability, } from '@ziggs-ai/api-client';
|
|
4
4
|
import { decodeOperatorKeyClaims } from './operatorKey.js';
|
|
5
5
|
import { registerTrustTools } from './trustTools.js';
|
|
6
6
|
import { registerPaymentTools } from './paymentTools.js';
|
|
@@ -893,41 +893,7 @@ export function registerZiggsTools(server, creds, cfg) {
|
|
|
893
893
|
return toolError(e);
|
|
894
894
|
}
|
|
895
895
|
});
|
|
896
|
-
|
|
897
|
-
state: z
|
|
898
|
-
.string()
|
|
899
|
-
.optional()
|
|
900
|
-
.describe('Filter by state: active, completed, failed, cancelled'),
|
|
901
|
-
cursor: z.string().optional().describe('Opaque cursor from prior nextCursor'),
|
|
902
|
-
limit: z.number().optional().describe('Max rows (default server-side)'),
|
|
903
|
-
assignedTo: z
|
|
904
|
-
.string()
|
|
905
|
-
.optional()
|
|
906
|
-
.describe('Filter to tasks explicitly assigned to this agent/user id'),
|
|
907
|
-
assignedToMe: z
|
|
908
|
-
.boolean()
|
|
909
|
-
.optional()
|
|
910
|
-
.describe('Shorthand for assignedTo=<this delegate\'s own agent id>. Takes precedence over assignedTo if both are set.'),
|
|
911
|
-
createdByMe: z
|
|
912
|
-
.boolean()
|
|
913
|
-
.optional()
|
|
914
|
-
.describe('Tasks YOU created — the work you handed out to others. Check this before delegating: assignedToMe lists only what was handed TO you, so a job you already assigned does not appear there.'),
|
|
915
|
-
}, readOnly('List tasks'), async ({ state, cursor, limit, assignedTo, assignedToMe, createdByMe }) => {
|
|
916
|
-
try {
|
|
917
|
-
const effectiveAssignedTo = assignedToMe ? creds.agentId : assignedTo;
|
|
918
|
-
const result = await listTasks({
|
|
919
|
-
state,
|
|
920
|
-
cursor,
|
|
921
|
-
limit,
|
|
922
|
-
assignedTo: effectiveAssignedTo,
|
|
923
|
-
...(createdByMe ? { createdBy: creds.agentId } : {}),
|
|
924
|
-
}, creds);
|
|
925
|
-
return textResult(result);
|
|
926
|
-
}
|
|
927
|
-
catch (e) {
|
|
928
|
-
return toolError(e);
|
|
929
|
-
}
|
|
930
|
-
});
|
|
896
|
+
registerCapability(server, listTasksCapability, creds);
|
|
931
897
|
registerStrictTool(server, 'ziggs_task_get', 'Fetch a single task by id (GET /tasks/:id). Use this when a human hands you a taskId directly (e.g. "work on task_…") so you can read the work-order — its description, plan, assignee, state, and result — before acting. Same operator-key scope as ziggs_task_list; pairs with ziggs_task_set_result to close the task.', { taskId: z.string() }, readOnly('Read one task'), async ({ taskId }) => {
|
|
932
898
|
try {
|
|
933
899
|
const task = await getTask(taskId, creds);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ziggs-ai/ziggs-mcp",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
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.14.
|
|
42
|
+
"@ziggs-ai/api-client": "0.14.2",
|
|
43
43
|
"dotenv": "^16.6.1",
|
|
44
44
|
"zod": "^3.24.2",
|
|
45
45
|
"zod-to-json-schema": "^3.25.1"
|