@masonator/coolify-mcp 0.2.16 → 0.2.17

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 (31) hide show
  1. package/package.json +5 -3
  2. package/dist/__tests__/coolify-client.test.d.ts +0 -1
  3. package/dist/__tests__/coolify-client.test.js +0 -208
  4. package/dist/__tests__/mcp-server.test.d.ts +0 -1
  5. package/dist/__tests__/mcp-server.test.js +0 -282
  6. package/dist/__tests__/resources/application-resources.test.d.ts +0 -1
  7. package/dist/__tests__/resources/application-resources.test.js +0 -33
  8. package/dist/__tests__/resources/database-resources.test.d.ts +0 -1
  9. package/dist/__tests__/resources/database-resources.test.js +0 -68
  10. package/dist/__tests__/resources/deployment-resources.test.d.ts +0 -1
  11. package/dist/__tests__/resources/deployment-resources.test.js +0 -46
  12. package/dist/__tests__/resources/service-resources.test.d.ts +0 -1
  13. package/dist/__tests__/resources/service-resources.test.js +0 -76
  14. package/dist/lib/coolify-client.d.ts +0 -44
  15. package/dist/lib/coolify-client.js +0 -161
  16. package/dist/lib/mcp-server.d.ts +0 -56
  17. package/dist/lib/mcp-server.js +0 -423
  18. package/dist/lib/resource.d.ts +0 -13
  19. package/dist/lib/resource.js +0 -25
  20. package/dist/resources/application-resources.d.ts +0 -14
  21. package/dist/resources/application-resources.js +0 -55
  22. package/dist/resources/database-resources.d.ts +0 -17
  23. package/dist/resources/database-resources.js +0 -51
  24. package/dist/resources/deployment-resources.d.ts +0 -12
  25. package/dist/resources/deployment-resources.js +0 -44
  26. package/dist/resources/index.d.ts +0 -4
  27. package/dist/resources/index.js +0 -4
  28. package/dist/resources/service-resources.d.ts +0 -15
  29. package/dist/resources/service-resources.js +0 -51
  30. package/dist/types/coolify.d.ts +0 -228
  31. package/dist/types/coolify.js +0 -1
