@vibetools/dokploy-mcp 1.2.0 → 2.0.0
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 +61 -168
- package/dist/api/client.d.ts +2 -1
- package/dist/api/client.js +3 -11
- package/dist/cli/index.js +1 -0
- package/dist/codemode/context/execute-context.d.ts +590 -0
- package/dist/codemode/context/execute-context.js +64 -0
- package/dist/codemode/context/search-context.d.ts +13851 -0
- package/dist/codemode/context/search-context.js +42 -0
- package/dist/codemode/gateway/api-gateway.d.ts +12 -0
- package/dist/codemode/gateway/api-gateway.js +160 -0
- package/dist/codemode/gateway/error-format.d.ts +13 -0
- package/dist/codemode/gateway/error-format.js +9 -0
- package/dist/codemode/gateway/request-normalizer.d.ts +3 -0
- package/dist/codemode/gateway/request-normalizer.js +21 -0
- package/dist/codemode/gateway/trace.d.ts +13 -0
- package/dist/codemode/gateway/trace.js +11 -0
- package/dist/codemode/sandbox/host.d.ts +11 -0
- package/dist/codemode/sandbox/host.js +28 -0
- package/dist/codemode/sandbox/limits.d.ts +2 -0
- package/dist/codemode/sandbox/limits.js +20 -0
- package/dist/codemode/sandbox/runner.d.ts +8 -0
- package/dist/codemode/sandbox/runner.js +113 -0
- package/dist/codemode/sandbox/runtime.d.ts +2 -0
- package/dist/codemode/sandbox/runtime.js +3 -0
- package/dist/codemode/sandbox/serialize.d.ts +1 -0
- package/dist/codemode/sandbox/serialize.js +45 -0
- package/dist/codemode/sandbox/subprocess-runner.d.ts +10 -0
- package/dist/codemode/sandbox/subprocess-runner.js +91 -0
- package/dist/codemode/sandbox/types.d.ts +12 -0
- package/dist/codemode/sandbox/types.js +1 -0
- package/dist/codemode/sandbox/worker-entry.d.ts +1 -0
- package/dist/codemode/sandbox/worker-entry.js +70 -0
- package/dist/codemode/server-codemode.d.ts +2 -0
- package/dist/codemode/server-codemode.js +17 -0
- package/dist/codemode/tools/execute.d.ts +583 -0
- package/dist/codemode/tools/execute.js +52 -0
- package/dist/codemode/tools/index.d.ts +2 -0
- package/dist/codemode/tools/index.js +3 -0
- package/dist/codemode/tools/search.d.ts +2 -0
- package/dist/codemode/tools/search.js +62 -0
- package/dist/generated/dokploy-catalog.d.ts +27 -0
- package/dist/generated/dokploy-catalog.js +16 -0
- package/dist/generated/dokploy-schemas.d.ts +17533 -0
- package/dist/generated/dokploy-schemas.js +20639 -0
- package/dist/generated/dokploy-sdk.d.ts +558 -0
- package/dist/generated/dokploy-sdk.js +561 -0
- package/dist/generated/openapi-index.json +10591 -0
- package/dist/{tools/_factory.js → mcp/tool-factory.js} +7 -5
- package/dist/server.d.ts +1 -1
- package/dist/server.js +2 -15
- package/package.json +22 -11
- package/dist/tools/_database.d.ts +0 -12
- package/dist/tools/_database.js +0 -115
- package/dist/tools/admin.d.ts +0 -2
- package/dist/tools/admin.js +0 -61
- package/dist/tools/application.d.ts +0 -2
- package/dist/tools/application.js +0 -601
- package/dist/tools/backup.d.ts +0 -2
- package/dist/tools/backup.js +0 -133
- package/dist/tools/certificates.d.ts +0 -2
- package/dist/tools/certificates.js +0 -54
- package/dist/tools/cluster.d.ts +0 -2
- package/dist/tools/cluster.js +0 -38
- package/dist/tools/compose.d.ts +0 -2
- package/dist/tools/compose.js +0 -451
- package/dist/tools/deployment.d.ts +0 -2
- package/dist/tools/deployment.js +0 -107
- package/dist/tools/destination.d.ts +0 -2
- package/dist/tools/destination.js +0 -78
- package/dist/tools/docker.d.ts +0 -2
- package/dist/tools/docker.js +0 -110
- package/dist/tools/domain.d.ts +0 -2
- package/dist/tools/domain.js +0 -147
- package/dist/tools/environment.d.ts +0 -2
- package/dist/tools/environment.js +0 -104
- package/dist/tools/git-provider.d.ts +0 -2
- package/dist/tools/git-provider.js +0 -22
- package/dist/tools/github.d.ts +0 -2
- package/dist/tools/github.js +0 -66
- package/dist/tools/gitlab.d.ts +0 -2
- package/dist/tools/gitlab.js +0 -98
- package/dist/tools/index.d.ts +0 -2
- package/dist/tools/index.js +0 -72
- package/dist/tools/mariadb.d.ts +0 -1
- package/dist/tools/mariadb.js +0 -14
- package/dist/tools/mongo.d.ts +0 -1
- package/dist/tools/mongo.js +0 -13
- package/dist/tools/mounts.d.ts +0 -2
- package/dist/tools/mounts.js +0 -109
- package/dist/tools/mysql.d.ts +0 -1
- package/dist/tools/mysql.js +0 -14
- package/dist/tools/notification.d.ts +0 -2
- package/dist/tools/notification.js +0 -559
- package/dist/tools/patch.d.ts +0 -2
- package/dist/tools/patch.js +0 -179
- package/dist/tools/port.d.ts +0 -2
- package/dist/tools/port.js +0 -54
- package/dist/tools/postgres.d.ts +0 -1
- package/dist/tools/postgres.js +0 -13
- package/dist/tools/preview-deployment.d.ts +0 -2
- package/dist/tools/preview-deployment.js +0 -50
- package/dist/tools/project.d.ts +0 -2
- package/dist/tools/project.js +0 -125
- package/dist/tools/redirects.d.ts +0 -2
- package/dist/tools/redirects.js +0 -53
- package/dist/tools/redis.d.ts +0 -1
- package/dist/tools/redis.js +0 -11
- package/dist/tools/registry.d.ts +0 -2
- package/dist/tools/registry.js +0 -81
- package/dist/tools/rollback.d.ts +0 -2
- package/dist/tools/rollback.js +0 -28
- package/dist/tools/schedule.d.ts +0 -2
- package/dist/tools/schedule.js +0 -92
- package/dist/tools/security.d.ts +0 -2
- package/dist/tools/security.js +0 -48
- package/dist/tools/server.d.ts +0 -2
- package/dist/tools/server.js +0 -192
- package/dist/tools/settings.d.ts +0 -2
- package/dist/tools/settings.js +0 -509
- package/dist/tools/ssh-key.d.ts +0 -2
- package/dist/tools/ssh-key.js +0 -74
- package/dist/tools/user.d.ts +0 -2
- package/dist/tools/user.js +0 -85
- package/dist/tools/volume-backups.d.ts +0 -2
- package/dist/tools/volume-backups.js +0 -96
- /package/dist/{tools/_factory.d.ts → mcp/tool-factory.d.ts} +0 -0
package/dist/tools/patch.js
DELETED
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { getTool, postTool } from './_factory.js';
|
|
3
|
-
const entityTypeSchema = z.enum(['application', 'compose']).describe('Entity type');
|
|
4
|
-
const patchTypeSchema = z.enum(['create', 'update', 'delete']).describe('Patch type');
|
|
5
|
-
const savePatchTypeSchema = z.enum(['create', 'update']).default('update').describe('Patch type');
|
|
6
|
-
const nullableString = z.string().nullable().optional();
|
|
7
|
-
const create = postTool({
|
|
8
|
-
name: 'dokploy_patch_create',
|
|
9
|
-
title: 'Create Patch',
|
|
10
|
-
description: 'Create a new patch record in Dokploy. Requires the file path and file content. Optionally associate the patch with an application or compose service.',
|
|
11
|
-
schema: z
|
|
12
|
-
.object({
|
|
13
|
-
filePath: z.string().min(1).describe('File path inside the repository'),
|
|
14
|
-
content: z.string().describe('File content'),
|
|
15
|
-
type: patchTypeSchema.optional(),
|
|
16
|
-
enabled: z.boolean().optional().describe('Whether the patch is enabled'),
|
|
17
|
-
applicationId: nullableString.describe('Application ID'),
|
|
18
|
-
composeId: nullableString.describe('Compose ID'),
|
|
19
|
-
})
|
|
20
|
-
.strict(),
|
|
21
|
-
endpoint: '/patch.create',
|
|
22
|
-
});
|
|
23
|
-
const one = getTool({
|
|
24
|
-
name: 'dokploy_patch_one',
|
|
25
|
-
title: 'Get Patch',
|
|
26
|
-
description: 'Retrieve a patch record by its ID.',
|
|
27
|
-
schema: z
|
|
28
|
-
.object({
|
|
29
|
-
patchId: z.string().min(1).describe('Patch ID'),
|
|
30
|
-
})
|
|
31
|
-
.strict(),
|
|
32
|
-
endpoint: '/patch.one',
|
|
33
|
-
});
|
|
34
|
-
const byEntityId = getTool({
|
|
35
|
-
name: 'dokploy_patch_by_entity_id',
|
|
36
|
-
title: 'List Patches by Entity',
|
|
37
|
-
description: 'List patches associated with a Dokploy application or compose service. Requires the entity ID and entity type.',
|
|
38
|
-
schema: z
|
|
39
|
-
.object({
|
|
40
|
-
id: z.string().describe('Entity ID'),
|
|
41
|
-
type: entityTypeSchema,
|
|
42
|
-
})
|
|
43
|
-
.strict(),
|
|
44
|
-
endpoint: '/patch.byEntityId',
|
|
45
|
-
});
|
|
46
|
-
const update = postTool({
|
|
47
|
-
name: 'dokploy_patch_update',
|
|
48
|
-
title: 'Update Patch',
|
|
49
|
-
description: 'Update an existing patch record in Dokploy. Requires the patch ID and optionally accepts updated type, file path, content, enablement state, and timestamps.',
|
|
50
|
-
schema: z
|
|
51
|
-
.object({
|
|
52
|
-
patchId: z.string().min(1).describe('Patch ID'),
|
|
53
|
-
type: patchTypeSchema.optional(),
|
|
54
|
-
filePath: z.string().min(1).optional().describe('File path inside the repository'),
|
|
55
|
-
enabled: z.boolean().optional().describe('Whether the patch is enabled'),
|
|
56
|
-
content: z.string().optional().describe('File content'),
|
|
57
|
-
createdAt: z.string().optional().describe('Creation timestamp'),
|
|
58
|
-
updatedAt: nullableString.describe('Update timestamp'),
|
|
59
|
-
})
|
|
60
|
-
.strict(),
|
|
61
|
-
endpoint: '/patch.update',
|
|
62
|
-
});
|
|
63
|
-
const remove = postTool({
|
|
64
|
-
name: 'dokploy_patch_delete',
|
|
65
|
-
title: 'Delete Patch',
|
|
66
|
-
description: 'Delete a patch record from Dokploy. Requires the patch ID. This is a destructive action.',
|
|
67
|
-
schema: z
|
|
68
|
-
.object({
|
|
69
|
-
patchId: z.string().min(1).describe('Patch ID'),
|
|
70
|
-
})
|
|
71
|
-
.strict(),
|
|
72
|
-
endpoint: '/patch.delete',
|
|
73
|
-
annotations: { destructiveHint: true },
|
|
74
|
-
});
|
|
75
|
-
const toggleEnabled = postTool({
|
|
76
|
-
name: 'dokploy_patch_toggle_enabled',
|
|
77
|
-
title: 'Toggle Patch',
|
|
78
|
-
description: 'Enable or disable a patch record in Dokploy. Requires the patch ID and the desired enabled state.',
|
|
79
|
-
schema: z
|
|
80
|
-
.object({
|
|
81
|
-
patchId: z.string().min(1).describe('Patch ID'),
|
|
82
|
-
enabled: z.boolean().describe('Whether the patch should be enabled'),
|
|
83
|
-
})
|
|
84
|
-
.strict(),
|
|
85
|
-
endpoint: '/patch.toggleEnabled',
|
|
86
|
-
});
|
|
87
|
-
const ensureRepo = postTool({
|
|
88
|
-
name: 'dokploy_patch_ensure_repo',
|
|
89
|
-
title: 'Ensure Patch Repository',
|
|
90
|
-
description: 'Ensure that the local patch repository exists for a Dokploy application or compose service. Requires the entity ID and entity type.',
|
|
91
|
-
schema: z
|
|
92
|
-
.object({
|
|
93
|
-
id: z.string().describe('Entity ID'),
|
|
94
|
-
type: entityTypeSchema,
|
|
95
|
-
})
|
|
96
|
-
.strict(),
|
|
97
|
-
endpoint: '/patch.ensureRepo',
|
|
98
|
-
});
|
|
99
|
-
const readRepoDirectories = getTool({
|
|
100
|
-
name: 'dokploy_patch_read_repo_directories',
|
|
101
|
-
title: 'Read Patch Repository Directories',
|
|
102
|
-
description: 'Read directory entries inside a patch repository. Requires the entity ID, entity type, and repository path.',
|
|
103
|
-
schema: z
|
|
104
|
-
.object({
|
|
105
|
-
id: z.string().min(1).describe('Entity ID'),
|
|
106
|
-
type: entityTypeSchema,
|
|
107
|
-
repoPath: z.string().describe('Repository path'),
|
|
108
|
-
})
|
|
109
|
-
.strict(),
|
|
110
|
-
endpoint: '/patch.readRepoDirectories',
|
|
111
|
-
});
|
|
112
|
-
const readRepoFile = getTool({
|
|
113
|
-
name: 'dokploy_patch_read_repo_file',
|
|
114
|
-
title: 'Read Patch Repository File',
|
|
115
|
-
description: 'Read a file from a patch repository. Requires the entity ID, entity type, and file path.',
|
|
116
|
-
schema: z
|
|
117
|
-
.object({
|
|
118
|
-
id: z.string().min(1).describe('Entity ID'),
|
|
119
|
-
type: entityTypeSchema,
|
|
120
|
-
filePath: z.string().describe('File path'),
|
|
121
|
-
})
|
|
122
|
-
.strict(),
|
|
123
|
-
endpoint: '/patch.readRepoFile',
|
|
124
|
-
});
|
|
125
|
-
const saveFileAsPatch = postTool({
|
|
126
|
-
name: 'dokploy_patch_save_file_as_patch',
|
|
127
|
-
title: 'Save File as Patch',
|
|
128
|
-
description: 'Create or update a patch record from file content. Requires the entity ID, entity type, file path, and content.',
|
|
129
|
-
schema: z
|
|
130
|
-
.object({
|
|
131
|
-
id: z.string().min(1).describe('Entity ID'),
|
|
132
|
-
type: entityTypeSchema,
|
|
133
|
-
filePath: z.string().describe('File path'),
|
|
134
|
-
content: z.string().describe('File content'),
|
|
135
|
-
patchType: savePatchTypeSchema.optional(),
|
|
136
|
-
})
|
|
137
|
-
.strict(),
|
|
138
|
-
endpoint: '/patch.saveFileAsPatch',
|
|
139
|
-
});
|
|
140
|
-
const markFileForDeletion = postTool({
|
|
141
|
-
name: 'dokploy_patch_mark_file_for_deletion',
|
|
142
|
-
title: 'Mark File for Deletion',
|
|
143
|
-
description: 'Mark a file for deletion through the Dokploy patch workflow. Requires the entity ID, entity type, and file path.',
|
|
144
|
-
schema: z
|
|
145
|
-
.object({
|
|
146
|
-
id: z.string().min(1).describe('Entity ID'),
|
|
147
|
-
type: entityTypeSchema,
|
|
148
|
-
filePath: z.string().describe('File path'),
|
|
149
|
-
})
|
|
150
|
-
.strict(),
|
|
151
|
-
endpoint: '/patch.markFileForDeletion',
|
|
152
|
-
annotations: { destructiveHint: true },
|
|
153
|
-
});
|
|
154
|
-
const cleanPatchRepos = postTool({
|
|
155
|
-
name: 'dokploy_patch_clean_patch_repos',
|
|
156
|
-
title: 'Clean Patch Repositories',
|
|
157
|
-
description: 'Clean Dokploy patch repositories. Optionally scope the cleanup to a specific server.',
|
|
158
|
-
schema: z
|
|
159
|
-
.object({
|
|
160
|
-
serverId: z.string().optional().describe('Optional server ID'),
|
|
161
|
-
})
|
|
162
|
-
.strict(),
|
|
163
|
-
endpoint: '/patch.cleanPatchRepos',
|
|
164
|
-
annotations: { destructiveHint: true },
|
|
165
|
-
});
|
|
166
|
-
export const patchTools = [
|
|
167
|
-
create,
|
|
168
|
-
one,
|
|
169
|
-
byEntityId,
|
|
170
|
-
update,
|
|
171
|
-
remove,
|
|
172
|
-
toggleEnabled,
|
|
173
|
-
ensureRepo,
|
|
174
|
-
readRepoDirectories,
|
|
175
|
-
readRepoFile,
|
|
176
|
-
saveFileAsPatch,
|
|
177
|
-
markFileForDeletion,
|
|
178
|
-
cleanPatchRepos,
|
|
179
|
-
];
|
package/dist/tools/port.d.ts
DELETED
package/dist/tools/port.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { getTool, postTool } from './_factory.js';
|
|
3
|
-
// ── helpers ──────────────────────────────────────────────────────────
|
|
4
|
-
const portId = z.string().min(1).describe('Unique port mapping ID');
|
|
5
|
-
// ── tools ────────────────────────────────────────────────────────────
|
|
6
|
-
const one = getTool({
|
|
7
|
-
name: 'dokploy_port_one',
|
|
8
|
-
title: 'Get Port Mapping',
|
|
9
|
-
description: 'Retrieve the full configuration of a specific port mapping by its unique ID. Requires the portId parameter. Returns the port mapping object including the published port, target port, protocol (TCP/UDP), and associated application ID.',
|
|
10
|
-
schema: z.object({ portId }).strict(),
|
|
11
|
-
endpoint: '/port.one',
|
|
12
|
-
});
|
|
13
|
-
const create = postTool({
|
|
14
|
-
name: 'dokploy_port_create',
|
|
15
|
-
title: 'Create Port Mapping',
|
|
16
|
-
description: 'Create a new port mapping for a Dokploy application. Maps an externally published port to a target port inside the container. Requires the published port number, target port number, and application ID. Optionally specify the protocol as TCP (default) or UDP. Returns the created port mapping configuration.',
|
|
17
|
-
schema: z
|
|
18
|
-
.object({
|
|
19
|
-
publishedPort: z.number().describe('The externally published port number'),
|
|
20
|
-
targetPort: z.number().describe('The target port inside the container'),
|
|
21
|
-
applicationId: z.string().min(1).describe('ID of the application to add the port mapping to'),
|
|
22
|
-
protocol: z
|
|
23
|
-
.enum(['tcp', 'udp'])
|
|
24
|
-
.optional()
|
|
25
|
-
.default('tcp')
|
|
26
|
-
.describe('Network protocol for the port mapping'),
|
|
27
|
-
})
|
|
28
|
-
.strict(),
|
|
29
|
-
endpoint: '/port.create',
|
|
30
|
-
});
|
|
31
|
-
const update = postTool({
|
|
32
|
-
name: 'dokploy_port_update',
|
|
33
|
-
title: 'Update Port Mapping',
|
|
34
|
-
description: 'Update an existing port mapping configuration for a Dokploy application. Requires the portId of the mapping to modify. Optionally update the published port, target port, or protocol (TCP/UDP). Returns the updated port mapping configuration.',
|
|
35
|
-
schema: z
|
|
36
|
-
.object({
|
|
37
|
-
portId,
|
|
38
|
-
publishedPort: z.number().optional().describe('New externally published port number'),
|
|
39
|
-
targetPort: z.number().optional().describe('New target port inside the container'),
|
|
40
|
-
protocol: z.enum(['tcp', 'udp']).optional().describe('New network protocol'),
|
|
41
|
-
})
|
|
42
|
-
.strict(),
|
|
43
|
-
endpoint: '/port.update',
|
|
44
|
-
});
|
|
45
|
-
const deleteTool = postTool({
|
|
46
|
-
name: 'dokploy_port_delete',
|
|
47
|
-
title: 'Delete Port Mapping',
|
|
48
|
-
description: 'Permanently delete a port mapping from a Dokploy application. This action is irreversible and removes the external port exposure for the container. Requires the portId parameter. The container port will no longer be accessible on the previously published port.',
|
|
49
|
-
schema: z.object({ portId }).strict(),
|
|
50
|
-
endpoint: '/port.delete',
|
|
51
|
-
annotations: { destructiveHint: true },
|
|
52
|
-
});
|
|
53
|
-
// ── export ───────────────────────────────────────────────────────────
|
|
54
|
-
export const portTools = [one, create, update, deleteTool];
|
package/dist/tools/postgres.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const postgresTools: import("./_factory.js").ToolDefinition[];
|
package/dist/tools/postgres.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { createDatabaseTools } from './_database.js';
|
|
3
|
-
export const postgresTools = createDatabaseTools({
|
|
4
|
-
type: 'postgres',
|
|
5
|
-
idField: 'postgresId',
|
|
6
|
-
displayName: 'Postgres',
|
|
7
|
-
defaultImage: 'postgres:18',
|
|
8
|
-
createFields: z.object({
|
|
9
|
-
databaseName: z.string().min(1).describe('Name of the database to create'),
|
|
10
|
-
databaseUser: z.string().min(1).describe('Database user'),
|
|
11
|
-
databasePassword: z.string().min(1).describe('Database password'),
|
|
12
|
-
}),
|
|
13
|
-
});
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { getTool, postTool } from './_factory.js';
|
|
3
|
-
const all = getTool({
|
|
4
|
-
name: 'dokploy_preview_deployment_all',
|
|
5
|
-
title: 'List Preview Deployments',
|
|
6
|
-
description: 'List preview deployments for a Dokploy application. Requires the application ID.',
|
|
7
|
-
schema: z
|
|
8
|
-
.object({
|
|
9
|
-
applicationId: z.string().min(1).describe('Application ID'),
|
|
10
|
-
})
|
|
11
|
-
.strict(),
|
|
12
|
-
endpoint: '/previewDeployment.all',
|
|
13
|
-
});
|
|
14
|
-
const one = getTool({
|
|
15
|
-
name: 'dokploy_preview_deployment_one',
|
|
16
|
-
title: 'Get Preview Deployment',
|
|
17
|
-
description: 'Retrieve a preview deployment by its ID.',
|
|
18
|
-
schema: z
|
|
19
|
-
.object({
|
|
20
|
-
previewDeploymentId: z.string().describe('Preview deployment ID'),
|
|
21
|
-
})
|
|
22
|
-
.strict(),
|
|
23
|
-
endpoint: '/previewDeployment.one',
|
|
24
|
-
});
|
|
25
|
-
const remove = postTool({
|
|
26
|
-
name: 'dokploy_preview_deployment_delete',
|
|
27
|
-
title: 'Delete Preview Deployment',
|
|
28
|
-
description: 'Delete a preview deployment in Dokploy. Requires the preview deployment ID. This is a destructive action.',
|
|
29
|
-
schema: z
|
|
30
|
-
.object({
|
|
31
|
-
previewDeploymentId: z.string().describe('Preview deployment ID'),
|
|
32
|
-
})
|
|
33
|
-
.strict(),
|
|
34
|
-
endpoint: '/previewDeployment.delete',
|
|
35
|
-
annotations: { destructiveHint: true },
|
|
36
|
-
});
|
|
37
|
-
const redeploy = postTool({
|
|
38
|
-
name: 'dokploy_preview_deployment_redeploy',
|
|
39
|
-
title: 'Redeploy Preview Deployment',
|
|
40
|
-
description: 'Redeploy a preview deployment in Dokploy. Requires the preview deployment ID and optionally accepts a title and description.',
|
|
41
|
-
schema: z
|
|
42
|
-
.object({
|
|
43
|
-
previewDeploymentId: z.string().describe('Preview deployment ID'),
|
|
44
|
-
title: z.string().optional().describe('Optional deployment title'),
|
|
45
|
-
description: z.string().optional().describe('Optional deployment description'),
|
|
46
|
-
})
|
|
47
|
-
.strict(),
|
|
48
|
-
endpoint: '/previewDeployment.redeploy',
|
|
49
|
-
});
|
|
50
|
-
export const previewDeploymentTools = [all, one, remove, redeploy];
|
package/dist/tools/project.d.ts
DELETED
package/dist/tools/project.js
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { getTool, postTool } from './_factory.js';
|
|
3
|
-
// ── tools ────────────────────────────────────────────────────────────
|
|
4
|
-
const all = getTool({
|
|
5
|
-
name: 'dokploy_project_all',
|
|
6
|
-
title: 'List All Projects',
|
|
7
|
-
description: 'List all projects in the Dokploy instance. Takes no parameters and returns an array of project objects, each containing the project ID, name, description, and associated services. Useful for discovering available projects before performing operations on them.',
|
|
8
|
-
schema: z.object({}).strict(),
|
|
9
|
-
endpoint: '/project.all',
|
|
10
|
-
});
|
|
11
|
-
const allForPermissions = getTool({
|
|
12
|
-
name: 'dokploy_project_all_for_permissions',
|
|
13
|
-
title: 'List Projects for Permissions',
|
|
14
|
-
description: 'List projects in the format used by Dokploy permission assignment workflows.',
|
|
15
|
-
schema: z.object({}).strict(),
|
|
16
|
-
endpoint: '/project.allForPermissions',
|
|
17
|
-
});
|
|
18
|
-
const one = getTool({
|
|
19
|
-
name: 'dokploy_project_one',
|
|
20
|
-
title: 'Get Project Details',
|
|
21
|
-
description: 'Retrieve detailed information about a single Dokploy project by its unique ID. Returns the full project object including its name, description, environment variables, and all associated services such as applications, databases, and compose stacks.',
|
|
22
|
-
schema: z
|
|
23
|
-
.object({
|
|
24
|
-
projectId: z.string().min(1).describe('The unique project ID'),
|
|
25
|
-
})
|
|
26
|
-
.strict(),
|
|
27
|
-
endpoint: '/project.one',
|
|
28
|
-
});
|
|
29
|
-
const create = postTool({
|
|
30
|
-
name: 'dokploy_project_create',
|
|
31
|
-
title: 'Create Project',
|
|
32
|
-
description: 'Create a new project in Dokploy. Requires a project name and optionally accepts a description. Projects serve as organizational containers for applications, databases, and other services. Returns the newly created project object with its generated ID.',
|
|
33
|
-
schema: z
|
|
34
|
-
.object({
|
|
35
|
-
name: z.string().min(1).describe('The name of the project'),
|
|
36
|
-
description: z.string().nullable().optional().describe('Optional project description'),
|
|
37
|
-
})
|
|
38
|
-
.strict(),
|
|
39
|
-
endpoint: '/project.create',
|
|
40
|
-
});
|
|
41
|
-
const update = postTool({
|
|
42
|
-
name: 'dokploy_project_update',
|
|
43
|
-
title: 'Update Project',
|
|
44
|
-
description: 'Update an existing Dokploy project. Requires the project ID and accepts optional fields to modify including name, description, and environment variables. Only the provided fields will be updated; omitted fields remain unchanged. Returns the updated project object.',
|
|
45
|
-
schema: z
|
|
46
|
-
.object({
|
|
47
|
-
projectId: z.string().min(1).describe('The unique project ID'),
|
|
48
|
-
name: z.string().optional().describe('New project name'),
|
|
49
|
-
description: z.string().nullable().optional().describe('New project description'),
|
|
50
|
-
env: z.string().nullable().optional().describe('Environment variables for the project'),
|
|
51
|
-
})
|
|
52
|
-
.strict(),
|
|
53
|
-
endpoint: '/project.update',
|
|
54
|
-
});
|
|
55
|
-
const duplicate = postTool({
|
|
56
|
-
name: 'dokploy_project_duplicate',
|
|
57
|
-
title: 'Duplicate Project',
|
|
58
|
-
description: 'Duplicate an existing Dokploy project, creating a new project with the same configuration. Requires the source environment ID and a name for the new project. Optionally include services from the original project, either all services or a selected subset specified by their IDs and types. Returns the newly created duplicate project.',
|
|
59
|
-
schema: z
|
|
60
|
-
.object({
|
|
61
|
-
sourceEnvironmentId: z
|
|
62
|
-
.string()
|
|
63
|
-
.min(1)
|
|
64
|
-
.describe('The ID of the source environment to duplicate'),
|
|
65
|
-
name: z.string().min(1).describe('The name for the duplicated project'),
|
|
66
|
-
description: z.string().optional().describe('Description for the duplicated project'),
|
|
67
|
-
duplicateInSameProject: z
|
|
68
|
-
.boolean()
|
|
69
|
-
.optional()
|
|
70
|
-
.describe('Whether to duplicate within the same project'),
|
|
71
|
-
includeServices: z
|
|
72
|
-
.boolean()
|
|
73
|
-
.optional()
|
|
74
|
-
.describe('Whether to include services in the duplicate'),
|
|
75
|
-
selectedServices: z
|
|
76
|
-
.array(z
|
|
77
|
-
.object({
|
|
78
|
-
id: z.string().min(1).describe('The service ID'),
|
|
79
|
-
type: z.string().min(1).describe('The service type'),
|
|
80
|
-
})
|
|
81
|
-
.strict())
|
|
82
|
-
.optional()
|
|
83
|
-
.describe('Specific services to include in the duplicate'),
|
|
84
|
-
})
|
|
85
|
-
.strict(),
|
|
86
|
-
endpoint: '/project.duplicate',
|
|
87
|
-
});
|
|
88
|
-
const remove = postTool({
|
|
89
|
-
name: 'dokploy_project_remove',
|
|
90
|
-
title: 'Remove Project',
|
|
91
|
-
description: 'Permanently remove a Dokploy project and all its associated resources including applications, databases, and compose stacks. This action is irreversible and will delete all data within the project. Requires the project ID to remove.',
|
|
92
|
-
schema: z
|
|
93
|
-
.object({
|
|
94
|
-
projectId: z.string().min(1).describe('The unique project ID to remove'),
|
|
95
|
-
})
|
|
96
|
-
.strict(),
|
|
97
|
-
endpoint: '/project.remove',
|
|
98
|
-
annotations: { destructiveHint: true },
|
|
99
|
-
});
|
|
100
|
-
const search = getTool({
|
|
101
|
-
name: 'dokploy_project_search',
|
|
102
|
-
title: 'Search Projects',
|
|
103
|
-
description: 'Search Dokploy projects by free text or field-specific filters. Supports pagination through limit and offset.',
|
|
104
|
-
schema: z
|
|
105
|
-
.object({
|
|
106
|
-
q: z.string().optional().describe('Free-text query'),
|
|
107
|
-
name: z.string().optional().describe('Project name'),
|
|
108
|
-
description: z.string().optional().describe('Project description'),
|
|
109
|
-
limit: z.number().min(1).max(100).optional().describe('Maximum number of results'),
|
|
110
|
-
offset: z.number().min(0).optional().describe('Number of results to skip'),
|
|
111
|
-
})
|
|
112
|
-
.strict(),
|
|
113
|
-
endpoint: '/project.search',
|
|
114
|
-
});
|
|
115
|
-
// ── export ───────────────────────────────────────────────────────────
|
|
116
|
-
export const projectTools = [
|
|
117
|
-
all,
|
|
118
|
-
allForPermissions,
|
|
119
|
-
one,
|
|
120
|
-
create,
|
|
121
|
-
update,
|
|
122
|
-
duplicate,
|
|
123
|
-
remove,
|
|
124
|
-
search,
|
|
125
|
-
];
|
package/dist/tools/redirects.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { getTool, postTool } from './_factory.js';
|
|
3
|
-
// ── helpers ──────────────────────────────────────────────────────────
|
|
4
|
-
const redirectId = z.string().min(1).describe('Unique redirect rule ID');
|
|
5
|
-
// ── tools ────────────────────────────────────────────────────────────
|
|
6
|
-
const one = getTool({
|
|
7
|
-
name: 'dokploy_redirect_one',
|
|
8
|
-
title: 'Get Redirect Rule',
|
|
9
|
-
description: 'Get details of a specific redirect rule by its unique ID. Requires the redirectId parameter. Returns the full redirect configuration including regex pattern, replacement URL, and whether it is a permanent (301) or temporary (302) redirect.',
|
|
10
|
-
schema: z.object({ redirectId }).strict(),
|
|
11
|
-
endpoint: '/redirects.one',
|
|
12
|
-
});
|
|
13
|
-
const create = postTool({
|
|
14
|
-
name: 'dokploy_redirect_create',
|
|
15
|
-
title: 'Create Redirect Rule',
|
|
16
|
-
description: 'Create a new redirect rule for an application. Requires a regex pattern to match incoming requests, a replacement URL or path, a permanent flag indicating 301 vs 302 redirect, and the target applicationId. Returns the newly created redirect rule with its assigned ID.',
|
|
17
|
-
schema: z
|
|
18
|
-
.object({
|
|
19
|
-
regex: z.string().min(1).describe('Regular expression pattern to match incoming requests'),
|
|
20
|
-
replacement: z.string().min(1).describe('Replacement URL or path for matched requests'),
|
|
21
|
-
permanent: z.boolean().describe('Whether the redirect is permanent (301) or temporary (302)'),
|
|
22
|
-
applicationId: z.string().min(1).describe('ID of the application to add the redirect to'),
|
|
23
|
-
})
|
|
24
|
-
.strict(),
|
|
25
|
-
endpoint: '/redirects.create',
|
|
26
|
-
});
|
|
27
|
-
const update = postTool({
|
|
28
|
-
name: 'dokploy_redirect_update',
|
|
29
|
-
title: 'Update Redirect Rule',
|
|
30
|
-
description: 'Update an existing redirect rule by its ID. Requires the redirectId and accepts optional fields: regex pattern, replacement URL, and permanent flag. Only provided fields will be updated; omitted fields remain unchanged. Returns the updated redirect rule.',
|
|
31
|
-
schema: z
|
|
32
|
-
.object({
|
|
33
|
-
redirectId,
|
|
34
|
-
regex: z.string().optional().describe('New regular expression pattern'),
|
|
35
|
-
replacement: z.string().optional().describe('New replacement URL or path'),
|
|
36
|
-
permanent: z
|
|
37
|
-
.boolean()
|
|
38
|
-
.optional()
|
|
39
|
-
.describe('Whether the redirect is permanent (301) or temporary (302)'),
|
|
40
|
-
})
|
|
41
|
-
.strict(),
|
|
42
|
-
endpoint: '/redirects.update',
|
|
43
|
-
});
|
|
44
|
-
const deleteTool = postTool({
|
|
45
|
-
name: 'dokploy_redirect_delete',
|
|
46
|
-
title: 'Delete Redirect Rule',
|
|
47
|
-
description: 'Delete a redirect rule permanently by its ID. This action is irreversible and the redirect will stop being applied immediately. Requires the redirectId parameter. Returns a confirmation of the deletion.',
|
|
48
|
-
schema: z.object({ redirectId }).strict(),
|
|
49
|
-
endpoint: '/redirects.delete',
|
|
50
|
-
annotations: { destructiveHint: true },
|
|
51
|
-
});
|
|
52
|
-
// ── export ───────────────────────────────────────────────────────────
|
|
53
|
-
export const redirectsTools = [one, create, update, deleteTool];
|
package/dist/tools/redis.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const redisTools: import("./_factory.js").ToolDefinition[];
|
package/dist/tools/redis.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { createDatabaseTools } from './_database.js';
|
|
3
|
-
export const redisTools = createDatabaseTools({
|
|
4
|
-
type: 'redis',
|
|
5
|
-
idField: 'redisId',
|
|
6
|
-
displayName: 'Redis',
|
|
7
|
-
defaultImage: 'redis:8',
|
|
8
|
-
createFields: z.object({
|
|
9
|
-
databasePassword: z.string().min(1).describe('Database password'),
|
|
10
|
-
}),
|
|
11
|
-
});
|
package/dist/tools/registry.d.ts
DELETED
package/dist/tools/registry.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { getTool, postTool } from './_factory.js';
|
|
3
|
-
// ── helpers ──────────────────────────────────────────────────────────
|
|
4
|
-
const registryTypeEnum = z
|
|
5
|
-
.enum(['selfHosted', 'cloud'])
|
|
6
|
-
.describe('Registry type: selfHosted or cloud');
|
|
7
|
-
const registryBaseSchema = {
|
|
8
|
-
registryName: z.string().min(1).describe('Name of the registry'),
|
|
9
|
-
username: z.string().min(1).describe('Registry username'),
|
|
10
|
-
password: z.string().min(1).describe('Registry password'),
|
|
11
|
-
registryUrl: z.string().min(1).describe('Registry URL'),
|
|
12
|
-
registryType: registryTypeEnum,
|
|
13
|
-
imagePrefix: z.string().nullable().optional().describe('Optional image prefix for the registry'),
|
|
14
|
-
};
|
|
15
|
-
// ── tools ────────────────────────────────────────────────────────────
|
|
16
|
-
const all = getTool({
|
|
17
|
-
name: 'dokploy_registry_all',
|
|
18
|
-
title: 'List Registries',
|
|
19
|
-
description: 'List all container registries configured in Dokploy. Returns an array of registry objects including their names, URLs, types (selfHosted or cloud), and authentication details. Takes no parameters. Useful for reviewing which registries are available for deploying container images.',
|
|
20
|
-
schema: z.object({}).strict(),
|
|
21
|
-
endpoint: '/registry.all',
|
|
22
|
-
});
|
|
23
|
-
const one = getTool({
|
|
24
|
-
name: 'dokploy_registry_one',
|
|
25
|
-
title: 'Get Registry Details',
|
|
26
|
-
description: 'Get the full details of a specific container registry by its unique ID. Returns the registry name, URL, type, credentials, and image prefix configuration. Requires the registry ID. Useful for inspecting or verifying a registry setup before deploying.',
|
|
27
|
-
schema: z
|
|
28
|
-
.object({
|
|
29
|
-
registryId: z.string().min(1).describe('Unique registry ID'),
|
|
30
|
-
})
|
|
31
|
-
.strict(),
|
|
32
|
-
endpoint: '/registry.one',
|
|
33
|
-
});
|
|
34
|
-
const create = postTool({
|
|
35
|
-
name: 'dokploy_registry_create',
|
|
36
|
-
title: 'Create Registry',
|
|
37
|
-
description: 'Create a new container registry configuration in Dokploy. Requires the registry name, URL, username, password, and type (selfHosted or cloud). Optionally accepts an image prefix. Returns the newly created registry object.',
|
|
38
|
-
schema: z
|
|
39
|
-
.object({
|
|
40
|
-
...registryBaseSchema,
|
|
41
|
-
})
|
|
42
|
-
.strict(),
|
|
43
|
-
endpoint: '/registry.create',
|
|
44
|
-
});
|
|
45
|
-
const update = postTool({
|
|
46
|
-
name: 'dokploy_registry_update',
|
|
47
|
-
title: 'Update Registry',
|
|
48
|
-
description: 'Update an existing container registry configuration in Dokploy. Requires the registry ID along with the updated name, URL, username, password, and type. Optionally accepts an image prefix. Returns the updated registry object.',
|
|
49
|
-
schema: z
|
|
50
|
-
.object({
|
|
51
|
-
registryId: z.string().min(1).describe('Unique registry ID to update'),
|
|
52
|
-
...registryBaseSchema,
|
|
53
|
-
})
|
|
54
|
-
.strict(),
|
|
55
|
-
endpoint: '/registry.update',
|
|
56
|
-
});
|
|
57
|
-
const remove = postTool({
|
|
58
|
-
name: 'dokploy_registry_remove',
|
|
59
|
-
title: 'Remove Registry',
|
|
60
|
-
description: 'Permanently remove a container registry configuration from Dokploy. This action is irreversible and will delete all stored credentials for the registry. Requires the registry ID. Applications referencing this registry will need to be reconfigured.',
|
|
61
|
-
schema: z
|
|
62
|
-
.object({
|
|
63
|
-
registryId: z.string().min(1).describe('Unique registry ID to remove'),
|
|
64
|
-
})
|
|
65
|
-
.strict(),
|
|
66
|
-
endpoint: '/registry.remove',
|
|
67
|
-
annotations: { destructiveHint: true },
|
|
68
|
-
});
|
|
69
|
-
const testRegistry = postTool({
|
|
70
|
-
name: 'dokploy_registry_test',
|
|
71
|
-
title: 'Test Registry Connection',
|
|
72
|
-
description: 'Test the connection to a container registry using the provided credentials. Validates that Dokploy can authenticate and communicate with the registry. Requires the registry name, URL, username, password, and type. Returns a success or failure status.',
|
|
73
|
-
schema: z
|
|
74
|
-
.object({
|
|
75
|
-
...registryBaseSchema,
|
|
76
|
-
})
|
|
77
|
-
.strict(),
|
|
78
|
-
endpoint: '/registry.testRegistry',
|
|
79
|
-
});
|
|
80
|
-
// ── export ───────────────────────────────────────────────────────────
|
|
81
|
-
export const registryTools = [all, one, create, update, remove, testRegistry];
|
package/dist/tools/rollback.d.ts
DELETED
package/dist/tools/rollback.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { postTool } from './_factory.js';
|
|
3
|
-
const rollbackIdSchema = z.string().min(1).describe('Rollback ID');
|
|
4
|
-
const rollback = postTool({
|
|
5
|
-
name: 'dokploy_rollback_rollback',
|
|
6
|
-
title: 'Execute Rollback',
|
|
7
|
-
description: 'Execute a rollback in Dokploy. Requires the rollback ID and triggers a rollback to the associated deployment target.',
|
|
8
|
-
schema: z
|
|
9
|
-
.object({
|
|
10
|
-
rollbackId: rollbackIdSchema,
|
|
11
|
-
})
|
|
12
|
-
.strict(),
|
|
13
|
-
endpoint: '/rollback.rollback',
|
|
14
|
-
annotations: { destructiveHint: true },
|
|
15
|
-
});
|
|
16
|
-
const remove = postTool({
|
|
17
|
-
name: 'dokploy_rollback_delete',
|
|
18
|
-
title: 'Delete Rollback Record',
|
|
19
|
-
description: 'Delete a rollback record from Dokploy. Requires the rollback ID. This is a destructive action.',
|
|
20
|
-
schema: z
|
|
21
|
-
.object({
|
|
22
|
-
rollbackId: rollbackIdSchema,
|
|
23
|
-
})
|
|
24
|
-
.strict(),
|
|
25
|
-
endpoint: '/rollback.delete',
|
|
26
|
-
annotations: { destructiveHint: true },
|
|
27
|
-
});
|
|
28
|
-
export const rollbackTools = [rollback, remove];
|
package/dist/tools/schedule.d.ts
DELETED