@debugg-ai/debugg-ai-mcp 1.0.63 → 1.0.65

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 (50) hide show
  1. package/CHANGELOG.md +177 -0
  2. package/README.md +49 -37
  3. package/dist/config/index.js +4 -1
  4. package/dist/handlers/createEnvironmentHandler.js +34 -1
  5. package/dist/handlers/createProjectHandler.js +62 -10
  6. package/dist/handlers/index.js +4 -14
  7. package/dist/handlers/searchEnvironmentsHandler.js +122 -0
  8. package/dist/handlers/searchExecutionsHandler.js +71 -0
  9. package/dist/handlers/searchProjectsHandler.js +72 -0
  10. package/dist/handlers/testPageChangesHandler.js +46 -5
  11. package/dist/handlers/triggerCrawlHandler.js +37 -7
  12. package/dist/handlers/updateEnvironmentHandler.js +94 -15
  13. package/dist/index.js +15 -2
  14. package/dist/services/index.js +3 -3
  15. package/dist/tools/createEnvironment.js +5 -1
  16. package/dist/tools/createProject.js +6 -4
  17. package/dist/tools/index.js +9 -42
  18. package/dist/tools/searchEnvironments.js +35 -0
  19. package/dist/tools/searchExecutions.js +31 -0
  20. package/dist/tools/searchProjects.js +30 -0
  21. package/dist/types/index.js +52 -71
  22. package/package.json +8 -2
  23. package/dist/handlers/cancelExecutionHandler.js +0 -41
  24. package/dist/handlers/createCredentialHandler.js +0 -60
  25. package/dist/handlers/deleteCredentialHandler.js +0 -51
  26. package/dist/handlers/getCredentialHandler.js +0 -49
  27. package/dist/handlers/getEnvironmentHandler.js +0 -49
  28. package/dist/handlers/getExecutionHandler.js +0 -37
  29. package/dist/handlers/getProjectHandler.js +0 -37
  30. package/dist/handlers/listCredentialsHandler.js +0 -93
  31. package/dist/handlers/listEnvironmentsHandler.js +0 -63
  32. package/dist/handlers/listExecutionsHandler.js +0 -35
  33. package/dist/handlers/listProjectsHandler.js +0 -32
  34. package/dist/handlers/listReposHandler.js +0 -27
  35. package/dist/handlers/listTeamsHandler.js +0 -27
  36. package/dist/handlers/updateCredentialHandler.js +0 -70
  37. package/dist/tools/cancelExecution.js +0 -22
  38. package/dist/tools/createCredential.js +0 -52
  39. package/dist/tools/deleteCredential.js +0 -24
  40. package/dist/tools/getCredential.js +0 -24
  41. package/dist/tools/getEnvironment.js +0 -23
  42. package/dist/tools/getExecution.js +0 -22
  43. package/dist/tools/getProject.js +0 -22
  44. package/dist/tools/listCredentials.js +0 -30
  45. package/dist/tools/listEnvironments.js +0 -28
  46. package/dist/tools/listExecutions.js +0 -24
  47. package/dist/tools/listProjects.js +0 -27
  48. package/dist/tools/listRepos.js +0 -23
  49. package/dist/tools/listTeams.js +0 -23
  50. package/dist/tools/updateCredential.js +0 -28
@@ -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
- }
@@ -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
- }
@@ -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
- }