@vibetools/dokploy-mcp 2.1.0 → 2.1.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.
|
@@ -11,14 +11,11 @@ const executeSchema = z
|
|
|
11
11
|
code: z
|
|
12
12
|
.string()
|
|
13
13
|
.min(1)
|
|
14
|
-
.describe('JavaScript code
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'`await dokploy.project.all()` | ' +
|
|
18
|
-
'`const app = await dokploy.application.one({ applicationId: "id" }); return app.name` | ' +
|
|
19
|
-
'`async ({ dokploy }) => dokploy.settings.health()`. ' +
|
|
14
|
+
.describe('JavaScript code. `dokploy` and `helpers` are globals -- do NOT wrap in a function. ' +
|
|
15
|
+
'Simple: `await dokploy.project.all()`. ' +
|
|
16
|
+
'Multi-step: `const app = await dokploy.application.one({ applicationId: "abc" }); return app.name`. ' +
|
|
20
17
|
'dokploy.<module>.<method>(params) calls the Dokploy API. ' +
|
|
21
|
-
'helpers: sleep(ms), assert(cond, msg), pick(obj, keys), limit(arr, n)
|
|
18
|
+
'helpers: sleep(ms), assert(cond, msg), pick(obj, keys), limit(arr, n).'),
|
|
22
19
|
})
|
|
23
20
|
.strict();
|
|
24
21
|
export function buildExecuteContext(executor, maxCalls = resolveSandboxLimits().maxCalls) {
|
|
@@ -53,11 +50,11 @@ export const executeTool = createTool({
|
|
|
53
50
|
name: 'execute',
|
|
54
51
|
title: 'Execute Dokploy Workflow',
|
|
55
52
|
description: 'Run JavaScript code against the Dokploy API. ' +
|
|
56
|
-
'`dokploy` and `helpers` are
|
|
57
|
-
'
|
|
53
|
+
'IMPORTANT: Do NOT wrap code in a function -- `dokploy` and `helpers` are already globals. ' +
|
|
54
|
+
'Write bare code: `await dokploy.project.all()` or `const x = await dokploy.application.one({ applicationId: "id" }); return x`. ' +
|
|
58
55
|
'dokploy.<module>.<method>(params) calls the API. ' +
|
|
59
56
|
'Modules: project, environment, application, compose, domain, postgres, mysql, mariadb, mongo, redis, ' +
|
|
60
|
-
'deployment, docker, server, settings, user, notification, backup, mounts, registry, certificates, and more. ' +
|
|
57
|
+
'deployment, docker, server, settings, user, notification, backup, mounts, registry, certificates, schedule, patch, sshKey, gitProvider, and more. ' +
|
|
61
58
|
'Use search tool first to discover procedure names and required parameters.',
|
|
62
59
|
schema: executeSchema,
|
|
63
60
|
annotations: { openWorldHint: true },
|
|
@@ -9,7 +9,7 @@ const searchSchema = z
|
|
|
9
9
|
code: z
|
|
10
10
|
.string()
|
|
11
11
|
.min(1)
|
|
12
|
-
.describe('JavaScript code
|
|
12
|
+
.describe('JavaScript code. `catalog` is a global -- do NOT wrap in a function. ' +
|
|
13
13
|
'Examples: `catalog.searchText("application deploy")` | ' +
|
|
14
14
|
'`catalog.getByTag("compose")` | `catalog.get("application.one")`. ' +
|
|
15
15
|
'Methods: searchText(query), get(procedure), getByTag(tag), endpoints, byTag.'),
|
|
@@ -48,10 +48,9 @@ function trimArrayToBytes(items) {
|
|
|
48
48
|
export const searchTool = createTool({
|
|
49
49
|
name: 'search',
|
|
50
50
|
title: 'Search Dokploy API',
|
|
51
|
-
description: 'Search the Dokploy API catalog
|
|
52
|
-
'
|
|
53
|
-
'
|
|
54
|
-
'catalog.get("application.one") for one procedure. ' +
|
|
51
|
+
description: 'Search the Dokploy API catalog. ' +
|
|
52
|
+
'IMPORTANT: Do NOT wrap code in a function -- `catalog` is already a global. ' +
|
|
53
|
+
'Write bare code: `catalog.searchText("deploy")` or `catalog.getByTag("application")` or `catalog.get("application.one")`. ' +
|
|
55
54
|
'Returns procedure names, required/optional parameters, and HTTP methods.',
|
|
56
55
|
schema: searchSchema,
|
|
57
56
|
annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: true },
|