@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 to run. Can be a simple expression, statements, or an async function. ' +
15
- 'dokploy and helpers are available as globals. ' +
16
- 'Examples: ' +
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), selectOne(arr, pred).'),
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 available as globals -- no wrapper function needed. ' +
57
- 'Just write: `await dokploy.project.all()` or multi-line with `const`/`return`. ' +
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 to search the API catalog. `catalog` is available as a global. ' +
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 to discover procedures, parameters, and modules. ' +
52
- '`catalog` is available as a global -- just write: `catalog.searchText("deploy")`. ' +
53
- 'Use catalog.searchText("query") to find by keyword, catalog.getByTag("application") for a module, ' +
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 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibetools/dokploy-mcp",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Dokploy MCP server with Code Mode by default",
5
5
  "type": "module",
6
6
  "exports": {