@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.
Files changed (126) hide show
  1. package/README.md +61 -168
  2. package/dist/api/client.d.ts +2 -1
  3. package/dist/api/client.js +3 -11
  4. package/dist/cli/index.js +1 -0
  5. package/dist/codemode/context/execute-context.d.ts +590 -0
  6. package/dist/codemode/context/execute-context.js +64 -0
  7. package/dist/codemode/context/search-context.d.ts +13851 -0
  8. package/dist/codemode/context/search-context.js +42 -0
  9. package/dist/codemode/gateway/api-gateway.d.ts +12 -0
  10. package/dist/codemode/gateway/api-gateway.js +160 -0
  11. package/dist/codemode/gateway/error-format.d.ts +13 -0
  12. package/dist/codemode/gateway/error-format.js +9 -0
  13. package/dist/codemode/gateway/request-normalizer.d.ts +3 -0
  14. package/dist/codemode/gateway/request-normalizer.js +21 -0
  15. package/dist/codemode/gateway/trace.d.ts +13 -0
  16. package/dist/codemode/gateway/trace.js +11 -0
  17. package/dist/codemode/sandbox/host.d.ts +11 -0
  18. package/dist/codemode/sandbox/host.js +28 -0
  19. package/dist/codemode/sandbox/limits.d.ts +2 -0
  20. package/dist/codemode/sandbox/limits.js +20 -0
  21. package/dist/codemode/sandbox/runner.d.ts +8 -0
  22. package/dist/codemode/sandbox/runner.js +113 -0
  23. package/dist/codemode/sandbox/runtime.d.ts +2 -0
  24. package/dist/codemode/sandbox/runtime.js +3 -0
  25. package/dist/codemode/sandbox/serialize.d.ts +1 -0
  26. package/dist/codemode/sandbox/serialize.js +45 -0
  27. package/dist/codemode/sandbox/subprocess-runner.d.ts +10 -0
  28. package/dist/codemode/sandbox/subprocess-runner.js +91 -0
  29. package/dist/codemode/sandbox/types.d.ts +12 -0
  30. package/dist/codemode/sandbox/types.js +1 -0
  31. package/dist/codemode/sandbox/worker-entry.d.ts +1 -0
  32. package/dist/codemode/sandbox/worker-entry.js +70 -0
  33. package/dist/codemode/server-codemode.d.ts +2 -0
  34. package/dist/codemode/server-codemode.js +17 -0
  35. package/dist/codemode/tools/execute.d.ts +583 -0
  36. package/dist/codemode/tools/execute.js +52 -0
  37. package/dist/codemode/tools/index.d.ts +2 -0
  38. package/dist/codemode/tools/index.js +3 -0
  39. package/dist/codemode/tools/search.d.ts +2 -0
  40. package/dist/codemode/tools/search.js +62 -0
  41. package/dist/generated/dokploy-catalog.d.ts +27 -0
  42. package/dist/generated/dokploy-catalog.js +16 -0
  43. package/dist/generated/dokploy-schemas.d.ts +17533 -0
  44. package/dist/generated/dokploy-schemas.js +20639 -0
  45. package/dist/generated/dokploy-sdk.d.ts +558 -0
  46. package/dist/generated/dokploy-sdk.js +561 -0
  47. package/dist/generated/openapi-index.json +10591 -0
  48. package/dist/{tools/_factory.js → mcp/tool-factory.js} +7 -5
  49. package/dist/server.d.ts +1 -1
  50. package/dist/server.js +2 -15
  51. package/package.json +22 -11
  52. package/dist/tools/_database.d.ts +0 -12
  53. package/dist/tools/_database.js +0 -115
  54. package/dist/tools/admin.d.ts +0 -2
  55. package/dist/tools/admin.js +0 -61
  56. package/dist/tools/application.d.ts +0 -2
  57. package/dist/tools/application.js +0 -601
  58. package/dist/tools/backup.d.ts +0 -2
  59. package/dist/tools/backup.js +0 -133
  60. package/dist/tools/certificates.d.ts +0 -2
  61. package/dist/tools/certificates.js +0 -54
  62. package/dist/tools/cluster.d.ts +0 -2
  63. package/dist/tools/cluster.js +0 -38
  64. package/dist/tools/compose.d.ts +0 -2
  65. package/dist/tools/compose.js +0 -451
  66. package/dist/tools/deployment.d.ts +0 -2
  67. package/dist/tools/deployment.js +0 -107
  68. package/dist/tools/destination.d.ts +0 -2
  69. package/dist/tools/destination.js +0 -78
  70. package/dist/tools/docker.d.ts +0 -2
  71. package/dist/tools/docker.js +0 -110
  72. package/dist/tools/domain.d.ts +0 -2
  73. package/dist/tools/domain.js +0 -147
  74. package/dist/tools/environment.d.ts +0 -2
  75. package/dist/tools/environment.js +0 -104
  76. package/dist/tools/git-provider.d.ts +0 -2
  77. package/dist/tools/git-provider.js +0 -22
  78. package/dist/tools/github.d.ts +0 -2
  79. package/dist/tools/github.js +0 -66
  80. package/dist/tools/gitlab.d.ts +0 -2
  81. package/dist/tools/gitlab.js +0 -98
  82. package/dist/tools/index.d.ts +0 -2
  83. package/dist/tools/index.js +0 -72
  84. package/dist/tools/mariadb.d.ts +0 -1
  85. package/dist/tools/mariadb.js +0 -14
  86. package/dist/tools/mongo.d.ts +0 -1
  87. package/dist/tools/mongo.js +0 -13
  88. package/dist/tools/mounts.d.ts +0 -2
  89. package/dist/tools/mounts.js +0 -109
  90. package/dist/tools/mysql.d.ts +0 -1
  91. package/dist/tools/mysql.js +0 -14
  92. package/dist/tools/notification.d.ts +0 -2
  93. package/dist/tools/notification.js +0 -559
  94. package/dist/tools/patch.d.ts +0 -2
  95. package/dist/tools/patch.js +0 -179
  96. package/dist/tools/port.d.ts +0 -2
  97. package/dist/tools/port.js +0 -54
  98. package/dist/tools/postgres.d.ts +0 -1
  99. package/dist/tools/postgres.js +0 -13
  100. package/dist/tools/preview-deployment.d.ts +0 -2
  101. package/dist/tools/preview-deployment.js +0 -50
  102. package/dist/tools/project.d.ts +0 -2
  103. package/dist/tools/project.js +0 -125
  104. package/dist/tools/redirects.d.ts +0 -2
  105. package/dist/tools/redirects.js +0 -53
  106. package/dist/tools/redis.d.ts +0 -1
  107. package/dist/tools/redis.js +0 -11
  108. package/dist/tools/registry.d.ts +0 -2
  109. package/dist/tools/registry.js +0 -81
  110. package/dist/tools/rollback.d.ts +0 -2
  111. package/dist/tools/rollback.js +0 -28
  112. package/dist/tools/schedule.d.ts +0 -2
  113. package/dist/tools/schedule.js +0 -92
  114. package/dist/tools/security.d.ts +0 -2
  115. package/dist/tools/security.js +0 -48
  116. package/dist/tools/server.d.ts +0 -2
  117. package/dist/tools/server.js +0 -192
  118. package/dist/tools/settings.d.ts +0 -2
  119. package/dist/tools/settings.js +0 -509
  120. package/dist/tools/ssh-key.d.ts +0 -2
  121. package/dist/tools/ssh-key.js +0 -74
  122. package/dist/tools/user.d.ts +0 -2
  123. package/dist/tools/user.js +0 -85
  124. package/dist/tools/volume-backups.d.ts +0 -2
  125. package/dist/tools/volume-backups.js +0 -96
  126. /package/dist/{tools/_factory.d.ts → mcp/tool-factory.d.ts} +0 -0
