@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/docker.js
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { getTool, postTool } from './_factory.js';
|
|
3
|
-
// ── tools ────────────────────────────────────────────────────────────
|
|
4
|
-
const getContainers = getTool({
|
|
5
|
-
name: 'dokploy_docker_get_containers',
|
|
6
|
-
title: 'List Docker Containers',
|
|
7
|
-
description: 'List all Docker containers running on the Dokploy server. Returns container metadata including names, images, status, ports, and resource usage. Takes no parameters. Useful for getting an overview of all running and stopped containers.',
|
|
8
|
-
schema: z
|
|
9
|
-
.object({
|
|
10
|
-
serverId: z.string().optional().describe('Optional server ID'),
|
|
11
|
-
})
|
|
12
|
-
.strict(),
|
|
13
|
-
endpoint: '/docker.getContainers',
|
|
14
|
-
});
|
|
15
|
-
const getConfig = getTool({
|
|
16
|
-
name: 'dokploy_docker_get_config',
|
|
17
|
-
title: 'Get Docker Container Config',
|
|
18
|
-
description: 'Get the full configuration of a specific Docker container by its ID. Returns detailed container settings including environment variables, volumes, network configuration, and resource limits. Requires the Docker container ID.',
|
|
19
|
-
schema: z
|
|
20
|
-
.object({
|
|
21
|
-
containerId: z.string().min(1).describe('The Docker container ID'),
|
|
22
|
-
serverId: z.string().optional().describe('Optional server ID'),
|
|
23
|
-
})
|
|
24
|
-
.strict(),
|
|
25
|
-
endpoint: '/docker.getConfig',
|
|
26
|
-
});
|
|
27
|
-
const getContainersByAppNameMatch = getTool({
|
|
28
|
-
name: 'dokploy_docker_get_containers_by_app_name_match',
|
|
29
|
-
title: 'Find Containers by App Name',
|
|
30
|
-
description: 'Find Docker containers whose name matches the given application name. Performs a substring match against container names to locate containers belonging to a specific app. Requires the app name string. Returns matching container objects with their metadata.',
|
|
31
|
-
schema: z
|
|
32
|
-
.object({
|
|
33
|
-
appName: z.string().min(1).describe('The app name to match against container names'),
|
|
34
|
-
appType: z.enum(['stack', 'docker-compose']).optional().describe('App type'),
|
|
35
|
-
serverId: z.string().optional().describe('Optional server ID'),
|
|
36
|
-
})
|
|
37
|
-
.strict(),
|
|
38
|
-
endpoint: '/docker.getContainersByAppNameMatch',
|
|
39
|
-
});
|
|
40
|
-
const getContainersByAppLabel = getTool({
|
|
41
|
-
name: 'dokploy_docker_get_containers_by_app_label',
|
|
42
|
-
title: 'Find Containers by App Label',
|
|
43
|
-
description: 'Find Docker containers by their application label metadata. Searches for containers that have a matching app label, which is the recommended way to identify containers managed by Dokploy. Requires the app name label value. Returns matching container objects.',
|
|
44
|
-
schema: z
|
|
45
|
-
.object({
|
|
46
|
-
appName: z.string().min(1).describe('The app name label to search for'),
|
|
47
|
-
serverId: z.string().optional().describe('Optional server ID'),
|
|
48
|
-
type: z.enum(['standalone', 'swarm']).describe('Container type'),
|
|
49
|
-
})
|
|
50
|
-
.strict(),
|
|
51
|
-
endpoint: '/docker.getContainersByAppLabel',
|
|
52
|
-
});
|
|
53
|
-
const restartContainer = postTool({
|
|
54
|
-
name: 'dokploy_docker_restart_container',
|
|
55
|
-
title: 'Restart Docker Container',
|
|
56
|
-
description: 'Restart a Docker container managed by Dokploy. Requires the Docker container ID.',
|
|
57
|
-
schema: z
|
|
58
|
-
.object({
|
|
59
|
-
containerId: z
|
|
60
|
-
.string()
|
|
61
|
-
.min(1)
|
|
62
|
-
.regex(/^[a-zA-Z0-9.\-_]+$/)
|
|
63
|
-
.describe('Docker container ID'),
|
|
64
|
-
})
|
|
65
|
-
.strict(),
|
|
66
|
-
endpoint: '/docker.restartContainer',
|
|
67
|
-
annotations: { destructiveHint: true },
|
|
68
|
-
});
|
|
69
|
-
const getStackContainersByAppName = getTool({
|
|
70
|
-
name: 'dokploy_docker_get_stack_containers_by_app_name',
|
|
71
|
-
title: 'List Stack Containers by App Name',
|
|
72
|
-
description: 'List stack containers for a Dokploy application name. Requires the app name and optionally accepts a server ID.',
|
|
73
|
-
schema: z
|
|
74
|
-
.object({
|
|
75
|
-
appName: z
|
|
76
|
-
.string()
|
|
77
|
-
.min(1)
|
|
78
|
-
.regex(/^[a-zA-Z0-9.\-_]+$/)
|
|
79
|
-
.describe('Application name'),
|
|
80
|
-
serverId: z.string().optional().describe('Optional server ID'),
|
|
81
|
-
})
|
|
82
|
-
.strict(),
|
|
83
|
-
endpoint: '/docker.getStackContainersByAppName',
|
|
84
|
-
});
|
|
85
|
-
const getServiceContainersByAppName = getTool({
|
|
86
|
-
name: 'dokploy_docker_get_service_containers_by_app_name',
|
|
87
|
-
title: 'List Service Containers by App Name',
|
|
88
|
-
description: 'List service containers for a Dokploy application name. Requires the app name and optionally accepts a server ID.',
|
|
89
|
-
schema: z
|
|
90
|
-
.object({
|
|
91
|
-
appName: z
|
|
92
|
-
.string()
|
|
93
|
-
.min(1)
|
|
94
|
-
.regex(/^[a-zA-Z0-9.\-_]+$/)
|
|
95
|
-
.describe('Application name'),
|
|
96
|
-
serverId: z.string().optional().describe('Optional server ID'),
|
|
97
|
-
})
|
|
98
|
-
.strict(),
|
|
99
|
-
endpoint: '/docker.getServiceContainersByAppName',
|
|
100
|
-
});
|
|
101
|
-
// ── export ───────────────────────────────────────────────────────────
|
|
102
|
-
export const dockerTools = [
|
|
103
|
-
getContainers,
|
|
104
|
-
getConfig,
|
|
105
|
-
getContainersByAppNameMatch,
|
|
106
|
-
getContainersByAppLabel,
|
|
107
|
-
restartContainer,
|
|
108
|
-
getStackContainersByAppName,
|
|
109
|
-
getServiceContainersByAppName,
|
|
110
|
-
];
|
package/dist/tools/domain.d.ts
DELETED
package/dist/tools/domain.js
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { getTool, postTool } from './_factory.js';
|
|
3
|
-
// ── tools ────────────────────────────────────────────────────────────
|
|
4
|
-
const create = postTool({
|
|
5
|
-
name: 'dokploy_domain_create',
|
|
6
|
-
title: 'Create Domain',
|
|
7
|
-
description: 'Create a new domain configuration for an application or compose service. Requires the hostname, HTTPS setting, and certificate type. Optionally specify path-based routing, a target port, and the application or compose service to attach it to. Returns the created domain object.',
|
|
8
|
-
schema: z
|
|
9
|
-
.object({
|
|
10
|
-
host: z.string().min(1).describe('The domain hostname (e.g., app.example.com)'),
|
|
11
|
-
https: z.boolean().describe('Whether to enable HTTPS'),
|
|
12
|
-
certificateType: z.enum(['letsencrypt', 'none', 'custom']).describe('SSL certificate type'),
|
|
13
|
-
stripPath: z.boolean().describe('Whether to strip the path prefix when forwarding'),
|
|
14
|
-
path: z.string().optional().describe('URL path prefix for routing'),
|
|
15
|
-
port: z.number().nullable().optional().describe('Target port on the container'),
|
|
16
|
-
applicationId: z.string().optional().describe('Application ID to attach the domain to'),
|
|
17
|
-
composeId: z.string().optional().describe('Compose service ID to attach the domain to'),
|
|
18
|
-
serviceName: z.string().optional().describe('Service name within a compose deployment'),
|
|
19
|
-
customCertResolver: z
|
|
20
|
-
.string()
|
|
21
|
-
.nullable()
|
|
22
|
-
.optional()
|
|
23
|
-
.describe('Custom certificate resolver name'),
|
|
24
|
-
domainType: z.string().optional().describe('Domain type'),
|
|
25
|
-
previewDeploymentId: z.string().optional().describe('Preview deployment ID'),
|
|
26
|
-
internalPath: z.string().optional().describe('Internal path for routing'),
|
|
27
|
-
})
|
|
28
|
-
.strict(),
|
|
29
|
-
endpoint: '/domain.create',
|
|
30
|
-
});
|
|
31
|
-
const one = getTool({
|
|
32
|
-
name: 'dokploy_domain_one',
|
|
33
|
-
title: 'Get Domain',
|
|
34
|
-
description: 'Get detailed information about a single domain by its ID. Returns the full domain configuration including hostname, HTTPS settings, certificate type, routing rules, and the associated application or compose service.',
|
|
35
|
-
schema: z
|
|
36
|
-
.object({
|
|
37
|
-
domainId: z.string().min(1).describe('The unique domain ID'),
|
|
38
|
-
})
|
|
39
|
-
.strict(),
|
|
40
|
-
endpoint: '/domain.one',
|
|
41
|
-
});
|
|
42
|
-
const byApplicationId = getTool({
|
|
43
|
-
name: 'dokploy_domain_by_application_id',
|
|
44
|
-
title: 'List Domains by Application',
|
|
45
|
-
description: 'List all domains attached to a specific application. Requires the application ID. Returns an array of domain objects with their hostnames, HTTPS settings, certificate types, and routing configurations.',
|
|
46
|
-
schema: z
|
|
47
|
-
.object({
|
|
48
|
-
applicationId: z.string().min(1).describe('The unique application ID'),
|
|
49
|
-
})
|
|
50
|
-
.strict(),
|
|
51
|
-
endpoint: '/domain.byApplicationId',
|
|
52
|
-
});
|
|
53
|
-
const byComposeId = getTool({
|
|
54
|
-
name: 'dokploy_domain_by_compose_id',
|
|
55
|
-
title: 'List Domains by Compose Service',
|
|
56
|
-
description: 'List all domains attached to a specific compose service. Requires the compose service ID. Returns an array of domain objects with their hostnames, HTTPS settings, certificate types, and routing configurations.',
|
|
57
|
-
schema: z
|
|
58
|
-
.object({
|
|
59
|
-
composeId: z.string().min(1).describe('The unique compose service ID'),
|
|
60
|
-
})
|
|
61
|
-
.strict(),
|
|
62
|
-
endpoint: '/domain.byComposeId',
|
|
63
|
-
});
|
|
64
|
-
const update = postTool({
|
|
65
|
-
name: 'dokploy_domain_update',
|
|
66
|
-
title: 'Update Domain',
|
|
67
|
-
description: 'Update an existing domain configuration. Requires the domain ID along with the hostname, HTTPS setting, certificate type, and strip path option. Optionally modify the path prefix, port, certificate resolver, service name, and routing settings. Returns the updated domain object.',
|
|
68
|
-
schema: z
|
|
69
|
-
.object({
|
|
70
|
-
domainId: z.string().min(1).describe('The unique domain ID'),
|
|
71
|
-
host: z.string().min(1).describe('The domain hostname'),
|
|
72
|
-
https: z.boolean().describe('Whether to enable HTTPS'),
|
|
73
|
-
certificateType: z.enum(['letsencrypt', 'none', 'custom']).describe('SSL certificate type'),
|
|
74
|
-
stripPath: z.boolean().describe('Whether to strip the path prefix'),
|
|
75
|
-
path: z.string().optional().describe('URL path prefix for routing'),
|
|
76
|
-
port: z.number().nullable().optional().describe('Target port on the container'),
|
|
77
|
-
customCertResolver: z
|
|
78
|
-
.string()
|
|
79
|
-
.nullable()
|
|
80
|
-
.optional()
|
|
81
|
-
.describe('Custom certificate resolver name'),
|
|
82
|
-
serviceName: z.string().optional().describe('Service name within a compose deployment'),
|
|
83
|
-
domainType: z.string().optional().describe('Domain type'),
|
|
84
|
-
internalPath: z.string().optional().describe('Internal path for routing'),
|
|
85
|
-
})
|
|
86
|
-
.strict(),
|
|
87
|
-
endpoint: '/domain.update',
|
|
88
|
-
});
|
|
89
|
-
const deleteDomain = postTool({
|
|
90
|
-
name: 'dokploy_domain_delete',
|
|
91
|
-
title: 'Delete Domain',
|
|
92
|
-
description: 'Permanently delete a domain configuration. This removes the domain routing and any associated SSL certificates. This action is irreversible. Requires the domain ID.',
|
|
93
|
-
schema: z
|
|
94
|
-
.object({
|
|
95
|
-
domainId: z.string().min(1).describe('The unique domain ID to delete'),
|
|
96
|
-
})
|
|
97
|
-
.strict(),
|
|
98
|
-
endpoint: '/domain.delete',
|
|
99
|
-
annotations: { destructiveHint: true },
|
|
100
|
-
});
|
|
101
|
-
const validateDomain = postTool({
|
|
102
|
-
name: 'dokploy_domain_validate',
|
|
103
|
-
title: 'Validate Domain DNS',
|
|
104
|
-
description: "Validate that a domain's DNS records are correctly configured and pointing to the expected server. Requires the domain name and optionally accepts the expected server IP address. Returns the validation result indicating whether DNS resolution matches.",
|
|
105
|
-
schema: z
|
|
106
|
-
.object({
|
|
107
|
-
domain: z.string().min(1).describe('The domain name to validate'),
|
|
108
|
-
serverIp: z.string().optional().describe('Expected server IP address for DNS validation'),
|
|
109
|
-
})
|
|
110
|
-
.strict(),
|
|
111
|
-
endpoint: '/domain.validateDomain',
|
|
112
|
-
});
|
|
113
|
-
const generateDomain = postTool({
|
|
114
|
-
name: 'dokploy_domain_generate',
|
|
115
|
-
title: 'Generate Domain',
|
|
116
|
-
description: "Generate a default domain for an app name using the server's configured base domain. Optionally scope generation to a specific server.",
|
|
117
|
-
schema: z
|
|
118
|
-
.object({
|
|
119
|
-
appName: z.string().min(1).describe('App name'),
|
|
120
|
-
serverId: z.string().optional().describe('Optional server ID'),
|
|
121
|
-
})
|
|
122
|
-
.strict(),
|
|
123
|
-
endpoint: '/domain.generateDomain',
|
|
124
|
-
});
|
|
125
|
-
const canGenerateTraefikMeDomains = getTool({
|
|
126
|
-
name: 'dokploy_domain_can_generate_traefik_me_domains',
|
|
127
|
-
title: 'Check Traefik.me Availability',
|
|
128
|
-
description: 'Check whether Dokploy can generate `traefik.me` domains for a given server. Requires the server ID.',
|
|
129
|
-
schema: z
|
|
130
|
-
.object({
|
|
131
|
-
serverId: z.string().describe('Server ID'),
|
|
132
|
-
})
|
|
133
|
-
.strict(),
|
|
134
|
-
endpoint: '/domain.canGenerateTraefikMeDomains',
|
|
135
|
-
});
|
|
136
|
-
// ── export ───────────────────────────────────────────────────────────
|
|
137
|
-
export const domainTools = [
|
|
138
|
-
create,
|
|
139
|
-
one,
|
|
140
|
-
byApplicationId,
|
|
141
|
-
byComposeId,
|
|
142
|
-
canGenerateTraefikMeDomains,
|
|
143
|
-
update,
|
|
144
|
-
deleteDomain,
|
|
145
|
-
validateDomain,
|
|
146
|
-
generateDomain,
|
|
147
|
-
];
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { getTool, postTool } from './_factory.js';
|
|
3
|
-
const paginationLimit = z.number().min(1).max(100).optional().describe('Maximum number of results');
|
|
4
|
-
const paginationOffset = z.number().min(0).optional().describe('Number of results to skip');
|
|
5
|
-
const create = postTool({
|
|
6
|
-
name: 'dokploy_environment_create',
|
|
7
|
-
title: 'Create Environment',
|
|
8
|
-
description: 'Create a new environment inside a Dokploy project. Requires the project ID and environment name. Optionally set a description. Returns the created environment object.',
|
|
9
|
-
schema: z
|
|
10
|
-
.object({
|
|
11
|
-
name: z.string().min(1).describe('The environment name'),
|
|
12
|
-
description: z.string().optional().describe('Environment description'),
|
|
13
|
-
projectId: z.string().min(1).describe('The project ID'),
|
|
14
|
-
})
|
|
15
|
-
.strict(),
|
|
16
|
-
endpoint: '/environment.create',
|
|
17
|
-
});
|
|
18
|
-
const one = getTool({
|
|
19
|
-
name: 'dokploy_environment_one',
|
|
20
|
-
title: 'Get Environment',
|
|
21
|
-
description: 'Retrieve detailed information about a Dokploy environment by its ID. Returns the environment, services, and related project metadata.',
|
|
22
|
-
schema: z
|
|
23
|
-
.object({
|
|
24
|
-
environmentId: z.string().min(1).describe('The environment ID'),
|
|
25
|
-
})
|
|
26
|
-
.strict(),
|
|
27
|
-
endpoint: '/environment.one',
|
|
28
|
-
});
|
|
29
|
-
const byProjectId = getTool({
|
|
30
|
-
name: 'dokploy_environment_by_project_id',
|
|
31
|
-
title: 'List Environments by Project',
|
|
32
|
-
description: 'List all environments belonging to a Dokploy project. Requires the project ID. Returns the environments configured for that project.',
|
|
33
|
-
schema: z
|
|
34
|
-
.object({
|
|
35
|
-
projectId: z.string().min(1).describe('The project ID'),
|
|
36
|
-
})
|
|
37
|
-
.strict(),
|
|
38
|
-
endpoint: '/environment.byProjectId',
|
|
39
|
-
});
|
|
40
|
-
const remove = postTool({
|
|
41
|
-
name: 'dokploy_environment_remove',
|
|
42
|
-
title: 'Remove Environment',
|
|
43
|
-
description: 'Permanently remove a Dokploy environment. This action is destructive and may remove all services that belong to the environment. Requires the environment ID.',
|
|
44
|
-
schema: z
|
|
45
|
-
.object({
|
|
46
|
-
environmentId: z.string().min(1).describe('The environment ID'),
|
|
47
|
-
})
|
|
48
|
-
.strict(),
|
|
49
|
-
endpoint: '/environment.remove',
|
|
50
|
-
annotations: { destructiveHint: true },
|
|
51
|
-
});
|
|
52
|
-
const update = postTool({
|
|
53
|
-
name: 'dokploy_environment_update',
|
|
54
|
-
title: 'Update Environment',
|
|
55
|
-
description: 'Update an existing Dokploy environment. Requires the environment ID and accepts optional changes to the environment name, description, project assignment, and environment variables.',
|
|
56
|
-
schema: z
|
|
57
|
-
.object({
|
|
58
|
-
environmentId: z.string().min(1).describe('The environment ID'),
|
|
59
|
-
name: z.string().min(1).optional().describe('Environment name'),
|
|
60
|
-
description: z.string().optional().describe('Environment description'),
|
|
61
|
-
projectId: z.string().optional().describe('Project ID'),
|
|
62
|
-
env: z.string().optional().describe('Environment variables'),
|
|
63
|
-
})
|
|
64
|
-
.strict(),
|
|
65
|
-
endpoint: '/environment.update',
|
|
66
|
-
});
|
|
67
|
-
const duplicate = postTool({
|
|
68
|
-
name: 'dokploy_environment_duplicate',
|
|
69
|
-
title: 'Duplicate Environment',
|
|
70
|
-
description: 'Duplicate an existing Dokploy environment. Requires the source environment ID and a name for the new environment. Optionally set a description.',
|
|
71
|
-
schema: z
|
|
72
|
-
.object({
|
|
73
|
-
environmentId: z.string().min(1).describe('The source environment ID'),
|
|
74
|
-
name: z.string().min(1).describe('The new environment name'),
|
|
75
|
-
description: z.string().optional().describe('New environment description'),
|
|
76
|
-
})
|
|
77
|
-
.strict(),
|
|
78
|
-
endpoint: '/environment.duplicate',
|
|
79
|
-
});
|
|
80
|
-
const search = getTool({
|
|
81
|
-
name: 'dokploy_environment_search',
|
|
82
|
-
title: 'Search Environments',
|
|
83
|
-
description: 'Search Dokploy environments by free text or field-specific filters. Supports pagination through limit and offset.',
|
|
84
|
-
schema: z
|
|
85
|
-
.object({
|
|
86
|
-
q: z.string().optional().describe('Free-text query'),
|
|
87
|
-
name: z.string().optional().describe('Environment name'),
|
|
88
|
-
description: z.string().optional().describe('Environment description'),
|
|
89
|
-
projectId: z.string().optional().describe('Project ID'),
|
|
90
|
-
limit: paginationLimit,
|
|
91
|
-
offset: paginationOffset,
|
|
92
|
-
})
|
|
93
|
-
.strict(),
|
|
94
|
-
endpoint: '/environment.search',
|
|
95
|
-
});
|
|
96
|
-
export const environmentTools = [
|
|
97
|
-
create,
|
|
98
|
-
one,
|
|
99
|
-
byProjectId,
|
|
100
|
-
remove,
|
|
101
|
-
update,
|
|
102
|
-
duplicate,
|
|
103
|
-
search,
|
|
104
|
-
];
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { getTool, postTool } from './_factory.js';
|
|
3
|
-
const getAll = getTool({
|
|
4
|
-
name: 'dokploy_git_provider_get_all',
|
|
5
|
-
title: 'List Git Providers',
|
|
6
|
-
description: 'List all Git provider integrations available in Dokploy, including provider metadata and linked platform records.',
|
|
7
|
-
schema: z.object({}).strict(),
|
|
8
|
-
endpoint: '/gitProvider.getAll',
|
|
9
|
-
});
|
|
10
|
-
const remove = postTool({
|
|
11
|
-
name: 'dokploy_git_provider_remove',
|
|
12
|
-
title: 'Remove Git Provider',
|
|
13
|
-
description: 'Remove a Git provider integration from Dokploy. Requires the Git provider ID. This is a destructive action.',
|
|
14
|
-
schema: z
|
|
15
|
-
.object({
|
|
16
|
-
gitProviderId: z.string().min(1).describe('Git provider ID'),
|
|
17
|
-
})
|
|
18
|
-
.strict(),
|
|
19
|
-
endpoint: '/gitProvider.remove',
|
|
20
|
-
annotations: { destructiveHint: true },
|
|
21
|
-
});
|
|
22
|
-
export const gitProviderTools = [getAll, remove];
|
package/dist/tools/github.d.ts
DELETED
package/dist/tools/github.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { getTool, postTool } from './_factory.js';
|
|
3
|
-
const githubIdSchema = z.string().min(1).describe('GitHub provider ID');
|
|
4
|
-
const one = getTool({
|
|
5
|
-
name: 'dokploy_github_one',
|
|
6
|
-
title: 'Get GitHub Provider',
|
|
7
|
-
description: 'Retrieve a GitHub provider integration by its ID.',
|
|
8
|
-
schema: z.object({ githubId: githubIdSchema }).strict(),
|
|
9
|
-
endpoint: '/github.one',
|
|
10
|
-
});
|
|
11
|
-
const getGithubRepositories = getTool({
|
|
12
|
-
name: 'dokploy_github_get_github_repositories',
|
|
13
|
-
title: 'List GitHub Repositories',
|
|
14
|
-
description: 'List GitHub repositories available through a Dokploy GitHub provider integration. Requires the GitHub provider ID.',
|
|
15
|
-
schema: z.object({ githubId: githubIdSchema }).strict(),
|
|
16
|
-
endpoint: '/github.getGithubRepositories',
|
|
17
|
-
});
|
|
18
|
-
const getGithubBranches = getTool({
|
|
19
|
-
name: 'dokploy_github_get_github_branches',
|
|
20
|
-
title: 'List GitHub Branches',
|
|
21
|
-
description: 'List branches for a GitHub repository through Dokploy. Requires the repository name and owner. Optionally pass the GitHub provider ID.',
|
|
22
|
-
schema: z
|
|
23
|
-
.object({
|
|
24
|
-
repo: z.string().min(1).describe('Repository name'),
|
|
25
|
-
owner: z.string().min(1).describe('Repository owner'),
|
|
26
|
-
githubId: z.string().optional().describe('GitHub provider ID'),
|
|
27
|
-
})
|
|
28
|
-
.strict(),
|
|
29
|
-
endpoint: '/github.getGithubBranches',
|
|
30
|
-
});
|
|
31
|
-
const githubProviders = getTool({
|
|
32
|
-
name: 'dokploy_github_github_providers',
|
|
33
|
-
title: 'List GitHub Providers',
|
|
34
|
-
description: 'List GitHub provider integrations configured in Dokploy.',
|
|
35
|
-
schema: z.object({}).strict(),
|
|
36
|
-
endpoint: '/github.githubProviders',
|
|
37
|
-
});
|
|
38
|
-
const testConnection = postTool({
|
|
39
|
-
name: 'dokploy_github_test_connection',
|
|
40
|
-
title: 'Test GitHub Connection',
|
|
41
|
-
description: 'Test a Dokploy GitHub provider connection by its ID.',
|
|
42
|
-
schema: z.object({ githubId: githubIdSchema }).strict(),
|
|
43
|
-
endpoint: '/github.testConnection',
|
|
44
|
-
});
|
|
45
|
-
const update = postTool({
|
|
46
|
-
name: 'dokploy_github_update',
|
|
47
|
-
title: 'Update GitHub Provider',
|
|
48
|
-
description: 'Update a Dokploy GitHub provider integration. Requires the provider ID, display name, linked Git provider ID, and GitHub App name.',
|
|
49
|
-
schema: z
|
|
50
|
-
.object({
|
|
51
|
-
githubId: githubIdSchema,
|
|
52
|
-
name: z.string().min(1).describe('Provider display name'),
|
|
53
|
-
gitProviderId: z.string().min(1).describe('Git provider ID'),
|
|
54
|
-
githubAppName: z.string().min(1).describe('GitHub App name'),
|
|
55
|
-
})
|
|
56
|
-
.strict(),
|
|
57
|
-
endpoint: '/github.update',
|
|
58
|
-
});
|
|
59
|
-
export const githubTools = [
|
|
60
|
-
one,
|
|
61
|
-
getGithubRepositories,
|
|
62
|
-
getGithubBranches,
|
|
63
|
-
githubProviders,
|
|
64
|
-
testConnection,
|
|
65
|
-
update,
|
|
66
|
-
];
|
package/dist/tools/gitlab.d.ts
DELETED
package/dist/tools/gitlab.js
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { getTool, postTool } from './_factory.js';
|
|
3
|
-
const nullableString = z.string().nullable().optional();
|
|
4
|
-
const gitlabIdSchema = z.string().min(1).describe('GitLab provider ID');
|
|
5
|
-
const create = postTool({
|
|
6
|
-
name: 'dokploy_gitlab_create',
|
|
7
|
-
title: 'Create GitLab Provider',
|
|
8
|
-
description: 'Create a new GitLab provider integration in Dokploy. Requires the auth ID, name, and GitLab URL. Additional OAuth and provider fields may also be supplied.',
|
|
9
|
-
schema: z
|
|
10
|
-
.object({
|
|
11
|
-
applicationId: z.string().optional().describe('Application ID'),
|
|
12
|
-
secret: z.string().optional().describe('OAuth client secret'),
|
|
13
|
-
groupName: z.string().optional().describe('GitLab group name'),
|
|
14
|
-
gitProviderId: z.string().optional().describe('Git provider ID'),
|
|
15
|
-
redirectUri: z.string().optional().describe('OAuth redirect URI'),
|
|
16
|
-
authId: z.string().min(1).describe('Auth ID'),
|
|
17
|
-
name: z.string().min(1).describe('Provider display name'),
|
|
18
|
-
gitlabUrl: z.string().min(1).describe('GitLab URL'),
|
|
19
|
-
gitlabInternalUrl: nullableString.describe('Internal GitLab URL'),
|
|
20
|
-
})
|
|
21
|
-
.strict(),
|
|
22
|
-
endpoint: '/gitlab.create',
|
|
23
|
-
});
|
|
24
|
-
const one = getTool({
|
|
25
|
-
name: 'dokploy_gitlab_one',
|
|
26
|
-
title: 'Get GitLab Provider',
|
|
27
|
-
description: 'Retrieve a GitLab provider integration by its ID.',
|
|
28
|
-
schema: z.object({ gitlabId: gitlabIdSchema }).strict(),
|
|
29
|
-
endpoint: '/gitlab.one',
|
|
30
|
-
});
|
|
31
|
-
const getGitlabRepositories = getTool({
|
|
32
|
-
name: 'dokploy_gitlab_get_gitlab_repositories',
|
|
33
|
-
title: 'List GitLab Repositories',
|
|
34
|
-
description: 'List repositories available through a Dokploy GitLab provider integration. Requires the GitLab provider ID.',
|
|
35
|
-
schema: z.object({ gitlabId: gitlabIdSchema }).strict(),
|
|
36
|
-
endpoint: '/gitlab.getGitlabRepositories',
|
|
37
|
-
});
|
|
38
|
-
const getGitlabBranches = getTool({
|
|
39
|
-
name: 'dokploy_gitlab_get_gitlab_branches',
|
|
40
|
-
title: 'List GitLab Branches',
|
|
41
|
-
description: 'List branches for a GitLab repository through Dokploy. Requires the owner and repository. Optionally pass the project numeric ID and GitLab provider ID.',
|
|
42
|
-
schema: z
|
|
43
|
-
.object({
|
|
44
|
-
id: z.number().optional().describe('GitLab project numeric ID'),
|
|
45
|
-
owner: z.string().describe('Repository owner'),
|
|
46
|
-
repo: z.string().describe('Repository name'),
|
|
47
|
-
gitlabId: z.string().optional().describe('GitLab provider ID'),
|
|
48
|
-
})
|
|
49
|
-
.strict(),
|
|
50
|
-
endpoint: '/gitlab.getGitlabBranches',
|
|
51
|
-
});
|
|
52
|
-
const gitlabProviders = getTool({
|
|
53
|
-
name: 'dokploy_gitlab_gitlab_providers',
|
|
54
|
-
title: 'List GitLab Providers',
|
|
55
|
-
description: 'List GitLab provider integrations configured in Dokploy.',
|
|
56
|
-
schema: z.object({}).strict(),
|
|
57
|
-
endpoint: '/gitlab.gitlabProviders',
|
|
58
|
-
});
|
|
59
|
-
const testConnection = postTool({
|
|
60
|
-
name: 'dokploy_gitlab_test_connection',
|
|
61
|
-
title: 'Test GitLab Connection',
|
|
62
|
-
description: 'Test a Dokploy GitLab provider integration. Requires the GitLab provider ID and optionally accepts the group name.',
|
|
63
|
-
schema: z
|
|
64
|
-
.object({
|
|
65
|
-
gitlabId: gitlabIdSchema,
|
|
66
|
-
groupName: z.string().optional().describe('GitLab group name'),
|
|
67
|
-
})
|
|
68
|
-
.strict(),
|
|
69
|
-
endpoint: '/gitlab.testConnection',
|
|
70
|
-
});
|
|
71
|
-
const update = postTool({
|
|
72
|
-
name: 'dokploy_gitlab_update',
|
|
73
|
-
title: 'Update GitLab Provider',
|
|
74
|
-
description: 'Update a Dokploy GitLab provider integration. Requires the GitLab provider ID, display name, GitLab URL, and linked Git provider ID. Optional OAuth and group fields may also be supplied.',
|
|
75
|
-
schema: z
|
|
76
|
-
.object({
|
|
77
|
-
applicationId: z.string().optional().describe('Application ID'),
|
|
78
|
-
secret: z.string().optional().describe('OAuth client secret'),
|
|
79
|
-
groupName: z.string().optional().describe('GitLab group name'),
|
|
80
|
-
redirectUri: z.string().optional().describe('OAuth redirect URI'),
|
|
81
|
-
name: z.string().min(1).describe('Provider display name'),
|
|
82
|
-
gitlabId: gitlabIdSchema,
|
|
83
|
-
gitlabUrl: z.string().min(1).describe('GitLab URL'),
|
|
84
|
-
gitProviderId: z.string().min(1).describe('Git provider ID'),
|
|
85
|
-
gitlabInternalUrl: nullableString.describe('Internal GitLab URL'),
|
|
86
|
-
})
|
|
87
|
-
.strict(),
|
|
88
|
-
endpoint: '/gitlab.update',
|
|
89
|
-
});
|
|
90
|
-
export const gitlabTools = [
|
|
91
|
-
create,
|
|
92
|
-
one,
|
|
93
|
-
getGitlabRepositories,
|
|
94
|
-
getGitlabBranches,
|
|
95
|
-
gitlabProviders,
|
|
96
|
-
testConnection,
|
|
97
|
-
update,
|
|
98
|
-
];
|
package/dist/tools/index.d.ts
DELETED
package/dist/tools/index.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { adminTools } from './admin.js';
|
|
2
|
-
import { applicationTools } from './application.js';
|
|
3
|
-
import { backupTools } from './backup.js';
|
|
4
|
-
import { certificatesTools } from './certificates.js';
|
|
5
|
-
import { clusterTools } from './cluster.js';
|
|
6
|
-
import { composeTools } from './compose.js';
|
|
7
|
-
import { deploymentTools } from './deployment.js';
|
|
8
|
-
import { destinationTools } from './destination.js';
|
|
9
|
-
import { dockerTools } from './docker.js';
|
|
10
|
-
import { domainTools } from './domain.js';
|
|
11
|
-
import { environmentTools } from './environment.js';
|
|
12
|
-
import { gitProviderTools } from './git-provider.js';
|
|
13
|
-
import { githubTools } from './github.js';
|
|
14
|
-
import { gitlabTools } from './gitlab.js';
|
|
15
|
-
import { mariadbTools } from './mariadb.js';
|
|
16
|
-
import { mongoTools } from './mongo.js';
|
|
17
|
-
import { mountsTools } from './mounts.js';
|
|
18
|
-
import { mysqlTools } from './mysql.js';
|
|
19
|
-
import { notificationTools } from './notification.js';
|
|
20
|
-
import { patchTools } from './patch.js';
|
|
21
|
-
import { portTools } from './port.js';
|
|
22
|
-
import { postgresTools } from './postgres.js';
|
|
23
|
-
import { previewDeploymentTools } from './preview-deployment.js';
|
|
24
|
-
import { projectTools } from './project.js';
|
|
25
|
-
import { redirectsTools } from './redirects.js';
|
|
26
|
-
import { redisTools } from './redis.js';
|
|
27
|
-
import { registryTools } from './registry.js';
|
|
28
|
-
import { rollbackTools } from './rollback.js';
|
|
29
|
-
import { scheduleTools } from './schedule.js';
|
|
30
|
-
import { securityTools } from './security.js';
|
|
31
|
-
import { serverTools } from './server.js';
|
|
32
|
-
import { settingsTools } from './settings.js';
|
|
33
|
-
import { sshKeyTools } from './ssh-key.js';
|
|
34
|
-
import { userTools } from './user.js';
|
|
35
|
-
import { volumeBackupsTools } from './volume-backups.js';
|
|
36
|
-
export const allTools = [
|
|
37
|
-
...projectTools,
|
|
38
|
-
...environmentTools,
|
|
39
|
-
...applicationTools,
|
|
40
|
-
...composeTools,
|
|
41
|
-
...domainTools,
|
|
42
|
-
...patchTools,
|
|
43
|
-
...postgresTools,
|
|
44
|
-
...previewDeploymentTools,
|
|
45
|
-
...mysqlTools,
|
|
46
|
-
...mariadbTools,
|
|
47
|
-
...mongoTools,
|
|
48
|
-
...redisTools,
|
|
49
|
-
...notificationTools,
|
|
50
|
-
...rollbackTools,
|
|
51
|
-
...scheduleTools,
|
|
52
|
-
...volumeBackupsTools,
|
|
53
|
-
...deploymentTools,
|
|
54
|
-
...dockerTools,
|
|
55
|
-
...certificatesTools,
|
|
56
|
-
...registryTools,
|
|
57
|
-
...destinationTools,
|
|
58
|
-
...backupTools,
|
|
59
|
-
...mountsTools,
|
|
60
|
-
...portTools,
|
|
61
|
-
...redirectsTools,
|
|
62
|
-
...securityTools,
|
|
63
|
-
...clusterTools,
|
|
64
|
-
...settingsTools,
|
|
65
|
-
...adminTools,
|
|
66
|
-
...userTools,
|
|
67
|
-
...serverTools,
|
|
68
|
-
...sshKeyTools,
|
|
69
|
-
...gitProviderTools,
|
|
70
|
-
...githubTools,
|
|
71
|
-
...gitlabTools,
|
|
72
|
-
];
|
package/dist/tools/mariadb.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const mariadbTools: import("./_factory.js").ToolDefinition[];
|
package/dist/tools/mariadb.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { createDatabaseTools } from './_database.js';
|
|
3
|
-
export const mariadbTools = createDatabaseTools({
|
|
4
|
-
type: 'mariadb',
|
|
5
|
-
idField: 'mariadbId',
|
|
6
|
-
displayName: 'MariaDB',
|
|
7
|
-
defaultImage: 'mariadb:11',
|
|
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).optional().describe('Root password for MariaDB'),
|
|
13
|
-
}),
|
|
14
|
-
});
|
package/dist/tools/mongo.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const mongoTools: import("./_factory.js").ToolDefinition[];
|