@ziggs-ai/ziggs-mcp 0.10.0 → 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 +9 -6
- package/package.json +3 -3
package/dist/tools.js
CHANGED
|
@@ -53,6 +53,9 @@ const ZIGGS_RECORD_ARTIFACT_DESCRIPTION = 'Write an artifact. Scope is optional
|
|
|
53
53
|
'free-standing artifact that is yours until you attach or share it. Never guess a scope: ' +
|
|
54
54
|
'recording with none always succeeds. Set visibility explicitly. ' +
|
|
55
55
|
'For a finished deliverable, set contentType=result and pass taskId to bind it to the task. ' +
|
|
56
|
+
'Inline text max 50000 characters. Over that: use ziggs_artifact_upload_url (file rail), ' +
|
|
57
|
+
'or record an index artifact plus part artifacts and list the part ids in the index. ' +
|
|
58
|
+
'The server does not auto-split. ' +
|
|
56
59
|
PROTOCOL.reporting;
|
|
57
60
|
// the strict artifact write (fail loudly, return the artifactId)
|
|
58
61
|
// moved into ArtifactsClient.writeStrict, shared with the SDK's artifact_record.
|
|
@@ -778,7 +781,7 @@ export function registerZiggsTools(server, creds, cfg) {
|
|
|
778
781
|
return toolError(e);
|
|
779
782
|
}
|
|
780
783
|
});
|
|
781
|
-
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.', {
|
|
782
785
|
taskId: z.string(),
|
|
783
786
|
state: z.enum(['completed', 'failed', 'cancelled']),
|
|
784
787
|
result: z
|
|
@@ -797,14 +800,14 @@ export function registerZiggsTools(server, creds, cfg) {
|
|
|
797
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.'),
|
|
798
801
|
}, write('File a task result'), async ({ taskId, state, result, errorMessage, idempotencyKey }) => {
|
|
799
802
|
try {
|
|
800
|
-
const
|
|
801
|
-
return textResult(
|
|
803
|
+
const confirm = await updateTaskState(taskId, state, { result, errorMessage, idempotencyKey }, creds);
|
|
804
|
+
return textResult(confirm);
|
|
802
805
|
}
|
|
803
806
|
catch (e) {
|
|
804
807
|
return toolError(e);
|
|
805
808
|
}
|
|
806
809
|
});
|
|
807
|
-
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.', {
|
|
808
811
|
taskId: z.string(),
|
|
809
812
|
steps: z
|
|
810
813
|
.array(z.object({
|
|
@@ -832,8 +835,8 @@ export function registerZiggsTools(server, creds, cfg) {
|
|
|
832
835
|
.describe('Full replacement step list (ordered)'),
|
|
833
836
|
}, write('Update a task plan'), async ({ taskId, steps }) => {
|
|
834
837
|
try {
|
|
835
|
-
const
|
|
836
|
-
return textResult(
|
|
838
|
+
const confirm = await replaceTaskPlan(taskId, steps, creds);
|
|
839
|
+
return textResult(confirm);
|
|
837
840
|
}
|
|
838
841
|
catch (e) {
|
|
839
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
|
},
|