@@ -1,15 +0,0 @@
1
- import { CoolifyClient } from '../lib/coolify-client.js';
2
- import { Service, CreateServiceRequest, DeleteServiceOptions } from '../types/coolify.js';
3
- export declare class ServiceResources {
4
- private client;
5
- constructor(client: CoolifyClient);
6
- listServices(): Promise<Service[]>;
7
- getService(id: string): Promise<Service>;
8
- createService(data: CreateServiceRequest): Promise<{
9
- uuid: string;
10
- domains: string[];
11
- }>;
12
- deleteService(id: string, options?: DeleteServiceOptions): Promise<{
13
- message: string;
14
- }>;
15
- }
@@ -1,51 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Resource } from '../lib/resource.js';
11
- export class ServiceResources {
12
- constructor(client) {
13
- this.client = client;
14
- }
15
- async listServices() {
16
- return this.client.listServices();
17
- }
18
- async getService(id) {
19
- return this.client.getService(id);
20
- }
21
- async createService(data) {
22
- return this.client.createService(data);
23
- }
24
- async deleteService(id, options) {
25
- return this.client.deleteService(id, options);
26
- }
27
- }
28
- __decorate([
29
- Resource('coolify/services/list'),
30
- __metadata("design:type", Function),
31
- __metadata("design:paramtypes", []),
32
- __metadata("design:returntype", Promise)
33
- ], ServiceResources.prototype, "listServices", null);
34
- __decorate([
35
- Resource('coolify/services/{id}'),
36
- __metadata("design:type", Function),
37
- __metadata("design:paramtypes", [String]),
38
- __metadata("design:returntype", Promise)
39
- ], ServiceResources.prototype, "getService", null);
40
- __decorate([
41
- Resource('coolify/services/create'),
42
- __metadata("design:type", Function),
43
- __metadata("design:paramtypes", [Object]),
44
- __metadata("design:returntype", Promise)
45
- ], ServiceResources.prototype, "createService", null);
46
- __decorate([
47
- Resource('coolify/services/{id}/delete'),
48
- __metadata("design:type", Function),
49
- __metadata("design:paramtypes", [String, Object]),
50
- __metadata("design:returntype", Promise)
51
- ], ServiceResources.prototype, "deleteService", null);
@@ -1,228 +0,0 @@
1
- export interface CoolifyConfig {
2
- baseUrl: string;
3
- accessToken: string;
4
- }
5
- export interface ServerInfo {
6
- uuid: string;
7
- name: string;
8
- status: 'running' | 'stopped' | 'error';
9
- version: string;
10
- resources: {
11
- cpu: number;
12
- memory: number;
13
- disk: number;
14
- };
15
- }
16
- export interface ResourceStatus {
17
- id: number;
18
- uuid: string;
19
- name: string;
20
- type: string;
21
- created_at: string;
22
- updated_at: string;
23
- status: string;
24
- }
25
- export type ServerResources = ResourceStatus[];
26
- export interface ErrorResponse {
27
- error: string;
28
- status: number;
29
- message: string;
30
- }
31
- export interface ServerDomain {
32
- ip: string;
33
- domains: string[];
34
- }
35
- export interface ValidationResponse {
36
- message: string;
37
- }
38
- export interface Environment {
39
- id: number;
40
- uuid: string;
41
- name: string;
42
- project_uuid: string;
43
- variables?: Record<string, string>;
44
- created_at: string;
45
- updated_at: string;
46
- }
47
- export interface Project {
48
- id: number;
49
- uuid: string;
50
- name: string;
51
- description?: string;
52
- environments?: Environment[];
53
- }
54
- export interface CreateProjectRequest {
55
- name: string;
56
- description?: string;
57
- }
58
- export interface UpdateProjectRequest {
59
- name?: string;
60
- description?: string;
61
- }
62
- export interface LogEntry {
63
- timestamp: string;
64
- level: string;
65
- message: string;
66
- }
67
- export interface Deployment {
68
- id: number;
69
- uuid: string;
70
- application_uuid: string;
71
- status: string;
72
- created_at: string;
73
- updated_at: string;
74
- }
75
- export interface DatabaseBase {
76
- id: number;
77
- uuid: string;
78
- name: string;
79
- description?: string;
80
- type: 'postgresql' | 'mysql' | 'mariadb' | 'mongodb' | 'redis' | 'keydb' | 'clickhouse' | 'dragonfly';
81
- status: 'running' | 'stopped' | 'error';
82
- created_at: string;
83
- updated_at: string;
84
- is_public: boolean;
85
- public_port?: number;
86
- image: string;
87
- limits?: {
88
- memory?: string;
89
- memory_swap?: string;
90
- memory_swappiness?: number;
91
- memory_reservation?: string;
92
- cpus?: string;
93
- cpuset?: string;
94
- cpu_shares?: number;
95
- };
96
- }
97
- export interface PostgresDatabase extends DatabaseBase {
98
- type: 'postgresql';
99
- postgres_user: string;
100
- postgres_password: string;
101
- postgres_db: string;
102
- postgres_initdb_args?: string;
103
- postgres_host_auth_method?: string;
104
- postgres_conf?: string;
105
- }
106
- export interface MySQLDatabase extends DatabaseBase {
107
- type: 'mysql';
108
- mysql_root_password: string;
109
- mysql_user?: string;
110
- mysql_password?: string;
111
- mysql_database?: string;
112
- }
113
- export interface MariaDBDatabase extends DatabaseBase {
114
- type: 'mariadb';
115
- mariadb_root_password: string;
116
- mariadb_user?: string;
117
- mariadb_password?: string;
118
- mariadb_database?: string;
119
- mariadb_conf?: string;
120
- }
121
- export interface MongoDBDatabase extends DatabaseBase {
122
- type: 'mongodb';
123
- mongo_initdb_root_username: string;
124
- mongo_initdb_root_password: string;
125
- mongo_initdb_database?: string;
126
- mongo_conf?: string;
127
- }
128
- export interface RedisDatabase extends DatabaseBase {
129
- type: 'redis';
130
- redis_password?: string;
131
- redis_conf?: string;
132
- }
133
- export interface KeyDBDatabase extends DatabaseBase {
134
- type: 'keydb';
135
- keydb_password?: string;
136
- keydb_conf?: string;
137
- }
138
- export interface ClickhouseDatabase extends DatabaseBase {
139
- type: 'clickhouse';
140
- clickhouse_admin_user: string;
141
- clickhouse_admin_password: string;
142
- }
143
- export interface DragonflyDatabase extends DatabaseBase {
144
- type: 'dragonfly';
145
- dragonfly_password: string;
146
- }
147
- export type Database = PostgresDatabase | MySQLDatabase | MariaDBDatabase | MongoDBDatabase | RedisDatabase | KeyDBDatabase | ClickhouseDatabase | DragonflyDatabase;
148
- export interface DatabaseUpdateRequest {
149
- name?: string;
150
- description?: string;
151
- image?: string;
152
- is_public?: boolean;
153
- public_port?: number;
154
- limits_memory?: string;
155
- limits_memory_swap?: string;
156
- limits_memory_swappiness?: number;
157
- limits_memory_reservation?: string;
158
- limits_cpus?: string;
159
- limits_cpuset?: string;
160
- limits_cpu_shares?: number;
161
- postgres_user?: string;
162
- postgres_password?: string;
163
- postgres_db?: string;
164
- postgres_initdb_args?: string;
165
- postgres_host_auth_method?: string;
166
- postgres_conf?: string;
167
- clickhouse_admin_user?: string;
168
- clickhouse_admin_password?: string;
169
- dragonfly_password?: string;
170
- redis_password?: string;
171
- redis_conf?: string;
172
- keydb_password?: string;
173
- keydb_conf?: string;
174
- mariadb_conf?: string;
175
- mariadb_root_password?: string;
176
- mariadb_user?: string;
177
- mariadb_password?: string;
178
- mariadb_database?: string;
179
- mongo_conf?: string;
180
- mongo_initdb_root_username?: string;
181
- mongo_initdb_root_password?: string;
182
- mongo_initdb_database?: string;
183
- mysql_root_password?: string;
184
- mysql_password?: string;
185
- mysql_user?: string;
186
- mysql_database?: string;
187
- }
188
- export type ServiceType = 'activepieces' | 'appsmith' | 'appwrite' | 'authentik' | 'babybuddy' | 'budge' | 'changedetection' | 'chatwoot' | 'classicpress-with-mariadb' | 'classicpress-with-mysql' | 'classicpress-without-database' | 'cloudflared' | 'code-server' | 'dashboard' | 'directus' | 'directus-with-postgresql' | 'docker-registry' | 'docuseal' | 'docuseal-with-postgres' | 'dokuwiki' | 'duplicati' | 'emby' | 'embystat' | 'fider' | 'filebrowser' | 'firefly' | 'formbricks' | 'ghost' | 'gitea' | 'gitea-with-mariadb' | 'gitea-with-mysql' | 'gitea-with-postgresql' | 'glance' | 'glances' | 'glitchtip' | 'grafana' | 'grafana-with-postgresql' | 'grocy' | 'heimdall' | 'homepage' | 'jellyfin' | 'kuzzle' | 'listmonk' | 'logto' | 'mediawiki' | 'meilisearch' | 'metabase' | 'metube' | 'minio' | 'moodle' | 'n8n' | 'n8n-with-postgresql' | 'next-image-transformation' | 'nextcloud' | 'nocodb' | 'odoo' | 'openblocks' | 'pairdrop' | 'penpot' | 'phpmyadmin' | 'pocketbase' | 'posthog' | 'reactive-resume' | 'rocketchat' | 'shlink' | 'slash' | 'snapdrop' | 'statusnook' | 'stirling-pdf' | 'supabase' | 'syncthing' | 'tolgee' | 'trigger' | 'trigger-with-external-database' | 'twenty' | 'umami' | 'unleash-with-postgresql' | 'unleash-without-database' | 'uptime-kuma' | 'vaultwarden' | 'vikunja' | 'weblate' | 'whoogle' | 'wordpress-with-mariadb' | 'wordpress-with-mysql' | 'wordpress-without-database';
189
- export interface Service {
190
- id: number;
191
- uuid: string;
192
- name: string;
193
- description?: string;
194
- type: ServiceType;
195
- status: 'running' | 'stopped' | 'error';
196
- created_at: string;
197
- updated_at: string;
198
- project_uuid: string;
199
- environment_name: string;
200
- environment_uuid: string;
201
- server_uuid: string;
202
- destination_uuid?: string;
203
- domains?: string[];
204
- }
205
- export interface CreateServiceRequest {
206
- type: ServiceType;
207
- name?: string;
208
- description?: string;
209
- project_uuid: string;
210
- environment_name?: string;
211
- environment_uuid?: string;
212
- server_uuid: string;
213
- destination_uuid?: string;
214
- instant_deploy?: boolean;
215
- }
216
- export interface DeleteServiceOptions {
217
- deleteConfigurations?: boolean;
218
- deleteVolumes?: boolean;
219
- dockerCleanup?: boolean;
220
- deleteConnectedNetworks?: boolean;
221
- }
222
- export interface Application {
223
- uuid: string;
224
- name: string;
225
- }
226
- export interface CreateApplicationRequest {
227
- name: string;
228
- }
@@ -1 +0,0 @@
1
- export {};