Skip to content

Commit 7f96411

Browse files
authored
Merge pull request #9 from StuMason/feature/application-deployment
fix: remove unused imports and test code
2 parents 28d7d0f + ab1a956 commit 7f96411

11 files changed

+316
-278
lines changed

docs/features/005-application-deployment.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,6 @@ Core application deployment functionality - allows deploying and managing applic
5252
- Auth: Bearer token required
5353
- ✅ Implemented
5454

55-
- GET `/applications/{uuid}/logs` (Line ~1750)
56-
- Get application logs
57-
- Query params: since (optional)
58-
- Response: Array of Log entries
59-
- Auth: Bearer token required
60-
- ✅ Implemented
61-
6255
## Implementation Checklist
6356

6457
- [x] Application List Resource
@@ -76,14 +69,12 @@ Core application deployment functionality - allows deploying and managing applic
7669

7770
- [x] Application Monitoring
7871

79-
- [x] resources://coolify/applications/{id}/logs
8072
- [x] resources://coolify/applications/{id}/status
8173
- [x] Basic metrics
8274

8375
- [x] Testing
8476
- [x] Deployment workflow tests
8577
- [x] Configuration management tests
86-
- [x] Log retrieval tests
8778

8879
## Dependencies
8980

docs/features/006-database-management.md

Lines changed: 40 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -2,89 +2,70 @@
22

33
## Context
44

5-
Database service management - allows creating and managing database instances (MySQL, PostgreSQL, MongoDB, Redis).
5+
Implementation of database management features through MCP resources, allowing users to manage various types of databases (PostgreSQL, MySQL, MariaDB, MongoDB, Redis, etc.).
66

77
## API Endpoints Used
88

9-
- GET `/databases` (Line ~2000)
9+
- GET `/databases` (List)
1010

1111
- Lists all databases
12-
- Query params: environment_uuid (optional)
1312
- Response: Array of Database objects
1413
- Auth: Bearer token required
1514

16-
- POST `/databases` (Line ~2050)
17-
18-
- Create new database
19-
- Request body: {
20-
environment_uuid: string,
21-
type: "mysql" | "postgresql" | "mongodb" | "redis",
22-
version: string,
23-
name: string,
24-
settings?: DatabaseSettings
25-
}
26-
- Response: Database object
27-
- Auth: Bearer token required
28-
29-
- GET `/databases/{uuid}` (Line ~2100)
15+
- GET `/databases/{uuid}` (Get)
3016

3117
- Get database details
32-
- Response: Database object with connection info
18+
- Response: Database object
3319
- Auth: Bearer token required
3420

35-
- DELETE `/databases/{uuid}` (Line ~2150)
21+
- DELETE `/databases/{uuid}` (Delete)
3622

3723
- Delete database
38-
- Response: 204 No Content
39-
- Auth: Bearer token required
40-
41-
- GET `/databases/{uuid}/backups` (Line ~2175)
42-
43-
- List database backups
44-
- Response: Array of Backup objects
24+
- Optional query params:
25+
- delete_configurations (boolean, default: true)
26+
- delete_volumes (boolean, default: true)
27+
- docker_cleanup (boolean, default: true)
28+
- delete_connected_networks (boolean, default: true)
4529
- Auth: Bearer token required
4630

47-
- POST `/databases/{uuid}/backup` (Line ~2200)
48-
49-
- Create database backup
50-
- Response: Backup object
51-
- Auth: Bearer token required
52-
53-
- POST `/databases/{uuid}/restore` (Line ~2250)
54-
- Restore database from backup
55-
- Request body: { backup_id: string }
56-
- Response: 202 Accepted
57-
- Auth: Bearer token required
31+
- PATCH `/databases/{uuid}` (Update)
32+
- Update database configuration
33+
- Supports various database types:
34+
- PostgreSQL
35+
- MariaDB
36+
- MySQL
37+
- MongoDB
38+
- Redis
39+
- KeyDB
40+
- Clickhouse
41+
- Dragonfly
5842

5943
## Implementation Checklist
6044

61-
- [ ] Database List Resource
62-
63-
- [ ] resources://coolify/databases/list
64-
- [ ] Filter by environment/project
65-
- [ ] Status information
66-
67-
- [ ] Database Management Tools
45+
- [ ] Basic Database Management
6846

69-
- [ ] createDatabase tool (supports MySQL, PostgreSQL, MongoDB, Redis)
70-
- [ ] configureDatabase tool
71-
- [ ] deleteDatabase tool
72-
- [ ] backupDatabase tool
73-
- [ ] restoreDatabase tool
74-
- [ ] listBackups tool
47+
- [ ] List databases resource
48+
- [ ] Get database details
49+
- [ ] Delete database
50+
- [ ] Update database configuration
7551

76-
- [ ] Database Monitoring
52+
- [ ] Database Type Support
7753

78-
- [ ] resources://coolify/databases/{id}/status
79-
- [ ] resources://coolify/databases/{id}/backups
80-
- [ ] Connection information (masked credentials)
54+
- [ ] PostgreSQL configuration
55+
- [ ] MariaDB configuration
56+
- [ ] MySQL configuration
57+
- [ ] MongoDB configuration
58+
- [ ] Redis configuration
59+
- [ ] KeyDB configuration
60+
- [ ] Clickhouse configuration
61+
- [ ] Dragonfly configuration
8162

