@vibetools/dokploy-mcp 1.0.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 +59 -160
- package/dist/api/client.d.ts +3 -0
- package/dist/api/client.js +38 -13
- 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.d.ts → mcp/tool-factory.d.ts} +2 -0
- package/dist/{tools/_factory.js → mcp/tool-factory.js} +26 -7
- 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 -96
- 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 -464
- package/dist/tools/backup.d.ts +0 -2
- package/dist/tools/backup.js +0 -103
- 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 -213
- package/dist/tools/deployment.d.ts +0 -2
- package/dist/tools/deployment.js +0 -27
- 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 -50
- package/dist/tools/domain.d.ts +0 -2
- package/dist/tools/domain.js +0 -134
- package/dist/tools/index.d.ts +0 -2
- package/dist/tools/index.js +0 -48
- 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 -12
- package/dist/tools/mounts.d.ts +0 -2
- package/dist/tools/mounts.js +0 -65
- package/dist/tools/mysql.d.ts +0 -1
- package/dist/tools/mysql.js +0 -14
- 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/project.d.ts +0 -2
- package/dist/tools/project.js +0 -94
- 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/security.d.ts +0 -2
- package/dist/tools/security.js +0 -48
- package/dist/tools/settings.d.ts +0 -2
- package/dist/tools/settings.js +0 -258
- package/dist/tools/user.d.ts +0 -2
- package/dist/tools/user.js +0 -12
package/dist/tools/mounts.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { getTool, postTool } from './_factory.js';
|
|
3
|
-
// ── helpers ──────────────────────────────────────────────────────────
|
|
4
|
-
const mountId = z.string().min(1).describe('Unique mount ID');
|
|
5
|
-
const mountTypeEnum = z
|
|
6
|
-
.enum(['bind', 'volume', 'file'])
|
|
7
|
-
.describe('Mount type: bind, volume, or file');
|
|
8
|
-
// ── tools ────────────────────────────────────────────────────────────
|
|
9
|
-
const one = getTool({
|
|
10
|
-
name: 'dokploy_mount_one',
|
|
11
|
-
title: 'Get Mount',
|
|
12
|
-
description: 'Retrieve the full configuration of a specific mount by its unique ID. Requires the mountId parameter. Returns the mount object including its type (bind, volume, or file), container path, host path or volume name, and associated service ID.',
|
|
13
|
-
schema: z.object({ mountId }).strict(),
|
|
14
|
-
endpoint: '/mounts.one',
|
|
15
|
-
});
|
|
16
|
-
const create = postTool({
|
|
17
|
-
name: 'dokploy_mount_create',
|
|
18
|
-
title: 'Create Mount',
|
|
19
|
-
description: 'Create a new mount for a Dokploy service. Supports bind mounts (host path to container), volume mounts (named Docker volumes), and file mounts (inline file content). Requires the mount type, container path, and service ID. Returns the created mount configuration.',
|
|
20
|
-
schema: z
|
|
21
|
-
.object({
|
|
22
|
-
type: mountTypeEnum,
|
|
23
|
-
mountPath: z
|
|
24
|
-
.string()
|
|
25
|
-
.min(1)
|
|
26
|
-
.describe('Path inside the container where the mount is attached'),
|
|
27
|
-
serviceId: z.string().min(1).describe('ID of the service to attach the mount to'),
|
|
28
|
-
hostPath: z.string().optional().describe('Host path for bind mounts'),
|
|
29
|
-
volumeName: z.string().optional().describe('Volume name for volume mounts'),
|
|
30
|
-
content: z.string().optional().describe('File content for file mounts'),
|
|
31
|
-
serviceType: z
|
|
32
|
-
.enum(['application', 'postgres', 'mysql', 'mariadb', 'mongo', 'redis', 'compose'])
|
|
33
|
-
.optional()
|
|
34
|
-
.default('application')
|
|
35
|
-
.describe('Type of service the mount belongs to'),
|
|
36
|
-
})
|
|
37
|
-
.strict(),
|
|
38
|
-
endpoint: '/mounts.create',
|
|
39
|
-
});
|
|
40
|
-
const update = postTool({
|
|
41
|
-
name: 'dokploy_mount_update',
|
|
42
|
-
title: 'Update Mount',
|
|
43
|
-
description: 'Update an existing mount configuration for a Dokploy service. Requires the mountId of the mount to modify. Optionally update the mount type, container path, host path (for bind mounts), volume name (for volume mounts), or file content (for file mounts). Returns the updated mount configuration.',
|
|
44
|
-
schema: z
|
|
45
|
-
.object({
|
|
46
|
-
mountId,
|
|
47
|
-
type: mountTypeEnum.optional().describe('New mount type'),
|
|
48
|
-
mountPath: z.string().optional().describe('New path inside the container'),
|
|
49
|
-
hostPath: z.string().optional().describe('New host path for bind mounts'),
|
|
50
|
-
volumeName: z.string().optional().describe('New volume name for volume mounts'),
|
|
51
|
-
content: z.string().optional().describe('New file content for file mounts'),
|
|
52
|
-
})
|
|
53
|
-
.strict(),
|
|
54
|
-
endpoint: '/mounts.update',
|
|
55
|
-
});
|
|
56
|
-
const remove = postTool({
|
|
57
|
-
name: 'dokploy_mount_remove',
|
|
58
|
-
title: 'Remove Mount',
|
|
59
|
-
description: 'Permanently remove a mount from a Dokploy service. This action is irreversible and detaches the mount from the service container. Requires the mountId parameter. The underlying host path, volume, or file content is not automatically deleted.',
|
|
60
|
-
schema: z.object({ mountId }).strict(),
|
|
61
|
-
endpoint: '/mounts.remove',
|
|
62
|
-
annotations: { destructiveHint: true },
|
|
63
|
-
});
|
|
64
|
-
// ── export ───────────────────────────────────────────────────────────
|
|
65
|
-
export const mountsTools = [one, create, update, remove];
|
package/dist/tools/mysql.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const mysqlTools: import("./_factory.js").ToolDefinition[];
|
package/dist/tools/mysql.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { createDatabaseTools } from './_database.js';
|
|
3
|
-
export const mysqlTools = createDatabaseTools({
|
|
4
|
-
type: 'mysql',
|
|
5
|
-
idField: 'mysqlId',
|
|
6
|
-
displayName: 'MySQL',
|
|
7
|
-
defaultImage: 'mysql:8',
|
|
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
|
-
databaseRootPassword: z.string().min(1).describe('Root password for MySQL'),
|
|
13
|
-
}),
|
|
14
|
-
});
|
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:15',
|
|
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
|
-
});
|
package/dist/tools/project.d.ts
DELETED
package/dist/tools/project.js
DELETED
|
@@ -1,94 +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 one = getTool({
|
|
12
|
-
name: 'dokploy_project_one',
|
|
13
|
-
title: 'Get Project Details',
|
|
14
|
-
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.',
|
|
15
|
-
schema: z
|
|
16
|
-
.object({
|
|
17
|
-
projectId: z.string().min(1).describe('The unique project ID'),
|
|
18
|
-
})
|
|
19
|
-
.strict(),
|
|
20
|
-
endpoint: '/project.one',
|
|
21
|
-
});
|
|
22
|
-
const create = postTool({
|
|
23
|
-
name: 'dokploy_project_create',
|
|
24
|
-
title: 'Create Project',
|
|
25
|
-
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.',
|
|
26
|
-
schema: z
|
|
27
|
-
.object({
|
|
28
|
-
name: z.string().min(1).describe('The name of the project'),
|
|
29
|
-
description: z.string().nullable().optional().describe('Optional project description'),
|
|
30
|
-
})
|
|
31
|
-
.strict(),
|
|
32
|
-
endpoint: '/project.create',
|
|
33
|
-
});
|
|
34
|
-
const update = postTool({
|
|
35
|
-
name: 'dokploy_project_update',
|
|
36
|
-
title: 'Update Project',
|
|
37
|
-
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.',
|
|
38
|
-
schema: z
|
|
39
|
-
.object({
|
|
40
|
-
projectId: z.string().min(1).describe('The unique project ID'),
|
|
41
|
-
name: z.string().optional().describe('New project name'),
|
|
42
|
-
description: z.string().nullable().optional().describe('New project description'),
|
|
43
|
-
env: z.string().nullable().optional().describe('Environment variables for the project'),
|
|
44
|
-
})
|
|
45
|
-
.strict(),
|
|
46
|
-
endpoint: '/project.update',
|
|
47
|
-
});
|
|
48
|
-
const duplicate = postTool({
|
|
49
|
-
name: 'dokploy_project_duplicate',
|
|
50
|
-
title: 'Duplicate Project',
|
|
51
|
-
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.',
|
|
52
|
-
schema: z
|
|
53
|
-
.object({
|
|
54
|
-
sourceEnvironmentId: z
|
|
55
|
-
.string()
|
|
56
|
-
.min(1)
|
|
57
|
-
.describe('The ID of the source environment to duplicate'),
|
|
58
|
-
name: z.string().min(1).describe('The name for the duplicated project'),
|
|
59
|
-
description: z.string().optional().describe('Description for the duplicated project'),
|
|
60
|
-
duplicateInSameProject: z
|
|
61
|
-
.boolean()
|
|
62
|
-
.optional()
|
|
63
|
-
.describe('Whether to duplicate within the same project'),
|
|
64
|
-
includeServices: z
|
|
65
|
-
.boolean()
|
|
66
|
-
.optional()
|
|
67
|
-
.describe('Whether to include services in the duplicate'),
|
|
68
|
-
selectedServices: z
|
|
69
|
-
.array(z
|
|
70
|
-
.object({
|
|
71
|
-
id: z.string().min(1).describe('The service ID'),
|
|
72
|
-
type: z.string().min(1).describe('The service type'),
|
|
73
|
-
})
|
|
74
|
-
.strict())
|
|
75
|
-
.optional()
|
|
76
|
-
.describe('Specific services to include in the duplicate'),
|
|
77
|
-
})
|
|
78
|
-
.strict(),
|
|
79
|
-
endpoint: '/project.duplicate',
|
|
80
|
-
});
|
|
81
|
-
const remove = postTool({
|
|
82
|
-
name: 'dokploy_project_remove',
|
|
83
|
-
title: 'Remove Project',
|
|
84
|
-
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.',
|
|
85
|
-
schema: z
|
|
86
|
-
.object({
|
|
87
|
-
projectId: z.string().min(1).describe('The unique project ID to remove'),
|
|
88
|
-
})
|
|
89
|
-
.strict(),
|
|
90
|
-
endpoint: '/project.remove',
|
|
91
|
-
annotations: { destructiveHint: true },
|
|
92
|
-
});
|
|
93
|
-
// ── export ───────────────────────────────────────────────────────────
|
|
94
|
-
export const projectTools = [all, one, create, update, duplicate, remove];
|
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:7',
|
|
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/security.d.ts
DELETED
package/dist/tools/security.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { getTool, postTool } from './_factory.js';
|
|
3
|
-
// ── helpers ──────────────────────────────────────────────────────────
|
|
4
|
-
const securityId = z.string().min(1).describe('Unique security entry ID');
|
|
5
|
-
// ── tools ────────────────────────────────────────────────────────────
|
|
6
|
-
const one = getTool({
|
|
7
|
-
name: 'dokploy_security_one',
|
|
8
|
-
title: 'Get Security Entry',
|
|
9
|
-
description: 'Get details of a specific HTTP basic-auth security entry by its unique ID. Requires the securityId parameter. Returns the full security configuration including the associated application, username, and authentication settings.',
|
|
10
|
-
schema: z.object({ securityId }).strict(),
|
|
11
|
-
endpoint: '/security.one',
|
|
12
|
-
});
|
|
13
|
-
const create = postTool({
|
|
14
|
-
name: 'dokploy_security_create',
|
|
15
|
-
title: 'Create Security Entry',
|
|
16
|
-
description: 'Create a new HTTP basic-auth security entry to protect an application with username and password authentication. Requires the applicationId, username, and password parameters. Returns the newly created security entry with its assigned ID.',
|
|
17
|
-
schema: z
|
|
18
|
-
.object({
|
|
19
|
-
applicationId: z.string().min(1).describe('ID of the application to protect'),
|
|
20
|
-
username: z.string().min(1).describe('Username for basic-auth access'),
|
|
21
|
-
password: z.string().min(1).describe('Password for basic-auth access'),
|
|
22
|
-
})
|
|
23
|
-
.strict(),
|
|
24
|
-
endpoint: '/security.create',
|
|
25
|
-
});
|
|
26
|
-
const update = postTool({
|
|
27
|
-
name: 'dokploy_security_update',
|
|
28
|
-
title: 'Update Security Entry',
|
|
29
|
-
description: 'Update an existing HTTP basic-auth security entry by its ID. Requires the securityId and accepts optional username and password fields. Only provided fields will be updated; omitted fields remain unchanged. Returns the updated security entry.',
|
|
30
|
-
schema: z
|
|
31
|
-
.object({
|
|
32
|
-
securityId,
|
|
33
|
-
username: z.string().optional().describe('New username for basic-auth access'),
|
|
34
|
-
password: z.string().optional().describe('New password for basic-auth access'),
|
|
35
|
-
})
|
|
36
|
-
.strict(),
|
|
37
|
-
endpoint: '/security.update',
|
|
38
|
-
});
|
|
39
|
-
const deleteTool = postTool({
|
|
40
|
-
name: 'dokploy_security_delete',
|
|
41
|
-
title: 'Delete Security Entry',
|
|
42
|
-
description: 'Delete an HTTP basic-auth security entry permanently by its ID. This action is irreversible and will immediately remove authentication protection from the associated application. Requires the securityId parameter. Returns a confirmation of the deletion.',
|
|
43
|
-
schema: z.object({ securityId }).strict(),
|
|
44
|
-
endpoint: '/security.delete',
|
|
45
|
-
annotations: { destructiveHint: true },
|
|
46
|
-
});
|
|
47
|
-
// ── export ───────────────────────────────────────────────────────────
|
|
48
|
-
export const securityTools = [one, create, update, deleteTool];
|
package/dist/tools/settings.d.ts
DELETED