@@ -1,13 +0,0 @@
1
- import { z } from 'zod';
2
- import { createDatabaseTools } from './_database.js';
3
- export const mongoTools = createDatabaseTools({
4
- type: 'mongo',
5
- idField: 'mongoId',
6
- displayName: 'MongoDB',
7
- defaultImage: 'mongo:15',
8
- createFields: z.object({
9
- databaseUser: z.string().min(1).describe('Database user'),
10
- databasePassword: z.string().min(1).describe('Database password'),
11
- replicaSets: z.boolean().nullable().optional().describe('Whether replica sets are enabled'),
12
- }),
13
- });
@@ -1,2 +0,0 @@
1
- import { type ToolDefinition } from './_factory.js';
2
- export declare const mountsTools: ToolDefinition[];
@@ -1,109 +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 allNamedByApplicationId = getTool({
17
- name: 'dokploy_mount_all_named_by_application_id',
18
- title: 'List Named Mounts by Application',
19
- description: 'List named mounts attached to a Dokploy application. Requires the application ID.',
20
- schema: z
21
- .object({
22
- applicationId: z.string().min(1).describe('Application ID'),
23
- })
24
- .strict(),
25
- endpoint: '/mounts.allNamedByApplicationId',
26
- });
27
- const create = postTool({
28
- name: 'dokploy_mount_create',
29
- title: 'Create Mount',
30
- 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.',
31
- schema: z
32
- .object({
33
- type: mountTypeEnum,
34
- mountPath: z
35
- .string()
36
- .min(1)
37
- .describe('Path inside the container where the mount is attached'),
38
- serviceId: z.string().min(1).describe('ID of the service to attach the mount to'),
39
- hostPath: z.string().nullable().optional().describe('Host path for bind mounts'),
40
- volumeName: z.string().nullable().optional().describe('Volume name for volume mounts'),
41
- content: z.string().nullable().optional().describe('File content for file mounts'),
42
- filePath: z.string().nullable().optional().describe('File path for file mounts'),
43
- serviceType: z
44
- .enum(['application', 'postgres', 'mysql', 'mariadb', 'mongo', 'redis', 'compose'])
45
- .optional()
46
- .describe('Type of service the mount belongs to'),
47
- })
48
- .strict(),
49
- endpoint: '/mounts.create',
50
- });
51
- const update = postTool({
52
- name: 'dokploy_mount_update',
53
- title: 'Update Mount',
54
- 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.',
55
- schema: z
56
- .object({
57
- mountId,
58
- type: mountTypeEnum.optional().describe('New mount type'),
59
- mountPath: z.string().min(1).optional().describe('New path inside the container'),
60
- hostPath: z.string().nullable().optional().describe('New host path for bind mounts'),
61
- volumeName: z.string().nullable().optional().describe('New volume name for volume mounts'),
62
- filePath: z.string().nullable().optional().describe('New file path for file mounts'),
63
- content: z.string().nullable().optional().describe('New file content for file mounts'),
64
- serviceType: z
65
- .enum(['application', 'postgres', 'mysql', 'mariadb', 'mongo', 'redis', 'compose'])
66
- .optional()
67
- .describe('Type of service the mount belongs to'),
68
- applicationId: z.string().nullable().optional().describe('Application ID'),
69
- postgresId: z.string().nullable().optional().describe('Postgres ID'),
70
- mariadbId: z.string().nullable().optional().describe('MariaDB ID'),
71
- mongoId: z.string().nullable().optional().describe('MongoDB ID'),
72
- mysqlId: z.string().nullable().optional().describe('MySQL ID'),
73
- redisId: z.string().nullable().optional().describe('Redis ID'),
74
- composeId: z.string().nullable().optional().describe('Compose ID'),
75
- })
76
- .strict(),
77
- endpoint: '/mounts.update',
78
- });
79
- const listByServiceId = getTool({
80
- name: 'dokploy_mount_list_by_service_id',
81
- title: 'List Mounts by Service',
82
- description: 'List mounts for a Dokploy service. Requires the service ID and the service type.',
83
- schema: z
84
- .object({
85
- serviceId: z.string().min(1).describe('Service ID'),
86
- serviceType: z
87
- .enum(['application', 'postgres', 'mysql', 'mariadb', 'mongo', 'redis', 'compose'])
88
- .describe('Service type'),
89
- })
90
- .strict(),
91
- endpoint: '/mounts.listByServiceId',
92
- });
93
- const remove = postTool({
94
- name: 'dokploy_mount_remove',
95
- title: 'Remove Mount',
96
- 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.',
97
- schema: z.object({ mountId }).strict(),
98
- endpoint: '/mounts.remove',
99
- annotations: { destructiveHint: true },
100
- });
101
- // ── export ───────────────────────────────────────────────────────────
102
- export const mountsTools = [
103
- one,
104
- allNamedByApplicationId,
105
- create,
106
- update,
107
- listByServiceId,
108
- remove,
109
- ];
@@ -1 +0,0 @@
1
- export declare const mysqlTools: import("./_factory.js").ToolDefinition[];
@@ -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).optional().describe('Root password for MySQL'),
13
- }),
14
- });
@@ -1,2 +0,0 @@
1
- import { type ToolDefinition } from './_factory.js';
2
- export declare const notificationTools: ToolDefinition[];