@debugg-ai/debugg-ai-mcp 1.0.55 → 1.0.57
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.
- package/README.md +69 -6
- package/dist/handlers/cancelExecutionHandler.js +41 -0
- package/dist/handlers/createCredentialHandler.js +60 -0
- package/dist/handlers/createEnvironmentHandler.js +54 -0
- package/dist/handlers/deleteCredentialHandler.js +51 -0
- package/dist/handlers/deleteEnvironmentHandler.js +51 -0
- package/dist/handlers/deleteProjectHandler.js +39 -0
- package/dist/handlers/getCredentialHandler.js +49 -0
- package/dist/handlers/getEnvironmentHandler.js +49 -0
- package/dist/handlers/getExecutionHandler.js +37 -0
- package/dist/handlers/getProjectHandler.js +37 -0
- package/dist/handlers/index.js +17 -0
- package/dist/handlers/listCredentialsHandler.js +71 -0
- package/dist/handlers/listEnvironmentsHandler.js +59 -0
- package/dist/handlers/listExecutionsHandler.js +31 -0
- package/dist/handlers/listProjectsHandler.js +30 -0
- package/dist/handlers/testPageChangesHandler.js +4 -1
- package/dist/handlers/updateCredentialHandler.js +70 -0
- package/dist/handlers/updateEnvironmentHandler.js +59 -0
- package/dist/handlers/updateProjectHandler.js +45 -0
- package/dist/index.js +2 -19
- package/dist/services/index.js +243 -0
- package/dist/services/projectContext.js +42 -30
- package/dist/services/workflows.js +26 -0
- package/dist/tools/cancelExecution.js +22 -0
- package/dist/tools/createCredential.js +52 -0
- package/dist/tools/createEnvironment.js +42 -0
- package/dist/tools/deleteCredential.js +24 -0
- package/dist/tools/deleteEnvironment.js +23 -0
- package/dist/tools/deleteProject.js +22 -0
- package/dist/tools/getCredential.js +24 -0
- package/dist/tools/getEnvironment.js +23 -0
- package/dist/tools/getExecution.js +22 -0
- package/dist/tools/getProject.js +22 -0
- package/dist/tools/index.js +61 -5
- package/dist/tools/listCredentials.js +40 -0
- package/dist/tools/listEnvironments.js +32 -0
- package/dist/tools/listExecutions.js +22 -0
- package/dist/tools/listProjects.js +28 -0
- package/dist/tools/updateCredential.js +28 -0
- package/dist/tools/updateEnvironment.js +26 -0
- package/dist/tools/updateProject.js +24 -0
- package/dist/types/index.js +82 -0
- package/package.json +3 -3
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UpdateEnvironmentInputSchema } from '../types/index.js';
|
|
2
|
+
import { updateEnvironmentHandler } from '../handlers/updateEnvironmentHandler.js';
|
|
3
|
+
const DESCRIPTION = `Patch an environment by UUID. Only specified fields (name, url, description) change — other fields are left intact. Returns {updated: true, environment: {...}} with the updated resource. Defaults to the project resolved from the current git repo; pass projectUuid to target a different project. Returns isError:true with NotFound when the uuid doesn't exist.`;
|
|
4
|
+
export function buildUpdateEnvironmentTool() {
|
|
5
|
+
return {
|
|
6
|
+
name: 'update_environment',
|
|
7
|
+
title: 'Update Environment',
|
|
8
|
+
description: DESCRIPTION,
|
|
9
|
+
inputSchema: {
|
|
10
|
+
type: 'object',
|
|
11
|
+
properties: {
|
|
12
|
+
uuid: { type: 'string', description: 'UUID of the environment to update. Required.' },
|
|
13
|
+
name: { type: 'string', description: 'Optional: new name.', minLength: 1 },
|
|
14
|
+
url: { type: 'string', description: 'Optional: new base URL.' },
|
|
15
|
+
description: { type: 'string', description: 'Optional: new description.' },
|
|
16
|
+
projectUuid: { type: 'string', description: 'Optional: UUID of the target project. Defaults to git-auto-detect.' },
|
|
17
|
+
},
|
|
18
|
+
required: ['uuid'],
|
|
19
|
+
additionalProperties: false,
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export function buildValidatedUpdateEnvironmentTool() {
|
|
24
|
+
const tool = buildUpdateEnvironmentTool();
|
|
25
|
+
return { ...tool, inputSchema: UpdateEnvironmentInputSchema, handler: updateEnvironmentHandler };
|
|
26
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UpdateProjectInputSchema } from '../types/index.js';
|
|
2
|
+
import { updateProjectHandler } from '../handlers/updateProjectHandler.js';
|
|
3
|
+
const DESCRIPTION = `Patch a project by UUID. Optional fields: name, description. Returns {updated:true, project:{...simplified resource}}. Returns isError:true + NotFound when uuid doesn't exist.`;
|
|
4
|
+
export function buildUpdateProjectTool() {
|
|
5
|
+
return {
|
|
6
|
+
name: 'update_project',
|
|
7
|
+
title: 'Update Project',
|
|
8
|
+
description: DESCRIPTION,
|
|
9
|
+
inputSchema: {
|
|
10
|
+
type: 'object',
|
|
11
|
+
properties: {
|
|
12
|
+
uuid: { type: 'string', description: 'UUID of the project. Required.' },
|
|
13
|
+
name: { type: 'string', description: 'Optional: new name.', minLength: 1 },
|
|
14
|
+
description: { type: 'string', description: 'Optional: new description.' },
|
|
15
|
+
},
|
|
16
|
+
required: ['uuid'],
|
|
17
|
+
additionalProperties: false,
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export function buildValidatedUpdateProjectTool() {
|
|
22
|
+
const tool = buildUpdateProjectTool();
|
|
23
|
+
return { ...tool, inputSchema: UpdateProjectInputSchema, handler: updateProjectHandler };
|
|
24
|
+
}
|
package/dist/types/index.js
CHANGED
|
@@ -17,6 +17,88 @@ export const TestPageChangesInputSchema = z.object({
|
|
|
17
17
|
password: z.string().optional(),
|
|
18
18
|
repoName: z.string().optional(),
|
|
19
19
|
});
|
|
20
|
+
export const ListEnvironmentsInputSchema = z.object({
|
|
21
|
+
projectUuid: z.string().uuid().optional(),
|
|
22
|
+
q: z.string().min(1).optional(),
|
|
23
|
+
}).strict();
|
|
24
|
+
export const CreateEnvironmentInputSchema = z.object({
|
|
25
|
+
name: z.string().min(1, 'name is required'),
|
|
26
|
+
url: z.string().url('url is required for standard environments'),
|
|
27
|
+
description: z.string().optional(),
|
|
28
|
+
projectUuid: z.string().uuid().optional(),
|
|
29
|
+
}).strict();
|
|
30
|
+
export const GetEnvironmentInputSchema = z.object({
|
|
31
|
+
uuid: z.string().uuid(),
|
|
32
|
+
projectUuid: z.string().uuid().optional(),
|
|
33
|
+
}).strict();
|
|
34
|
+
export const UpdateEnvironmentInputSchema = z.object({
|
|
35
|
+
uuid: z.string().uuid(),
|
|
36
|
+
name: z.string().min(1).optional(),
|
|
37
|
+
url: z.string().url().optional(),
|
|
38
|
+
description: z.string().optional(),
|
|
39
|
+
projectUuid: z.string().uuid().optional(),
|
|
40
|
+
}).strict();
|
|
41
|
+
export const DeleteEnvironmentInputSchema = z.object({
|
|
42
|
+
uuid: z.string().uuid(),
|
|
43
|
+
projectUuid: z.string().uuid().optional(),
|
|
44
|
+
}).strict();
|
|
45
|
+
export const GetCredentialInputSchema = z.object({
|
|
46
|
+
uuid: z.string().uuid(),
|
|
47
|
+
environmentId: z.string().uuid(),
|
|
48
|
+
projectUuid: z.string().uuid().optional(),
|
|
49
|
+
}).strict();
|
|
50
|
+
export const UpdateCredentialInputSchema = z.object({
|
|
51
|
+
uuid: z.string().uuid(),
|
|
52
|
+
environmentId: z.string().uuid(),
|
|
53
|
+
label: z.string().min(1).optional(),
|
|
54
|
+
username: z.string().min(1).optional(),
|
|
55
|
+
password: z.string().min(1).optional(),
|
|
56
|
+
role: z.string().min(1).optional(),
|
|
57
|
+
projectUuid: z.string().uuid().optional(),
|
|
58
|
+
}).strict();
|
|
59
|
+
export const DeleteCredentialInputSchema = z.object({
|
|
60
|
+
uuid: z.string().uuid(),
|
|
61
|
+
environmentId: z.string().uuid(),
|
|
62
|
+
projectUuid: z.string().uuid().optional(),
|
|
63
|
+
}).strict();
|
|
64
|
+
export const GetProjectInputSchema = z.object({
|
|
65
|
+
uuid: z.string().uuid(),
|
|
66
|
+
}).strict();
|
|
67
|
+
export const UpdateProjectInputSchema = z.object({
|
|
68
|
+
uuid: z.string().uuid(),
|
|
69
|
+
name: z.string().min(1).optional(),
|
|
70
|
+
description: z.string().optional(),
|
|
71
|
+
}).strict();
|
|
72
|
+
export const DeleteProjectInputSchema = z.object({
|
|
73
|
+
uuid: z.string().uuid(),
|
|
74
|
+
}).strict();
|
|
75
|
+
export const ListExecutionsInputSchema = z.object({
|
|
76
|
+
status: z.string().min(1).optional(),
|
|
77
|
+
limit: z.number().int().min(1).max(200).optional(),
|
|
78
|
+
}).strict();
|
|
79
|
+
export const GetExecutionInputSchema = z.object({
|
|
80
|
+
uuid: z.string().uuid(),
|
|
81
|
+
}).strict();
|
|
82
|
+
export const CancelExecutionInputSchema = z.object({
|
|
83
|
+
uuid: z.string().uuid(),
|
|
84
|
+
}).strict();
|
|
85
|
+
export const ListCredentialsInputSchema = z.object({
|
|
86
|
+
environmentId: z.string().uuid().optional(),
|
|
87
|
+
projectUuid: z.string().uuid().optional(),
|
|
88
|
+
q: z.string().min(1).optional(),
|
|
89
|
+
role: z.string().min(1).optional(),
|
|
90
|
+
}).strict();
|
|
91
|
+
export const CreateCredentialInputSchema = z.object({
|
|
92
|
+
environmentId: z.string().uuid(),
|
|
93
|
+
label: z.string().min(1, 'label is required'),
|
|
94
|
+
username: z.string().min(1, 'username is required'),
|
|
95
|
+
password: z.string().min(1, 'password is required'),
|
|
96
|
+
role: z.string().min(1).optional(),
|
|
97
|
+
projectUuid: z.string().uuid().optional(),
|
|
98
|
+
}).strict();
|
|
99
|
+
export const ListProjectsInputSchema = z.object({
|
|
100
|
+
q: z.string().min(1).optional(),
|
|
101
|
+
}).strict();
|
|
20
102
|
/**
|
|
21
103
|
* Error types
|
|
22
104
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@debugg-ai/debugg-ai-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.57",
|
|
4
4
|
"description": "Zero-Config, Fully AI-Managed End-to-End Testing for all code gen platforms.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"version:major": "npm version major --no-git-tag-version",
|
|
27
27
|
"publish:check": "npm pack --dry-run",
|
|
28
28
|
"prepublishOnly": "npm test && npm run build",
|
|
29
|
-
"mcp:local": "npm run build &&
|
|
30
|
-
"mcp:
|
|
29
|
+
"mcp:local": "npm run build && echo 'Local MCP built. Claude Code auto-registers it as debugg-ai-local from .mcp.json when cwd is this repo.'",
|
|
30
|
+
"mcp:global": "claude mcp remove debugg-ai 2>/dev/null; claude mcp add debugg-ai -s user -e DEBUGGAI_API_KEY=KrvXlzVFXVZO82UErXye5N7CtnmBTu1GKULrJnwXRRU -e POSTHOG_API_KEY=phc_4h2Yov2P0Vc9UMqfKf3dYKSQ6THOs7N6LZR0VKYopZN -- npx -y @debugg-ai/debugg-ai-mcp"
|
|
31
31
|
},
|
|
32
32
|
"keywords": [
|
|
33
33
|
"debugg",
|