Skip to content

Commit eb32971

Browse files
committed
docs: update environment management documentation and tests
1 parent 3b9b756 commit eb32971

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docs/features/004-environment-management.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Environment management within projects - allows retrieving environment informati
77
## API Endpoints Used
88

99
- GET `/projects/{uuid}/{environment_name_or_uuid}`
10+
1011
- Get environment details by project UUID and environment name/UUID
1112
- Response: Environment object
1213
- Auth: Bearer token required
@@ -21,7 +22,9 @@ Note: Environment creation and management is handled through the Projects API. E
2122
## Implementation Status
2223

2324
### Completed
25+
2426
- [x] Environment Detail Resource
27+
2528
- [x] GET project environment endpoint implemented
2629
- [x] Client method: `getProjectEnvironment`
2730
- [x] MCP tool: `get_project_environment`
@@ -32,6 +35,7 @@ Note: Environment creation and management is handled through the Projects API. E
3235
- [x] MCP tool: `deploy_application`
3336

3437
### Environment Schema
38+
3539
```typescript
3640
interface Environment {
3741
id: number;

src/__tests__/mcp-server.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ describe('CoolifyMcpServer', () => {
158158
updated_at: '2024-03-06T12:00:00Z',
159159
};
160160

161-
const spy = jest.spyOn(server['client'], 'getProjectEnvironment').mockResolvedValue(mockEnvironment);
161+
const spy = jest
162+
.spyOn(server['client'], 'getProjectEnvironment')
163+
.mockResolvedValue(mockEnvironment);
162164

163165
await server.get_project_environment('test-project-uuid', 'test-env-uuid');
164166
expect(spy).toHaveBeenCalledWith('test-project-uuid', 'test-env-uuid');

0 commit comments

Comments
 (0)