82-
- [ ] Testing
83-
- [ ] Database creation tests for each type
84-
- [ ] Backup/restore workflow tests
85-
- [ ] Security tests for credential handling
63+
- [ ] Resource Testing
64+
- [ ] Unit tests for database operations
65+
- [ ] Integration tests with mock data
66+
- [ ] Live test with real Coolify instance
8667

8768
## Dependencies
8869

8970
- ADR 001 (Core Server Setup)
90-
- ADR 004 (Environment Management)
71+
- ADR 002 (Server Information Resources)

docs/features/007-service-management.md

Lines changed: 71 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2,87 +2,106 @@
22

33
## Context
44

5-
Service deployment and management - allows deploying predefined services (WordPress, Ghost, Plausible, etc.).
5+
Implementation of one-click service management features through MCP resources, allowing users to deploy and manage various pre-configured services.
66

77
## API Endpoints Used
88

9-
- GET `/services` (Line ~2500)
9+
- GET `/services` (List)
1010

1111
- Lists all services
12-
- Query params: environment_uuid (optional)
1312
- Response: Array of Service objects
1413
- Auth: Bearer token required
1514

16-
- GET `/services/templates` (Line ~2550)
17-
18-
- Lists available service templates
19-
- Response: Array of ServiceTemplate objects
15+
- POST `/services` (Create)
16+
17+
- Create a one-click service
18+
- Required fields:
19+
- server_uuid
20+
- project_uuid
21+
- environment_name/uuid
22+
- type (one of many supported service types)
23+
- Optional fields:
24+
- name
25+
- description
26+
- destination_uuid
27+
- instant_deploy
2028
- Auth: Bearer token required
2129

22-
- POST `/services` (Line ~2600)
30+
- GET `/services/{uuid}` (Get)
2331

24-
- Create new service
25-
- Request body: {
26-
environment_uuid: string,
27-
template_id: string,
28-
name: string,
29-
configuration: ServiceConfiguration
30-
}
32+
- Get service details
3133
- Response: Service object
3234
- Auth: Bearer token required
3335

34-
- GET `/services/{uuid}` (Line ~2650)
35-
36-
- Get service details
37-
- Response: Service object with status
36+
- DELETE `/services/{uuid}` (Delete)
37+
- Delete service
38+
- Optional query params:
39+
- delete_configurations (boolean, default: true)
40+
- delete_volumes (boolean, default: true)
41+
- docker_cleanup (boolean, default: true)
42+
- delete_connected_networks (boolean, default: true)
3843
- Auth: Bearer token required
3944

40-
- DELETE `/services/{uuid}` (Line ~2700)
45+
## Supported Service Types
4146

42-
- Delete service
43-
- Response: 204 No Content
44-
- Auth: Bearer token required
47+
- Development Tools:
4548

46-
- POST `/services/{uuid}/restart` (Line ~2750)
49+
- code-server
50+
- gitea (with various DB options)
51+
- docker-registry
4752

48-
- Restart service
49-
- Response: 202 Accepted
50-
- Auth: Bearer token required
53+
- CMS & Documentation:
5154

52-
- GET `/services/{uuid}/logs` (Line ~2800)
53-
- Get service logs
54-
- Query params: since (optional)
55-
- Response: Array of Log entries
56-
- Auth: Bearer token required
55+
- wordpress (with various DB options)
56+
- ghost
57+
- mediawiki
58+
- dokuwiki
5759

58-
## Implementation Checklist
60+
- Monitoring & Analytics:
61+
62+
- grafana
63+
- umami
64+
- glances
65+
- uptime-kuma
66+
67+
- Collaboration & Communication:
5968

60-
- [ ] Service List Resource
69+
- rocketchat
70+
- chatwoot
71+
- nextcloud
6172

62-
- [ ] resources://coolify/services/list
63-
- [ ] resources://coolify/services/templates (available service types)
64-
- [ ] Filter by environment/project
73+
- Database Management:
74+
75+
- phpmyadmin
76+
- nocodb
77+
- directus
78+
79+
- And many more specialized services
80+
81+
## Implementation Checklist
6582

66-
- [ ] Service Management Tools
83+
- [ ] Basic Service Management
6784

68-
- [ ] createService tool
69-
- [ ] configureService tool
70-
- [ ] deleteService tool
71-
- [ ] restartService tool
72-
- [ ] updateService tool
85+
- [ ] List services resource
86+
- [ ] Get service details
87+
- [ ] Create service
88+
- [ ] Delete service
7389

74-
- [ ] Service Monitoring
90+
- [ ] Service Type Support
7591

76-
- [ ] resources://coolify/services/{id}/status
77-
- [ ] resources://coolify/services/{id}/logs
78-
- [ ] Configuration view (masked secrets)
92+
- [ ] Development tools deployment
93+
- [ ] CMS system deployment
94+
- [ ] Monitoring tools deployment
95+
- [ ] Collaboration tools deployment
96+
- [ ] Database tools deployment
7997

80-
- [ ] Testing
81-
- [ ] Service deployment tests
82-
- [ ] Configuration management tests
83-
- [ ] Service template validation
98+
- [ ] Resource Testing
99+
- [ ] Unit tests for service operations
100+
- [ ] Integration tests with mock data
101+
- [ ] Live test with real Coolify instance
84102

85103
## Dependencies
86104

87105
- ADR 001 (Core Server Setup)
88-
- ADR 004 (Environment Management)
106+
- ADR 002 (Server Information Resources)
107+
- ADR 003 (Project Management)

0 commit comments

Comments
 (0)