@1claw/mcp 0.43.0 → 0.43.1
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/README.md
CHANGED
|
@@ -116,7 +116,7 @@ pnpm run build
|
|
|
116
116
|
| `list_automations` | List automation workflows for the agent. |
|
|
117
117
|
| `trigger_automation` | Manually trigger an automation workflow. |
|
|
118
118
|
| `list_runtimes` | List cloud runtimes for the agent. |
|
|
119
|
-
| `manage_runtime` | Start
|
|
119
|
+
| `manage_runtime` | Start or stop a cloud runtime. |
|
|
120
120
|
| `runtime_status` | Get the current status and resource usage of a runtime. |
|
|
121
121
|
| `runtime_logs` | Get recent logs from a runtime container. |
|
|
122
122
|
| `search_agent_directory` | Search the public agent directory for discoverable agents. |
|
|
@@ -334,4 +334,4 @@ Configure these via the agent's `shroud_config` JSON in the dashboard, SDK (`Cre
|
|
|
334
334
|
|
|
335
335
|
This package is registered as `io.github.1clawAI/1claw-mcp` on the [MCP Registry](https://registry.modelcontextprotocol.io). Publishing uses the "Publish to MCP Registry" workflow on `1clawAI/1claw-mcp` (GitHub OIDC).
|
|
336
336
|
|
|
337
|
-
npm: `@1claw/mcp` v0.
|
|
337
|
+
npm: `@1claw/mcp` v0.43.1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list_automations.d.ts","sourceRoot":"","sources":["../../src/tools/list_automations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAEnE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,aAAa;;;;qBAO5C,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,WACnB;QAAE,GAAG,EAAE;YAAE,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;SAAE,CAAA;KAAE;
|
|
1
|
+
{"version":3,"file":"list_automations.d.ts","sourceRoot":"","sources":["../../src/tools/list_automations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAEnE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,aAAa;;;;qBAO5C,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,WACnB;QAAE,GAAG,EAAE;YAAE,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;SAAE,CAAA;KAAE;EA8BtD"}
|
|
@@ -4,7 +4,7 @@ import { OneClawApiError } from "../client.js";
|
|
|
4
4
|
export function listAutomationsTool(client) {
|
|
5
5
|
return {
|
|
6
6
|
name: "list_automations",
|
|
7
|
-
description: "List all automations configured for the current organization. Returns
|
|
7
|
+
description: "List all automations configured for the current organization. Returns names, trigger type, cron, and active status.",
|
|
8
8
|
parameters: z.object({}),
|
|
9
9
|
execute: async (_args, { log }) => {
|
|
10
10
|
try {
|
|
@@ -15,14 +15,12 @@ export function listAutomationsTool(client) {
|
|
|
15
15
|
return "No automations found.";
|
|
16
16
|
}
|
|
17
17
|
const lines = automations.map((a) => {
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
parts.push(`— ${a.description}`);
|
|
25
|
-
return parts.join(" ");
|
|
18
|
+
const active = a.is_active === false ? "inactive" : "active";
|
|
19
|
+
const trigger = typeof a.trigger_type === "string" ? a.trigger_type : "unknown";
|
|
20
|
+
const cron = typeof a.cron_expr === "string" && a.cron_expr.length > 0
|
|
21
|
+
? ` cron: ${a.cron_expr}`
|
|
22
|
+
: "";
|
|
23
|
+
return `- ${a.name ?? a.id} [${active}] (${trigger}${cron})`;
|
|
26
24
|
});
|
|
27
25
|
return `Found ${automations.length} automation(s):\n${lines.join("\n")}`;
|
|
28
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list_automations.js","sourceRoot":"","sources":["../../src/tools/list_automations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,eAAe,EAAsB,MAAM,cAAc,CAAC;AAEnE,MAAM,UAAU,mBAAmB,CAAC,MAAqB;IACvD,OAAO;QACL,IAAI,EAAE,kBAA2B;QACjC,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"list_automations.js","sourceRoot":"","sources":["../../src/tools/list_automations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,eAAe,EAAsB,MAAM,cAAc,CAAC;AAEnE,MAAM,UAAU,mBAAmB,CAAC,MAAqB;IACvD,OAAO;QACL,IAAI,EAAE,kBAA2B;QACjC,WAAW,EACT,qHAAqH;QACvH,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;QACxB,OAAO,EAAE,KAAK,EACZ,KAA4B,EAC5B,EAAE,GAAG,EAA4C,EACjD,EAAE;YACF,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,EAAE,CAAC;gBAC9C,GAAG,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;gBAE/B,MAAM,WAAW,GAAI,MAA2D,CAAC,WAAW,IAAI,EAAE,CAAC;gBACnG,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBAC7B,OAAO,uBAAuB,CAAC;gBACjC,CAAC;gBAED,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;oBAClC,MAAM,MAAM,GAAG,CAAC,CAAC,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,C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