@ziggs-ai/ziggs-mcp 0.10.1 → 0.10.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 +6 -6
- package/package.json +3 -3
package/dist/tools.js
CHANGED
|
@@ -781,7 +781,7 @@ export function registerZiggsTools(server, creds, cfg) {
|
|
|
781
781
|
return toolError(e);
|
|
782
782
|
}
|
|
783
783
|
});
|
|
784
|
-
registerStrictTool(server, 'ziggs_task_set_result', 'Transition a task to a terminal state (completed / failed / cancelled) and record the result. Enforces the state machine — only active tasks can be transitioned.', {
|
|
784
|
+
registerStrictTool(server, 'ziggs_task_set_result', 'Transition a task to a terminal state (completed / failed / cancelled) and record the result. Returns a thin confirmation (ok, taskId, state, updatedAt) — not the full task. Use ziggs_task_get when you need description/plan/history. Enforces the state machine — only active tasks can be transitioned.', {
|
|
785
785
|
taskId: z.string(),
|
|
786
786
|
state: z.enum(['completed', 'failed', 'cancelled']),
|
|
787
787
|
result: z
|
|
@@ -800,14 +800,14 @@ export function registerZiggsTools(server, creds, cfg) {
|
|
|
800
800
|
.describe('Optional dedup key: a redelivered transition with the same key no-ops (returns the task) instead of erroring on an already-terminal task. Derive it deterministically (e.g. from taskId + target state) so a crash-replay reproduces it.'),
|
|
801
801
|
}, write('File a task result'), async ({ taskId, state, result, errorMessage, idempotencyKey }) => {
|
|
802
802
|
try {
|
|
803
|
-
const
|
|
804
|
-
return textResult(
|
|
803
|
+
const confirm = await updateTaskState(taskId, state, { result, errorMessage, idempotencyKey }, creds);
|
|
804
|
+
return textResult(confirm);
|
|
805
805
|
}
|
|
806
806
|
catch (e) {
|
|
807
807
|
return toolError(e);
|
|
808
808
|
}
|
|
809
809
|
});
|
|
810
|
-
registerStrictTool(server, 'ziggs_task_replace_plan', 'Replace the plan for a task with the full ordered step list you provide — existing steps are replaced wholesale, not appended to. Post progress by resending the whole plan with each step\'s status set (pending | in_progress | completed | skipped). Do not encode progress in description text.', {
|
|
810
|
+
registerStrictTool(server, 'ziggs_task_replace_plan', 'Replace the plan for a task with the full ordered step list you provide — existing steps are replaced wholesale, not appended to. Post progress by resending the whole plan with each step\'s status set (pending | in_progress | completed | skipped). Do not encode progress in description text. Returns a thin confirmation (ok, taskId, state, stepCount, structureChanged) — not the full task. Use ziggs_task_get for the work-order.', {
|
|
811
811
|
taskId: z.string(),
|
|
812
812
|
steps: z
|
|
813
813
|
.array(z.object({
|
|
@@ -835,8 +835,8 @@ export function registerZiggsTools(server, creds, cfg) {
|
|
|
835
835
|
.describe('Full replacement step list (ordered)'),
|
|
836
836
|
}, write('Update a task plan'), async ({ taskId, steps }) => {
|
|
837
837
|
try {
|
|
838
|
-
const
|
|
839
|
-
return textResult(
|
|
838
|
+
const confirm = await replaceTaskPlan(taskId, steps, creds);
|
|
839
|
+
return textResult(confirm);
|
|
840
840
|
}
|
|
841
841
|
catch (e) {
|
|
842
842
|
return toolError(e);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ziggs-ai/ziggs-mcp",
|
|
3
|
-
"version": "0.10.
|
|
4
|
-
"description": "MCP server for Claude Code, Cursor, and other MCP hosts
|
|
3
|
+
"version": "0.10.2",
|
|
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": {
|
|
7
7
|
"ziggs-mcp": "./dist/index.js"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
41
|
-
"@ziggs-ai/api-client": "0.10.
|
|
41
|
+
"@ziggs-ai/api-client": "0.10.2",
|
|
42
42
|
"dotenv": "^16.6.1",
|
|
43
43
|
"zod": "^3.24.2"
|
|
44
44
|
},
|