@debugg-ai/debugg-ai-mcp 1.0.63 → 1.0.64
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/dist/config/index.js +4 -1
- package/dist/handlers/createEnvironmentHandler.js +33 -0
- package/dist/handlers/createProjectHandler.js +62 -10
- package/dist/handlers/index.js +4 -14
- package/dist/handlers/searchEnvironmentsHandler.js +122 -0
- package/dist/handlers/searchExecutionsHandler.js +71 -0
- package/dist/handlers/searchProjectsHandler.js +72 -0
- package/dist/handlers/testPageChangesHandler.js +46 -5
- package/dist/handlers/triggerCrawlHandler.js +37 -7
- package/dist/handlers/updateEnvironmentHandler.js +94 -15
- package/dist/index.js +15 -2
- package/dist/tools/createEnvironment.js +5 -1
- package/dist/tools/index.js +9 -42
- package/dist/tools/searchEnvironments.js +35 -0
- package/dist/tools/searchExecutions.js +31 -0
- package/dist/tools/searchProjects.js +30 -0
- package/dist/types/index.js +52 -71
- package/package.json +4 -1
- package/dist/handlers/cancelExecutionHandler.js +0 -41
- package/dist/handlers/createCredentialHandler.js +0 -60
- package/dist/handlers/deleteCredentialHandler.js +0 -51
- package/dist/handlers/getCredentialHandler.js +0 -49
- package/dist/handlers/getEnvironmentHandler.js +0 -49
- package/dist/handlers/getExecutionHandler.js +0 -37
- package/dist/handlers/getProjectHandler.js +0 -37
- package/dist/handlers/listCredentialsHandler.js +0 -93
- package/dist/handlers/listEnvironmentsHandler.js +0 -63
- package/dist/handlers/listExecutionsHandler.js +0 -35
- package/dist/handlers/listProjectsHandler.js +0 -32
- package/dist/handlers/listReposHandler.js +0 -27
- package/dist/handlers/listTeamsHandler.js +0 -27
- package/dist/handlers/updateCredentialHandler.js +0 -70
- package/dist/tools/cancelExecution.js +0 -22
- package/dist/tools/createCredential.js +0 -52
- package/dist/tools/deleteCredential.js +0 -24
- package/dist/tools/getCredential.js +0 -24
- package/dist/tools/getEnvironment.js +0 -23
- package/dist/tools/getExecution.js +0 -22
- package/dist/tools/getProject.js +0 -22
- package/dist/tools/listCredentials.js +0 -30
- package/dist/tools/listEnvironments.js +0 -28
- package/dist/tools/listExecutions.js +0 -24
- package/dist/tools/listProjects.js +0 -27
- package/dist/tools/listRepos.js +0 -23
- package/dist/tools/listTeams.js +0 -23
- package/dist/tools/updateCredential.js +0 -28
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { DeleteCredentialInputSchema } from '../types/index.js';
|
|
2
|
-
import { deleteCredentialHandler } from '../handlers/deleteCredentialHandler.js';
|
|
3
|
-
const DESCRIPTION = `Delete a credential by UUID. Returns {deleted:true, uuid}. Requires environmentId. Destructive — the credential is gone. Returns isError:true + NotFound when already deleted or uuid doesn't exist.`;
|
|
4
|
-
export function buildDeleteCredentialTool() {
|
|
5
|
-
return {
|
|
6
|
-
name: 'delete_credential',
|
|
7
|
-
title: 'Delete Credential',
|
|
8
|
-
description: DESCRIPTION,
|
|
9
|
-
inputSchema: {
|
|
10
|
-
type: 'object',
|
|
11
|
-
properties: {
|
|
12
|
-
uuid: { type: 'string', description: 'UUID of the credential. Required.' },
|
|
13
|
-
environmentId: { type: 'string', description: 'UUID of the environment the cred belongs to. Required.' },
|
|
14
|
-
projectUuid: { type: 'string', description: 'Optional: project UUID. Defaults to git-auto-detect.' },
|
|
15
|
-
},
|
|
16
|
-
required: ['uuid', 'environmentId'],
|
|
17
|
-
additionalProperties: false,
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export function buildValidatedDeleteCredentialTool() {
|
|
22
|
-
const tool = buildDeleteCredentialTool();
|
|
23
|
-
return { ...tool, inputSchema: DeleteCredentialInputSchema, handler: deleteCredentialHandler };
|
|
24
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { GetCredentialInputSchema } from '../types/index.js';
|
|
2
|
-
import { getCredentialHandler } from '../handlers/getCredentialHandler.js';
|
|
3
|
-
const DESCRIPTION = `Fetch a single credential by UUID. Returns {credential:{uuid,label,username,role,environmentUuid,environmentName,isActive,isDefault,description,timestamp,lastMod}}. Never returns the password. Requires environmentId. Returns isError:true + NotFound when the uuid doesn't exist.`;
|
|
4
|
-
export function buildGetCredentialTool() {
|
|
5
|
-
return {
|
|
6
|
-
name: 'get_credential',
|
|
7
|
-
title: 'Get Credential by UUID',
|
|
8
|
-
description: DESCRIPTION,
|
|
9
|
-
inputSchema: {
|
|
10
|
-
type: 'object',
|
|
11
|
-
properties: {
|
|
12
|
-
uuid: { type: 'string', description: 'UUID of the credential. Required.' },
|
|
13
|
-
environmentId: { type: 'string', description: 'UUID of the environment the cred belongs to. Required.' },
|
|
14
|
-
projectUuid: { type: 'string', description: 'Optional: project UUID. Defaults to git-auto-detect.' },
|
|
15
|
-
},
|
|
16
|
-
required: ['uuid', 'environmentId'],
|
|
17
|
-
additionalProperties: false,
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export function buildValidatedGetCredentialTool() {
|
|
22
|
-
const tool = buildGetCredentialTool();
|
|
23
|
-
return { ...tool, inputSchema: GetCredentialInputSchema, handler: getCredentialHandler };
|
|
24
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { GetEnvironmentInputSchema } from '../types/index.js';
|
|
2
|
-
import { getEnvironmentHandler } from '../handlers/getEnvironmentHandler.js';
|
|
3
|
-
const DESCRIPTION = `Fetch a single environment by UUID. Returns full detail (uuid, name, url, isActive, description, endpointType, activeUrl, timestamp, lastMod). 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 buildGetEnvironmentTool() {
|
|
5
|
-
return {
|
|
6
|
-
name: 'get_environment',
|
|
7
|
-
title: 'Get Environment by UUID',
|
|
8
|
-
description: DESCRIPTION,
|
|
9
|
-
inputSchema: {
|
|
10
|
-
type: 'object',
|
|
11
|
-
properties: {
|
|
12
|
-
uuid: { type: 'string', description: 'UUID of the environment to fetch. Required.' },
|
|
13
|
-
projectUuid: { type: 'string', description: 'Optional: UUID of the target project. Defaults to git-auto-detect.' },
|
|
14
|
-
},
|
|
15
|
-
required: ['uuid'],
|
|
16
|
-
additionalProperties: false,
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export function buildValidatedGetEnvironmentTool() {
|
|
21
|
-
const tool = buildGetEnvironmentTool();
|
|
22
|
-
return { ...tool, inputSchema: GetEnvironmentInputSchema, handler: getEnvironmentHandler };
|
|
23
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { GetExecutionInputSchema } from '../types/index.js';
|
|
2
|
-
import { getExecutionHandler } from '../handlers/getExecutionHandler.js';
|
|
3
|
-
const DESCRIPTION = `Fetch full detail for a single workflow execution. Returns {execution:{uuid,status,state,outcome,startedAt,completedAt,durationMs,nodeExecutions,executionSummary,errorInfo,contextData,...}}. Returns isError:true + NotFound when uuid doesn't exist.`;
|
|
4
|
-
export function buildGetExecutionTool() {
|
|
5
|
-
return {
|
|
6
|
-
name: 'get_execution',
|
|
7
|
-
title: 'Get Execution Detail',
|
|
8
|
-
description: DESCRIPTION,
|
|
9
|
-
inputSchema: {
|
|
10
|
-
type: 'object',
|
|
11
|
-
properties: {
|
|
12
|
-
uuid: { type: 'string', description: 'Execution UUID. Required.' },
|
|
13
|
-
},
|
|
14
|
-
required: ['uuid'],
|
|
15
|
-
additionalProperties: false,
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export function buildValidatedGetExecutionTool() {
|
|
20
|
-
const tool = buildGetExecutionTool();
|
|
21
|
-
return { ...tool, inputSchema: GetExecutionInputSchema, handler: getExecutionHandler };
|
|
22
|
-
}
|
package/dist/tools/getProject.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { GetProjectInputSchema } from '../types/index.js';
|
|
2
|
-
import { getProjectHandler } from '../handlers/getProjectHandler.js';
|
|
3
|
-
const DESCRIPTION = `Fetch a single project by UUID. Returns {project:{uuid,name,slug,platform,repoName,description,status,language,framework,timestamp,lastMod}}. Response is simplified — heavy internal fields (team, runner_configuration, github internals) are omitted. Returns isError:true + NotFound when uuid doesn't exist.`;
|
|
4
|
-
export function buildGetProjectTool() {
|
|
5
|
-
return {
|
|
6
|
-
name: 'get_project',
|
|
7
|
-
title: 'Get Project by UUID',
|
|
8
|
-
description: DESCRIPTION,
|
|
9
|
-
inputSchema: {
|
|
10
|
-
type: 'object',
|
|
11
|
-
properties: {
|
|
12
|
-
uuid: { type: 'string', description: 'UUID of the project. Required.' },
|
|
13
|
-
},
|
|
14
|
-
required: ['uuid'],
|
|
15
|
-
additionalProperties: false,
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export function buildValidatedGetProjectTool() {
|
|
20
|
-
const tool = buildGetProjectTool();
|
|
21
|
-
return { ...tool, inputSchema: GetProjectInputSchema, handler: getProjectHandler };
|
|
22
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ListCredentialsInputSchema } from '../types/index.js';
|
|
2
|
-
import { listCredentialsHandler } from '../handlers/listCredentialsHandler.js';
|
|
3
|
-
const DESCRIPTION = `List credentials for a DebuggAI project. Paginated when scoped to a single environment (pass environmentId); otherwise iterates all envs and returns everything with pageInfo reflecting the total. Default pageSize 20, max 200. Optional q filters label/username (client-side); role filters server-side. Never returns passwords.`;
|
|
4
|
-
export function buildListCredentialsTool() {
|
|
5
|
-
return {
|
|
6
|
-
name: 'list_credentials',
|
|
7
|
-
title: 'List Project Credentials',
|
|
8
|
-
description: DESCRIPTION,
|
|
9
|
-
inputSchema: {
|
|
10
|
-
type: 'object',
|
|
11
|
-
properties: {
|
|
12
|
-
environmentId: { type: 'string', description: 'Optional: filter to a single environment. Required for true pagination.' },
|
|
13
|
-
projectUuid: { type: 'string', description: 'Optional: UUID of the target project. Defaults to git-auto-detect.' },
|
|
14
|
-
q: { type: 'string', description: 'Optional: filter by label or username.' },
|
|
15
|
-
role: { type: 'string', description: 'Optional: filter by exact role match.' },
|
|
16
|
-
page: { type: 'number', description: 'Optional: 1-indexed page number. Default 1.', minimum: 1 },
|
|
17
|
-
pageSize: { type: 'number', description: 'Optional: items per page. Default 20, max 200.', minimum: 1, maximum: 200 },
|
|
18
|
-
},
|
|
19
|
-
additionalProperties: false,
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export function buildValidatedListCredentialsTool() {
|
|
24
|
-
const tool = buildListCredentialsTool();
|
|
25
|
-
return {
|
|
26
|
-
...tool,
|
|
27
|
-
inputSchema: ListCredentialsInputSchema,
|
|
28
|
-
handler: listCredentialsHandler,
|
|
29
|
-
};
|
|
30
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ListEnvironmentsInputSchema } from '../types/index.js';
|
|
2
|
-
import { listEnvironmentsHandler } from '../handlers/listEnvironmentsHandler.js';
|
|
3
|
-
const DESCRIPTION = `List environments for a DebuggAI project. Paginated — every response includes pageInfo {page, pageSize, totalCount, totalPages, hasMore}; default pageSize 20, max 200. By default targets the project resolved from the current git repo; pass projectUuid to target a different project. Optional q filters by environment name via backend search.`;
|
|
4
|
-
export function buildListEnvironmentsTool() {
|
|
5
|
-
return {
|
|
6
|
-
name: 'list_environments',
|
|
7
|
-
title: 'List Project Environments',
|
|
8
|
-
description: DESCRIPTION,
|
|
9
|
-
inputSchema: {
|
|
10
|
-
type: 'object',
|
|
11
|
-
properties: {
|
|
12
|
-
projectUuid: { type: 'string', description: 'Optional: UUID of the project to query. Defaults to git-auto-detect.' },
|
|
13
|
-
q: { type: 'string', description: 'Optional: filter by environment name.' },
|
|
14
|
-
page: { type: 'number', description: 'Optional: 1-indexed page number. Default 1.', minimum: 1 },
|
|
15
|
-
pageSize: { type: 'number', description: 'Optional: items per page. Default 20, max 200.', minimum: 1, maximum: 200 },
|
|
16
|
-
},
|
|
17
|
-
additionalProperties: false,
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export function buildValidatedListEnvironmentsTool() {
|
|
22
|
-
const tool = buildListEnvironmentsTool();
|
|
23
|
-
return {
|
|
24
|
-
...tool,
|
|
25
|
-
inputSchema: ListEnvironmentsInputSchema,
|
|
26
|
-
handler: listEnvironmentsHandler,
|
|
27
|
-
};
|
|
28
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ListExecutionsInputSchema } from '../types/index.js';
|
|
2
|
-
import { listExecutionsHandler } from '../handlers/listExecutionsHandler.js';
|
|
3
|
-
const DESCRIPTION = `List workflow execution history. Paginated — every response includes pageInfo {page, pageSize, totalCount, totalPages, hasMore}; default pageSize 20, max 200. Optional status filter (e.g. "completed", "running", "failed", "cancelled"). Optional projectUuid scopes to a single project. Returns summary shape; use get_execution for full detail on a single uuid.`;
|
|
4
|
-
export function buildListExecutionsTool() {
|
|
5
|
-
return {
|
|
6
|
-
name: 'list_executions',
|
|
7
|
-
title: 'List Workflow Executions',
|
|
8
|
-
description: DESCRIPTION,
|
|
9
|
-
inputSchema: {
|
|
10
|
-
type: 'object',
|
|
11
|
-
properties: {
|
|
12
|
-
status: { type: 'string', description: 'Optional: filter by execution status.' },
|
|
13
|
-
projectUuid: { type: 'string', description: 'Optional: scope results to a specific project.' },
|
|
14
|
-
page: { type: 'number', description: 'Optional: 1-indexed page number. Default 1.', minimum: 1 },
|
|
15
|
-
pageSize: { type: 'number', description: 'Optional: items per page. Default 20, max 200.', minimum: 1, maximum: 200 },
|
|
16
|
-
},
|
|
17
|
-
additionalProperties: false,
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export function buildValidatedListExecutionsTool() {
|
|
22
|
-
const tool = buildListExecutionsTool();
|
|
23
|
-
return { ...tool, inputSchema: ListExecutionsInputSchema, handler: listExecutionsHandler };
|
|
24
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ListProjectsInputSchema } from '../types/index.js';
|
|
2
|
-
import { listProjectsHandler } from '../handlers/listProjectsHandler.js';
|
|
3
|
-
const DESCRIPTION = `List DebuggAI projects accessible to the current API key. Paginated — every response includes pageInfo {page, pageSize, totalCount, totalPages, hasMore}; default pageSize 20, max 200. Optional "q" input filters by project name or repo name via backend search. Use this when you don't know which project to target or when the current git repo doesn't resolve to a DebuggAI project.`;
|
|
4
|
-
export function buildListProjectsTool() {
|
|
5
|
-
return {
|
|
6
|
-
name: 'list_projects',
|
|
7
|
-
title: 'List DebuggAI Projects',
|
|
8
|
-
description: DESCRIPTION,
|
|
9
|
-
inputSchema: {
|
|
10
|
-
type: 'object',
|
|
11
|
-
properties: {
|
|
12
|
-
q: { type: 'string', description: 'Optional: search by name or repo name.' },
|
|
13
|
-
page: { type: 'number', description: 'Optional: 1-indexed page number. Default 1.', minimum: 1 },
|
|
14
|
-
pageSize: { type: 'number', description: 'Optional: items per page. Default 20, max 200.', minimum: 1, maximum: 200 },
|
|
15
|
-
},
|
|
16
|
-
additionalProperties: false,
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export function buildValidatedListProjectsTool() {
|
|
21
|
-
const tool = buildListProjectsTool();
|
|
22
|
-
return {
|
|
23
|
-
...tool,
|
|
24
|
-
inputSchema: ListProjectsInputSchema,
|
|
25
|
-
handler: listProjectsHandler,
|
|
26
|
-
};
|
|
27
|
-
}
|
package/dist/tools/listRepos.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ListReposInputSchema } from '../types/index.js';
|
|
2
|
-
import { listReposHandler } from '../handlers/listReposHandler.js';
|
|
3
|
-
const DESCRIPTION = `List GitHub repos linked to the current account. Paginated — every response includes pageInfo {page, pageSize, totalCount, totalPages, hasMore}; default pageSize 20, max 200. Optional q filters by repo name via backend search. Use this to discover repoUuid values required by create_project. Prefer repos with isGithubAuthorized:true since the backend needs a valid GitHub installation.`;
|
|
4
|
-
export function buildListReposTool() {
|
|
5
|
-
return {
|
|
6
|
-
name: 'list_repos',
|
|
7
|
-
title: 'List Linked Repos',
|
|
8
|
-
description: DESCRIPTION,
|
|
9
|
-
inputSchema: {
|
|
10
|
-
type: 'object',
|
|
11
|
-
properties: {
|
|
12
|
-
q: { type: 'string', description: 'Optional: filter by repo name.' },
|
|
13
|
-
page: { type: 'number', description: 'Optional: 1-indexed page number.', minimum: 1 },
|
|
14
|
-
pageSize: { type: 'number', description: 'Optional: items per page. Default 20, max 200.', minimum: 1, maximum: 200 },
|
|
15
|
-
},
|
|
16
|
-
additionalProperties: false,
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export function buildValidatedListReposTool() {
|
|
21
|
-
const tool = buildListReposTool();
|
|
22
|
-
return { ...tool, inputSchema: ListReposInputSchema, handler: listReposHandler };
|
|
23
|
-
}
|
package/dist/tools/listTeams.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ListTeamsInputSchema } from '../types/index.js';
|
|
2
|
-
import { listTeamsHandler } from '../handlers/listTeamsHandler.js';
|
|
3
|
-
const DESCRIPTION = `List teams accessible to the current API key. Paginated — every response includes pageInfo {page, pageSize, totalCount, totalPages, hasMore}; default pageSize 20, max 200. Optional q filters by team name via backend search. Use this to discover teamUuid values required by create_project.`;
|
|
4
|
-
export function buildListTeamsTool() {
|
|
5
|
-
return {
|
|
6
|
-
name: 'list_teams',
|
|
7
|
-
title: 'List Teams',
|
|
8
|
-
description: DESCRIPTION,
|
|
9
|
-
inputSchema: {
|
|
10
|
-
type: 'object',
|
|
11
|
-
properties: {
|
|
12
|
-
q: { type: 'string', description: 'Optional: filter by team name.' },
|
|
13
|
-
page: { type: 'number', description: 'Optional: 1-indexed page number.', minimum: 1 },
|
|
14
|
-
pageSize: { type: 'number', description: 'Optional: items per page. Default 20, max 200.', minimum: 1, maximum: 200 },
|
|
15
|
-
},
|
|
16
|
-
additionalProperties: false,
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export function buildValidatedListTeamsTool() {
|
|
21
|
-
const tool = buildListTeamsTool();
|
|
22
|
-
return { ...tool, inputSchema: ListTeamsInputSchema, handler: listTeamsHandler };
|
|
23
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { UpdateCredentialInputSchema } from '../types/index.js';
|
|
2
|
-
import { updateCredentialHandler } from '../handlers/updateCredentialHandler.js';
|
|
3
|
-
const DESCRIPTION = `Patch a credential by UUID. Optional fields: label, username, password, role. Password is write-only — set it to rotate, but it is never returned in any response. Requires environmentId. Returns {updated:true, credential:{...}}.`;
|
|
4
|
-
export function buildUpdateCredentialTool() {
|
|
5
|
-
return {
|
|
6
|
-
name: 'update_credential',
|
|
7
|
-
title: 'Update Credential',
|
|
8
|
-
description: DESCRIPTION,
|
|
9
|
-
inputSchema: {
|
|
10
|
-
type: 'object',
|
|
11
|
-
properties: {
|
|
12
|
-
uuid: { type: 'string', description: 'UUID of the credential. Required.' },
|
|
13
|
-
environmentId: { type: 'string', description: 'UUID of the environment the cred belongs to. Required.' },
|
|
14
|
-
label: { type: 'string', description: 'Optional: new label.', minLength: 1 },
|
|
15
|
-
username: { type: 'string', description: 'Optional: new username.', minLength: 1 },
|
|
16
|
-
password: { type: 'string', description: 'Optional: new password (write-only — never echoed).', minLength: 1 },
|
|
17
|
-
role: { type: 'string', description: 'Optional: new role (note: backend currently drops role, see bead hpo).', minLength: 1 },
|
|
18
|
-
projectUuid: { type: 'string', description: 'Optional: project UUID. Defaults to git-auto-detect.' },
|
|
19
|
-
},
|
|
20
|
-
required: ['uuid', 'environmentId'],
|
|
21
|
-
additionalProperties: false,
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export function buildValidatedUpdateCredentialTool() {
|
|
26
|
-
const tool = buildUpdateCredentialTool();
|
|
27
|
-
return { ...tool, inputSchema: UpdateCredentialInputSchema, handler: updateCredentialHandler };
|
|
28
|
-
}
|