@mks2508/coolify-mks-cli-mcp 0.5.0 → 0.6.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 (88) hide show
  1. package/dist/cli/coolify-state.d.ts +51 -0
  2. package/dist/cli/coolify-state.d.ts.map +1 -0
  3. package/dist/cli/index.js +2862 -631
  4. package/dist/coolify/config.d.ts +1 -1
  5. package/dist/coolify/config.d.ts.map +1 -1
  6. package/dist/coolify/index.d.ts +626 -12
  7. package/dist/coolify/index.d.ts.map +1 -1
  8. package/dist/coolify/types.d.ts +87 -3
  9. package/dist/coolify/types.d.ts.map +1 -1
  10. package/dist/dist-C4hIkHif.js +66 -0
  11. package/dist/dist-C4hIkHif.js.map +1 -0
  12. package/dist/dist-DEPvJhbP.js +3 -0
  13. package/dist/index.cjs +8511 -28542
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.ts +32 -8
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +8470 -28506
  18. package/dist/index.js.map +1 -1
  19. package/dist/network.d.ts +75 -0
  20. package/dist/network.d.ts.map +1 -0
  21. package/dist/sdk.d.ts +356 -0
  22. package/dist/sdk.d.ts.map +1 -0
  23. package/dist/server/index.d.ts +9 -0
  24. package/dist/server/index.d.ts.map +1 -0
  25. package/dist/server/sse.js +3 -1
  26. package/dist/server/stdio.d.ts +0 -2
  27. package/dist/server/stdio.d.ts.map +1 -1
  28. package/dist/server/stdio.js +3307 -1618
  29. package/dist/tools/definitions.d.ts +1 -1
  30. package/dist/tools/definitions.d.ts.map +1 -1
  31. package/dist/tools/handlers.d.ts +6 -7
  32. package/dist/tools/handlers.d.ts.map +1 -1
  33. package/dist/tools/index.d.ts +8 -0
  34. package/dist/tools/index.d.ts.map +1 -0
  35. package/dist/trace.d.ts +71 -0
  36. package/dist/trace.d.ts.map +1 -0
  37. package/dist/utils/format.d.ts +1 -1
  38. package/dist/utils/format.d.ts.map +1 -1
  39. package/package.json +13 -7
  40. package/src/cli/actions.ts +162 -0
  41. package/src/cli/commands/active-deployments.ts +24 -0
  42. package/src/cli/commands/build-logs.ts +25 -22
  43. package/src/cli/commands/cancel-deploy.ts +35 -0
  44. package/src/cli/commands/config.ts +53 -47
  45. package/src/cli/commands/create.ts +74 -53
  46. package/src/cli/commands/databases.ts +63 -0
  47. package/src/cli/commands/db.ts +68 -0
  48. package/src/cli/commands/delete.ts +41 -29
  49. package/src/cli/commands/deploy.ts +42 -21
  50. package/src/cli/commands/deployments.ts +41 -31
  51. package/src/cli/commands/destinations.ts +19 -27
  52. package/src/cli/commands/diagnose.ts +139 -0
  53. package/src/cli/commands/env.ts +66 -41
  54. package/src/cli/commands/environments.ts +36 -32
  55. package/src/cli/commands/exec.ts +39 -0
  56. package/src/cli/commands/keys.ts +46 -0
  57. package/src/cli/commands/list.ts +29 -27
  58. package/src/cli/commands/logs.ts +33 -18
  59. package/src/cli/commands/network.ts +145 -0
  60. package/src/cli/commands/projects.ts +51 -39
  61. package/src/cli/commands/restart.ts +34 -18
  62. package/src/cli/commands/server-resources.ts +71 -0
  63. package/src/cli/commands/servers.ts +23 -23
  64. package/src/cli/commands/service-logs.ts +24 -16
  65. package/src/cli/commands/services.ts +63 -0
  66. package/src/cli/commands/show.ts +72 -41
  67. package/src/cli/commands/start.ts +34 -18
  68. package/src/cli/commands/stop.ts +34 -18
  69. package/src/cli/commands/svc.ts +68 -0
  70. package/src/cli/commands/teams.ts +60 -0
  71. package/src/cli/commands/update.ts +73 -49
  72. package/src/cli/commands/version.ts +37 -0
  73. package/src/cli/coolify-state.ts +88 -0
  74. package/src/cli/index.ts +383 -151
  75. package/src/coolify/config.ts +29 -27
  76. package/src/coolify/index.ts +1829 -123
  77. package/src/coolify/types.ts +217 -124
  78. package/src/index.ts +82 -868
  79. package/src/network.ts +298 -0
  80. package/src/sdk.ts +597 -0
  81. package/src/server/index.ts +13 -0
  82. package/src/server/sse.ts +33 -25
  83. package/src/server/stdio.ts +24 -27
  84. package/src/tools/definitions.ts +893 -264
  85. package/src/tools/handlers.ts +556 -748
  86. package/src/tools/index.ts +8 -0
  87. package/src/trace.ts +116 -0
  88. package/src/utils/format.ts +36 -33
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Network diagnostic module.
3
+ *
4
+ * Uses exec to inspect Docker networks, Traefik proxy, DNS, and container connectivity.
5
+ * All commands run inside the application container via the Coolify exec API.
6
+ *
7
+ * @module
8
+ */
9
+ import { type Result } from "@mks2508/no-throw";
10
+ import type { CoolifyService } from "./coolify/index.js";
11
+ import { type IOperationTrace } from "./trace.js";
12
+ /**
13
+ * Container network information.
14
+ */
15
+ export interface INetworkInfo {
16
+ /** /etc/hosts entries */
17
+ hosts: string[];
18
+ /** DNS resolution results */
19
+ dns: Array<{
20
+ hostname: string;
21
+ resolved: boolean;
22
+ ip?: string;
23
+ }>;
24
+ /** Container environment variables related to networking */
25
+ networkEnv: Record<string, string>;
26
+ /** Reachable services (connectivity test results) */
27
+ connectivity: Array<{
28
+ target: string;
29
+ reachable: boolean;
30
+ responseTime?: number;
31
+ }>;
32
+ /** Container's network interfaces */
33
+ interfaces: string[];
34
+ /** Operation trace */
35
+ trace: IOperationTrace;
36
+ }
37
+ /**
38
+ * Deploy failure analysis.
39
+ */
40
+ export interface IDeployFailureAnalysis {
41
+ /** Deployment UUID */
42
+ deploymentUuid: string;
43
+ /** Deployment status */
44
+ status: string;
45
+ /** Raw build logs */
46
+ rawLogs: string;
47
+ /** Extracted error lines */
48
+ errors: string[];
49
+ /** Likely error category */
50
+ category: "build_error" | "install_error" | "docker_error" | "network_error" | "timeout" | "unknown";
51
+ /** Human-readable summary */
52
+ summary: string;
53
+ /** Suggested fix */
54
+ suggestion: string;
55
+ /** Operation trace */
56
+ trace: IOperationTrace;
57
+ }
58
+ /**
59
+ * Inspects the network environment of an application container.
60
+ *
61
+ * @param svc - CoolifyService instance
62
+ * @param appUuid - Application UUID
63
+ * @param servicesToTest - Optional list of service names to test connectivity (e.g., ['db', 'redis'])
64
+ * @returns Network diagnostic information
65
+ */
66
+ export declare function inspectNetwork(svc: CoolifyService, appUuid: string, servicesToTest?: string[]): Promise<Result<INetworkInfo, Error>>;
67
+ /**
68
+ * Analyzes a failed deployment, extracting errors from build logs.
69
+ *
70
+ * @param svc - CoolifyService instance
71
+ * @param deploymentUuid - Deployment UUID
72
+ * @returns Failure analysis with categorized errors
73
+ */
74
+ export declare function analyzeDeployFailure(svc: CoolifyService, deploymentUuid: string): Promise<Result<IDeployFailureAnalysis, Error>>;
75
+ //# sourceMappingURL=network.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../src/network.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAS,KAAK,MAAM,EAAW,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,yBAAyB;IACzB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,6BAA6B;IAC7B,GAAG,EAAE,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjE,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,qDAAqD;IACrD,YAAY,EAAE,KAAK,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,OAAO,CAAC;QACnB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC,CAAC;IACH,qCAAqC;IACrC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,sBAAsB;IACtB,KAAK,EAAE,eAAe,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,sBAAsB;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,wBAAwB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,4BAA4B;IAC5B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,4BAA4B;IAC5B,QAAQ,EACJ,aAAa,GACb,eAAe,GACf,cAAc,GACd,eAAe,GACf,SAAS,GACT,SAAS,CAAC;IACd,6BAA6B;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB;IACtB,KAAK,EAAE,eAAe,CAAC;CACxB;AAgFD;;;;;;;GAOG;AACH,wBAAsB,cAAc,CAClC,GAAG,EAAE,cAAc,EACnB,OAAO,EAAE,MAAM,EACf,cAAc,GAAE,MAAM,EAAO,GAC5B,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC,CAiFtC;AAED;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,cAAc,EACnB,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,MAAM,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC,CAmDhD"}
package/dist/sdk.d.ts ADDED
@@ -0,0 +1,356 @@
1
+ /**
2
+ * Coolify SDK — Fluent, resource-based API for Coolify.
3
+ *
4
+ * Every parameter from CoolifyService is exposed. Nothing is lost.
5
+ *
6
+ * @module
7
+ */
8
+ import { CoolifyService } from "./coolify/index.js";
9
+ import type { ICoolifyAppOptions, ICoolifyApplication, ICoolifyDatabase, ICoolifyDatabaseBackup, ICoolifyDeleteResult, ICoolifyDeployment, ICoolifyDeployResult, ICoolifyDestination, ICoolifyEnvironment, ICoolifyLogs, ICoolifyLogsOptions, ICoolifyPrivateKey, ICoolifyProject, ICoolifyServer, ICoolifyServerDomain, ICoolifyServerResource, ICoolifyService as ICoolifyServiceType, ICoolifyTeam, ICoolifyUpdateOptions, ICoolifyVersion, IProgressCallback } from "./coolify/types.js";
10
+ import type { ICoolifyEnvVar } from "./coolify/index.js";
11
+ /** SDK configuration options. */
12
+ export interface ICoolifyOptions {
13
+ /** Coolify instance URL (e.g., https://coolify.example.com) */
14
+ url: string;
15
+ /** API token (generate in Coolify > Settings > API Tokens) */
16
+ token: string;
17
+ }
18
+ /** Cascade delete options. */
19
+ export interface IDeleteOptions {
20
+ deleteConfigurations?: boolean;
21
+ deleteVolumes?: boolean;
22
+ dockerCleanup?: boolean;
23
+ deleteConnectedNetworks?: boolean;
24
+ }
25
+ /** Pagination options. */
26
+ export interface IPaginationOptions {
27
+ page?: number;
28
+ perPage?: number;
29
+ }
30
+ declare class ApplicationsResource {
31
+ private svc;
32
+ constructor(svc: CoolifyService);
33
+ /** List all applications. Supports filtering and pagination. */
34
+ list(options?: {
35
+ teamId?: string;
36
+ projectId?: string;
37
+ } & IPaginationOptions): Promise<ICoolifyApplication[]>;
38
+ listSummaries(): Promise<{
39
+ uuid: string;
40
+ name: string;
41
+ status: string;
42
+ fqdn: string | null;
43
+ }[]>;
44
+ /** Resolve application by name, domain, or UUID. */
45
+ resolve(query: string): Promise<ICoolifyApplication>;
46
+ /** Create a new application. All ICoolifyAppOptions supported. */
47
+ create(options: ICoolifyAppOptions, onProgress?: IProgressCallback): Promise<import("./index.js").ICoolifyAppResult>;
48
+ /** Deploy an application. Supports force rebuild and progress tracking. */
49
+ deploy(uuid: string, options?: {
50
+ force?: boolean;
51
+ tag?: string;
52
+ }, onProgress?: IProgressCallback): Promise<ICoolifyDeployResult>;
53
+ /** Start application. Supports force and instant_deploy. */
54
+ start(uuid: string, options?: {
55
+ force?: boolean;
56
+ instantDeploy?: boolean;
57
+ }): Promise<ICoolifyApplication>;
58
+ stop(uuid: string): Promise<ICoolifyApplication>;
59
+ restart(uuid: string): Promise<ICoolifyApplication>;
60
+ /** Delete application with optional cascade options. */
61
+ delete(uuid: string, options?: IDeleteOptions): Promise<ICoolifyDeleteResult>;
62
+ /** Update application configuration. All ICoolifyUpdateOptions supported. */
63
+ update(uuid: string, options: ICoolifyUpdateOptions): Promise<ICoolifyApplication>;
64
+ /** Get application logs. Supports lines, serviceName, follow. */
65
+ logs(uuid: string, options?: ICoolifyLogsOptions): Promise<ICoolifyLogs>;
66
+ /** Get deployment history with optional pagination. */
67
+ deployments(uuid: string, skip?: number, take?: number): Promise<ICoolifyDeployment[]>;
68
+ exec(uuid: string, command: string): Promise<{
69
+ message?: string;
70
+ response?: string;
71
+ }>;
72
+ envVars(uuid: string): Promise<ICoolifyEnvVar[]>;
73
+ setEnv(uuid: string, key: string, value: string, isBuildTime?: boolean): Promise<void>;
74
+ bulkSetEnv(uuid: string, vars: Array<{
75
+ key: string;
76
+ value: string;
77
+ is_preview?: boolean;
78
+ }>): Promise<{
79
+ message: string;
80
+ }>;
81
+ deleteEnv(uuid: string, key: string): Promise<void>;
82
+ }
83
+ declare class DatabasesResource {
84
+ private svc;
85
+ constructor(svc: CoolifyService);
86
+ list(options?: IPaginationOptions): Promise<ICoolifyDatabase[]>;
87
+ listSummaries(): Promise<{
88
+ uuid: string;
89
+ name: string;
90
+ type: string;
91
+ status: string;
92
+ }[]>;
93
+ get(uuid: string): Promise<ICoolifyDatabase>;
94
+ create(type: string, data: Record<string, unknown>): Promise<{
95
+ uuid: string;
96
+ }>;
97
+ update(uuid: string, data: Record<string, unknown>): Promise<ICoolifyDatabase>;
98
+ start(uuid: string): Promise<{
99
+ message: string;
100
+ }>;
101
+ stop(uuid: string): Promise<{
102
+ message: string;
103
+ }>;
104
+ restart(uuid: string): Promise<{
105
+ message: string;
106
+ }>;
107
+ /** Delete with optional cascade options. */
108
+ delete(uuid: string, options?: IDeleteOptions): Promise<ICoolifyDeleteResult>;
109
+ backups(uuid: string): Promise<ICoolifyDatabaseBackup[]>;
110
+ getBackup(dbUuid: string, backupUuid: string): Promise<ICoolifyDatabaseBackup>;
111
+ createBackup(dbUuid: string, data: Record<string, unknown>): Promise<ICoolifyDatabaseBackup>;
112
+ deleteBackup(dbUuid: string, backupUuid: string): Promise<{
113
+ message: string;
114
+ }>;
115
+ }
116
+ declare class ServicesResource {
117
+ private svc;
118
+ constructor(svc: CoolifyService);
119
+ list(options?: IPaginationOptions): Promise<ICoolifyServiceType[]>;
120
+ listSummaries(): Promise<{
121
+ uuid: string;
122
+ name: string;
123
+ type: string;
124
+ status: string;
125
+ }[]>;
126
+ get(uuid: string): Promise<ICoolifyServiceType>;
127
+ create(data: Record<string, unknown>): Promise<{
128
+ uuid: string;
129
+ }>;
130
+ update(uuid: string, data: Record<string, unknown>): Promise<ICoolifyServiceType>;
131
+ start(uuid: string): Promise<{
132
+ message: string;
133
+ }>;
134
+ stop(uuid: string): Promise<{
135
+ message: string;
136
+ }>;
137
+ restart(uuid: string): Promise<{
138
+ message: string;
139
+ }>;
140
+ /** Delete with optional cascade options. */
141
+ delete(uuid: string, options?: IDeleteOptions): Promise<ICoolifyDeleteResult>;
142
+ envVars(uuid: string): Promise<ICoolifyEnvVar[]>;
143
+ setEnv(uuid: string, data: {
144
+ key: string;
145
+ value: string;
146
+ is_preview?: boolean;
147
+ }): Promise<{
148
+ uuid: string;
149
+ }>;
150
+ }
151
+ declare class ServersResource {
152
+ private svc;
153
+ constructor(svc: CoolifyService);
154
+ list(options?: IPaginationOptions): Promise<ICoolifyServer[]>;
155
+ listSummaries(): Promise<{
156
+ uuid: string;
157
+ name: string;
158
+ ip: string;
159
+ is_reachable: boolean;
160
+ }[]>;
161
+ resolve(query: string): Promise<ICoolifyServer>;
162
+ get(uuid: string): Promise<ICoolifyServer>;
163
+ create(data: Record<string, unknown>): Promise<{
164
+ uuid: string;
165
+ }>;
166
+ delete(uuid: string): Promise<{
167
+ message: string;
168
+ }>;
169
+ resources(uuid: string): Promise<ICoolifyServerResource[]>;
170
+ domains(uuid: string): Promise<ICoolifyServerDomain[]>;
171
+ destinations(uuid: string): Promise<ICoolifyDestination[]>;
172
+ validate(uuid: string): Promise<{
173
+ message: string;
174
+ }>;
175
+ }
176
+ declare class ProjectsResource {
177
+ private svc;
178
+ constructor(svc: CoolifyService);
179
+ list(options?: IPaginationOptions): Promise<ICoolifyProject[]>;
180
+ create(name: string, description?: string): Promise<ICoolifyProject>;
181
+ update(uuid: string, data: {
182
+ name?: string;
183
+ description?: string;
184
+ }): Promise<ICoolifyProject>;
185
+ delete(uuid: string): Promise<{
186
+ message: string;
187
+ }>;
188
+ environments(projectUuid: string): Promise<ICoolifyEnvironment[]>;
189
+ createEnvironment(projectUuid: string, data: {
190
+ name: string;
191
+ description?: string;
192
+ }): Promise<{
193
+ uuid: string;
194
+ }>;
195
+ }
196
+ declare class TeamsResource {
197
+ private svc;
198
+ constructor(svc: CoolifyService);
199
+ list(options?: IPaginationOptions): Promise<ICoolifyTeam[]>;
200
+ current(): Promise<ICoolifyTeam>;
201
+ get(id: number): Promise<ICoolifyTeam>;
202
+ members(teamId: number): Promise<{
203
+ id: number;
204
+ name: string;
205
+ email: string;
206
+ }[]>;
207
+ }
208
+ declare class KeysResource {
209
+ private svc;
210
+ constructor(svc: CoolifyService);
211
+ list(): Promise<ICoolifyPrivateKey[]>;
212
+ get(uuid: string): Promise<ICoolifyPrivateKey>;
213
+ create(data: {
214
+ name: string;
215
+ private_key: string;
216
+ description?: string;
217
+ }): Promise<{
218
+ uuid: string;
219
+ }>;
220
+ update(uuid: string, data: {
221
+ name?: string;
222
+ private_key?: string;
223
+ description?: string;
224
+ }): Promise<ICoolifyPrivateKey>;
225
+ delete(uuid: string): Promise<{
226
+ message: string;
227
+ }>;
228
+ }
229
+ declare class DeploymentsResource {
230
+ private svc;
231
+ constructor(svc: CoolifyService);
232
+ active(options?: IPaginationOptions): Promise<ICoolifyDeployment[]>;
233
+ get(uuid: string): Promise<ICoolifyDeployment>;
234
+ /** Get deployment with build logs. */
235
+ logs(uuid: string): Promise<{
236
+ status: string;
237
+ logs: string;
238
+ deployment_uuid: string;
239
+ }>;
240
+ cancel(uuid: string): Promise<{
241
+ message: string;
242
+ }>;
243
+ }
244
+ declare class DiagnoseResource {
245
+ private svc;
246
+ constructor(svc: CoolifyService);
247
+ app(query: string): Promise<{
248
+ application: ICoolifyApplication;
249
+ recentDeployments: ICoolifyDeployment[];
250
+ envVarCount: number;
251
+ recentLogs: string[];
252
+ issues: string[];
253
+ }>;
254
+ server(query: string): Promise<{
255
+ server: ICoolifyServer;
256
+ resources: ICoolifyServerResource[];
257
+ domains: ICoolifyServerDomain[];
258
+ issues: string[];
259
+ }>;
260
+ infrastructure(): Promise<{
261
+ totalServers: number;
262
+ totalApps: number;
263
+ totalDatabases: number;
264
+ totalServices: number;
265
+ issues: Array<{
266
+ type: string;
267
+ resource: string;
268
+ uuid: string;
269
+ message: string;
270
+ }>;
271
+ }>;
272
+ /** Analyze a failed deployment — extracts errors from build logs. */
273
+ deployFailure(deploymentUuid: string): Promise<import("./network.js").IDeployFailureAnalysis>;
274
+ }
275
+ /**
276
+ * Network diagnostics — inspect Docker networks, proxy, DNS, connectivity.
277
+ */
278
+ declare class NetworkResource {
279
+ private svc;
280
+ constructor(svc: CoolifyService);
281
+ /**
282
+ * Inspect container network environment.
283
+ *
284
+ * @param appUuid - Application UUID
285
+ * @param servicesToTest - Service names to test connectivity (e.g., ['db', 'redis'])
286
+ */
287
+ inspect(appUuid: string, servicesToTest?: string[]): Promise<import("./network.js").INetworkInfo>;
288
+ }
289
+ declare class BatchResource {
290
+ private svc;
291
+ constructor(svc: CoolifyService);
292
+ restartProject(projectUuid: string): Promise<{
293
+ total: number;
294
+ succeeded: number;
295
+ failed: string[];
296
+ }>;
297
+ redeployProject(projectUuid: string, force?: boolean): Promise<{
298
+ total: number;
299
+ succeeded: number;
300
+ failed: string[];
301
+ }>;
302
+ stopAll(): Promise<{
303
+ total: number;
304
+ succeeded: number;
305
+ failed: string[];
306
+ }>;
307
+ }
308
+ declare class GitHubAppsResource {
309
+ private svc;
310
+ constructor(svc: CoolifyService);
311
+ list(options?: IPaginationOptions): Promise<{
312
+ id: number;
313
+ uuid: string;
314
+ name: string;
315
+ is_public: boolean;
316
+ }[]>;
317
+ create(data: Record<string, unknown>): Promise<{
318
+ id: number;
319
+ uuid: string;
320
+ }>;
321
+ update(id: number, data: Record<string, unknown>): Promise<{
322
+ message: string;
323
+ }>;
324
+ delete(id: number): Promise<{
325
+ message: string;
326
+ }>;
327
+ }
328
+ /**
329
+ * Coolify SDK — The main entry point for interacting with a Coolify instance.
330
+ *
331
+ * Every parameter from the internal CoolifyService is exposed.
332
+ * Nothing is lost — progress callbacks, pagination, cascade deletes, all supported.
333
+ */
334
+ export declare class Coolify {
335
+ /** @internal */
336
+ readonly svc: CoolifyService;
337
+ private initialized;
338
+ readonly applications: ApplicationsResource;
339
+ readonly databases: DatabasesResource;
340
+ readonly services: ServicesResource;
341
+ readonly servers: ServersResource;
342
+ readonly projects: ProjectsResource;
343
+ readonly teams: TeamsResource;
344
+ readonly keys: KeysResource;
345
+ readonly deployments: DeploymentsResource;
346
+ readonly diagnose: DiagnoseResource;
347
+ readonly network: NetworkResource;
348
+ readonly batch: BatchResource;
349
+ readonly githubApps: GitHubAppsResource;
350
+ constructor(options?: ICoolifyOptions);
351
+ static fromEnv(): Coolify;
352
+ private ensureInit;
353
+ version(): Promise<ICoolifyVersion>;
354
+ }
355
+ export {};
356
+ //# sourceMappingURL=sdk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/sdk.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,sBA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 * MCP Server barrel export.
3
+ *
4
+ * Use `stdio.ts` for Claude Desktop integration.
5
+ * Use `sse.ts` for web integrations.
6
+ *
7
+ * @module
8
+ */
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG"}
@@ -19,7 +19,9 @@ var httpServer = createServer((req, res) => {
19
19
  }
20
20
  if (req.url === "/sse") {
21
21
  res.writeHead(200, { "Content-Type": "application/json" });
22
- res.end(JSON.stringify({ message: "SSE not yet implemented. Use stdio transport." }));
22
+ res.end(JSON.stringify({
23
+ message: "SSE not yet implemented. Use stdio transport."
24
+ }));
23
25
  return;
24
26
  }
25
27
  res.writeHead(404, { "Content-Type": "application/json" });
@@ -5,8 +5,6 @@
5
5
  * Entry point for running the MCP server with stdio transport.
6
6
  * This is the standard way to use the MCP server with Claude Desktop.
7
7
  *
8
- * Uses @modelcontextprotocol/sdk for proper MCP stdio server implementation.
9
- *
10
8
  * @module
11
9
  */
12
10
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../../src/server/stdio.ts"],"names":[],"mappings":";AACA;;;;;;;;;GASG"}
1
+ {"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../../src/server/stdio.ts"],"names":[],"mappings":";AACA;;;;;;;GAOG"}