devops-mcp-server-extension 1.0.0
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/LICENSE +218 -0
- package/README.md +527 -0
- package/README.zh-cn.md +503 -0
- package/dist/common/errors.js +77 -0
- package/dist/common/modularTemplates.js +483 -0
- package/dist/common/pipelineTemplates.js +19 -0
- package/dist/common/toolsetManager.js +123 -0
- package/dist/common/toolsets.js +23 -0
- package/dist/common/types.js +60 -0
- package/dist/common/utils.js +381 -0
- package/dist/common/version.js +1 -0
- package/dist/index.js +225 -0
- package/dist/operations/appstack/appOrchestrations.js +260 -0
- package/dist/operations/appstack/appTags.js +168 -0
- package/dist/operations/appstack/appTemplates.js +72 -0
- package/dist/operations/appstack/applications.js +171 -0
- package/dist/operations/appstack/changeOrders.js +320 -0
- package/dist/operations/appstack/changeRequests.js +288 -0
- package/dist/operations/appstack/deploymentResources.js +286 -0
- package/dist/operations/appstack/globalVars.js +221 -0
- package/dist/operations/appstack/releaseWorkflows.js +695 -0
- package/dist/operations/appstack/variableGroups.js +245 -0
- package/dist/operations/codeup/branches.js +157 -0
- package/dist/operations/codeup/changeRequestComments.js +140 -0
- package/dist/operations/codeup/changeRequests.js +230 -0
- package/dist/operations/codeup/commits.js +121 -0
- package/dist/operations/codeup/compare.js +30 -0
- package/dist/operations/codeup/files.js +249 -0
- package/dist/operations/codeup/repositories.js +71 -0
- package/dist/operations/codeup/types.js +414 -0
- package/dist/operations/flow/hostGroup.js +52 -0
- package/dist/operations/flow/pipeline.js +609 -0
- package/dist/operations/flow/pipelineJob.js +126 -0
- package/dist/operations/flow/resourceMember.js +137 -0
- package/dist/operations/flow/serviceConnection.js +27 -0
- package/dist/operations/flow/tag.js +191 -0
- package/dist/operations/flow/types.js +523 -0
- package/dist/operations/flow/vmDeployOrder.js +171 -0
- package/dist/operations/organization/members.js +106 -0
- package/dist/operations/organization/organization.js +110 -0
- package/dist/operations/organization/types.js +111 -0
- package/dist/operations/packages/artifacts.js +71 -0
- package/dist/operations/packages/repositories.js +39 -0
- package/dist/operations/packages/types.js +56 -0
- package/dist/operations/projex/effort.js +122 -0
- package/dist/operations/projex/project.js +243 -0
- package/dist/operations/projex/sprint.js +103 -0
- package/dist/operations/projex/types.js +618 -0
- package/dist/operations/projex/workitem.js +826 -0
- package/dist/operations/testhub/testcases.js +240 -0
- package/dist/operations/testhub/testplans.js +128 -0
- package/dist/tool-handlers/appstack-app-release-workflows.js +103 -0
- package/dist/tool-handlers/appstack-change-orders.js +55 -0
- package/dist/tool-handlers/appstack-change-requests.js +49 -0
- package/dist/tool-handlers/appstack-deployment-resources.js +31 -0
- package/dist/tool-handlers/appstack-global-vars.js +37 -0
- package/dist/tool-handlers/appstack-orchestrations.js +49 -0
- package/dist/tool-handlers/appstack-release-workflows.js +37 -0
- package/dist/tool-handlers/appstack-tags.js +37 -0
- package/dist/tool-handlers/appstack-templates.js +19 -0
- package/dist/tool-handlers/appstack-variable-groups.js +55 -0
- package/dist/tool-handlers/appstack.js +37 -0
- package/dist/tool-handlers/base.js +25 -0
- package/dist/tool-handlers/code-management.js +150 -0
- package/dist/tool-handlers/commit.js +31 -0
- package/dist/tool-handlers/effort.js +103 -0
- package/dist/tool-handlers/index.js +119 -0
- package/dist/tool-handlers/organization.js +72 -0
- package/dist/tool-handlers/packages.js +32 -0
- package/dist/tool-handlers/pipeline.js +289 -0
- package/dist/tool-handlers/project-management.js +201 -0
- package/dist/tool-handlers/resourceMember.js +43 -0
- package/dist/tool-handlers/service-connections.js +16 -0
- package/dist/tool-handlers/tag.js +64 -0
- package/dist/tool-handlers/test-management.js +74 -0
- package/dist/tool-handlers/vmDeployOrder.js +50 -0
- package/dist/tool-registry/appstack-app-release-workflows.js +80 -0
- package/dist/tool-registry/appstack-change-orders.js +40 -0
- package/dist/tool-registry/appstack-change-requests.js +35 -0
- package/dist/tool-registry/appstack-deployment-resources.js +20 -0
- package/dist/tool-registry/appstack-global-vars.js +25 -0
- package/dist/tool-registry/appstack-orchestrations.js +35 -0
- package/dist/tool-registry/appstack-release-workflows.js +25 -0
- package/dist/tool-registry/appstack-tags.js +25 -0
- package/dist/tool-registry/appstack-templates.js +10 -0
- package/dist/tool-registry/appstack-variable-groups.js +40 -0
- package/dist/tool-registry/appstack.js +25 -0
- package/dist/tool-registry/base.js +19 -0
- package/dist/tool-registry/code-management.js +109 -0
- package/dist/tool-registry/commit.js +20 -0
- package/dist/tool-registry/effort.js +39 -0
- package/dist/tool-registry/index.js +7 -0
- package/dist/tool-registry/organization.js +65 -0
- package/dist/tool-registry/packages.js +21 -0
- package/dist/tool-registry/pipeline.js +190 -0
- package/dist/tool-registry/project-management.js +143 -0
- package/dist/tool-registry/resourceMember.js +29 -0
- package/dist/tool-registry/service-connections.js +10 -0
- package/dist/tool-registry/tag.js +44 -0
- package/dist/tool-registry/test-management.js +59 -0
- package/dist/tool-registry/vmDeployOrder.js +34 -0
- package/package.json +52 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
2
|
+
import { GetLatestOrchestrationRequestSchema, ListAppOrchestrationRequestSchema, CreateAppOrchestrationRequestSchema, DeleteAppOrchestrationRequestSchema, GetAppOrchestrationRequestSchema, UpdateAppOrchestrationRequestSchema } from '../operations/appstack/appOrchestrations.js';
|
|
3
|
+
// Export all appstack application orchestrations tools
|
|
4
|
+
export const getAppStackOrchestrationTools = () => [
|
|
5
|
+
{
|
|
6
|
+
name: 'get_latest_orchestration',
|
|
7
|
+
description: '[application delivery] Get the latest orchestration for an environment',
|
|
8
|
+
inputSchema: zodToJsonSchema(GetLatestOrchestrationRequestSchema),
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: 'list_app_orchestration',
|
|
12
|
+
description: '[application delivery] List application orchestrations',
|
|
13
|
+
inputSchema: zodToJsonSchema(ListAppOrchestrationRequestSchema),
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'create_app_orchestration',
|
|
17
|
+
description: '[application delivery] Create an application orchestration',
|
|
18
|
+
inputSchema: zodToJsonSchema(CreateAppOrchestrationRequestSchema),
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'delete_app_orchestration',
|
|
22
|
+
description: '[application delivery] Delete an application orchestration',
|
|
23
|
+
inputSchema: zodToJsonSchema(DeleteAppOrchestrationRequestSchema),
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'get_app_orchestration',
|
|
27
|
+
description: '[application delivery] Get an application orchestration',
|
|
28
|
+
inputSchema: zodToJsonSchema(GetAppOrchestrationRequestSchema),
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'update_app_orchestration',
|
|
32
|
+
description: '[application delivery] Update an application orchestration',
|
|
33
|
+
inputSchema: zodToJsonSchema(UpdateAppOrchestrationRequestSchema),
|
|
34
|
+
}
|
|
35
|
+
];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
2
|
+
import { ListSystemAllReleaseWorkflowsRequestSchema, CreateSystemReleaseWorkflowsRequestSchema, UpdateSystemReleaseStageRequestSchema, ExecuteReleaseStageRequestSchema } from '../operations/appstack/releaseWorkflows.js';
|
|
3
|
+
// Export all appstack release workflow tools (system level)
|
|
4
|
+
export const getAppStackReleaseWorkflowTools = () => [
|
|
5
|
+
{
|
|
6
|
+
name: 'list_system_release_workflows',
|
|
7
|
+
description: '[application delivery] ๆฅ่ฏข็ณป็ปไธๆๆๅๅธๆต็จ',
|
|
8
|
+
inputSchema: zodToJsonSchema(ListSystemAllReleaseWorkflowsRequestSchema),
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: 'create_system_release_workflow',
|
|
12
|
+
description: '[application delivery] ๅๅปบ็ณป็ปๅๅธๆต็จ',
|
|
13
|
+
inputSchema: zodToJsonSchema(CreateSystemReleaseWorkflowsRequestSchema),
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'update_system_release_stage',
|
|
17
|
+
description: '[application delivery] ๆดๆฐ็ณป็ปๅๅธๆต็จ้ถๆฎต',
|
|
18
|
+
inputSchema: zodToJsonSchema(UpdateSystemReleaseStageRequestSchema),
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'execute_system_release_stage',
|
|
22
|
+
description: '[application delivery] ๆง่ก็ณป็ปๅๅธๆต็จ้ถๆฎต',
|
|
23
|
+
inputSchema: zodToJsonSchema(ExecuteReleaseStageRequestSchema),
|
|
24
|
+
}
|
|
25
|
+
];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
2
|
+
import { CreateAppTagRequestSchema, UpdateAppTagRequestSchema, SearchAppTagRequestSchema, UpdateAppTagBindRequestSchema } from '../operations/appstack/appTags.js';
|
|
3
|
+
// Export all appstack tag tools
|
|
4
|
+
export const getAppStackTagTools = () => [
|
|
5
|
+
{
|
|
6
|
+
name: 'create_app_tag',
|
|
7
|
+
description: '[application delivery] Create an application tag',
|
|
8
|
+
inputSchema: zodToJsonSchema(CreateAppTagRequestSchema),
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: 'update_app_tag',
|
|
12
|
+
description: '[application delivery] Update an application tag',
|
|
13
|
+
inputSchema: zodToJsonSchema(UpdateAppTagRequestSchema),
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'search_app_tags',
|
|
17
|
+
description: '[application delivery] Search application tags',
|
|
18
|
+
inputSchema: zodToJsonSchema(SearchAppTagRequestSchema),
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'update_app_tag_bind',
|
|
22
|
+
description: '[application delivery] Update application tag bindings',
|
|
23
|
+
inputSchema: zodToJsonSchema(UpdateAppTagBindRequestSchema),
|
|
24
|
+
}
|
|
25
|
+
];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
2
|
+
import { SearchAppTemplatesRequestSchema } from '../operations/appstack/appTemplates.js';
|
|
3
|
+
// Export all appstack template tools
|
|
4
|
+
export const getAppStackTemplateTools = () => [
|
|
5
|
+
{
|
|
6
|
+
name: 'search_app_templates',
|
|
7
|
+
description: '[application delivery] Search application templates',
|
|
8
|
+
inputSchema: zodToJsonSchema(SearchAppTemplatesRequestSchema),
|
|
9
|
+
}
|
|
10
|
+
];
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
2
|
+
import { GetEnvVariableGroupsRequestSchema, CreateVariableGroupRequestSchema, DeleteVariableGroupRequestSchema, GetVariableGroupRequestSchema, UpdateVariableGroupRequestSchema, GetAppVariableGroupsRequestSchema, GetAppVariableGroupsRevisionRequestSchema } from '../operations/appstack/variableGroups.js';
|
|
3
|
+
// Export all appstack variable groups tools
|
|
4
|
+
export const getAppStackVariableGroupTools = () => [
|
|
5
|
+
{
|
|
6
|
+
name: 'get_env_variable_groups',
|
|
7
|
+
description: '[application delivery] Get variable groups for an environment',
|
|
8
|
+
inputSchema: zodToJsonSchema(GetEnvVariableGroupsRequestSchema),
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: 'create_variable_group',
|
|
12
|
+
description: '[application delivery] Create a variable group',
|
|
13
|
+
inputSchema: zodToJsonSchema(CreateVariableGroupRequestSchema),
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'delete_variable_group',
|
|
17
|
+
description: '[application delivery] Delete a variable group',
|
|
18
|
+
inputSchema: zodToJsonSchema(DeleteVariableGroupRequestSchema),
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'get_variable_group',
|
|
22
|
+
description: '[application delivery] Get a variable group',
|
|
23
|
+
inputSchema: zodToJsonSchema(GetVariableGroupRequestSchema),
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'update_variable_group',
|
|
27
|
+
description: '[application delivery] Update a variable group',
|
|
28
|
+
inputSchema: zodToJsonSchema(UpdateVariableGroupRequestSchema),
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'get_app_variable_groups',
|
|
32
|
+
description: '[application delivery] Get variable groups for an application',
|
|
33
|
+
inputSchema: zodToJsonSchema(GetAppVariableGroupsRequestSchema),
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'get_app_variable_groups_revision',
|
|
37
|
+
description: '[application delivery] Get the revision of variable groups for an application',
|
|
38
|
+
inputSchema: zodToJsonSchema(GetAppVariableGroupsRevisionRequestSchema),
|
|
39
|
+
}
|
|
40
|
+
];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
2
|
+
import { ListApplicationsRequestSchema, GetApplicationRequestSchema, CreateApplicationRequestSchema, UpdateApplicationRequestSchema } from '../operations/appstack/applications.js';
|
|
3
|
+
// Export all appstack tools
|
|
4
|
+
export const getAppStackTools = () => [
|
|
5
|
+
{
|
|
6
|
+
name: 'list_applications',
|
|
7
|
+
description: '[application delivery] List applications in an organization with pagination',
|
|
8
|
+
inputSchema: zodToJsonSchema(ListApplicationsRequestSchema),
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: 'get_application',
|
|
12
|
+
description: '[application delivery] Get application details by name',
|
|
13
|
+
inputSchema: zodToJsonSchema(GetApplicationRequestSchema),
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'create_application',
|
|
17
|
+
description: '[application delivery] Create a new application',
|
|
18
|
+
inputSchema: zodToJsonSchema(CreateApplicationRequestSchema),
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'update_application',
|
|
22
|
+
description: '[application delivery] Update an existing application',
|
|
23
|
+
inputSchema: zodToJsonSchema(UpdateApplicationRequestSchema),
|
|
24
|
+
}
|
|
25
|
+
];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
3
|
+
export const getBaseTools = () => [
|
|
4
|
+
{
|
|
5
|
+
name: "get_current_organization_info",
|
|
6
|
+
description: "Get information about the current user and organization based on the token. In the absence of an explicitly specified organization ID, this result will take precedence.",
|
|
7
|
+
inputSchema: zodToJsonSchema(z.object({})),
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
name: "get_user_organizations",
|
|
11
|
+
description: "Get the list of organizations the current user belongs to",
|
|
12
|
+
inputSchema: zodToJsonSchema(z.object({})),
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: "get_current_user",
|
|
16
|
+
description: "Get information about the current user based on the token. In the absence of an explicitly specified user ID, this result will take precedence.",
|
|
17
|
+
inputSchema: zodToJsonSchema(z.object({})),
|
|
18
|
+
}
|
|
19
|
+
];
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
2
|
+
import * as types from '../common/types.js';
|
|
3
|
+
export const getCodeManagementTools = () => [
|
|
4
|
+
// Branch Operations
|
|
5
|
+
{
|
|
6
|
+
name: "create_branch",
|
|
7
|
+
description: "[Code Management] Create a new branch in a Codeup repository",
|
|
8
|
+
inputSchema: zodToJsonSchema(types.CreateBranchSchema),
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: "get_branch",
|
|
12
|
+
description: "[Code Management] Get information about a branch in a Codeup repository",
|
|
13
|
+
inputSchema: zodToJsonSchema(types.GetBranchSchema),
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: "delete_branch",
|
|
17
|
+
description: "[Code Management] Delete a branch from a Codeup repository",
|
|
18
|
+
inputSchema: zodToJsonSchema(types.DeleteBranchSchema),
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: "list_branches",
|
|
22
|
+
description: "[Code Management] List branches in a Codeup repository",
|
|
23
|
+
inputSchema: zodToJsonSchema(types.ListBranchesSchema),
|
|
24
|
+
},
|
|
25
|
+
// File Operations
|
|
26
|
+
{
|
|
27
|
+
name: "get_file_blobs",
|
|
28
|
+
description: "[Code Management] Get file content from a Codeup repository",
|
|
29
|
+
inputSchema: zodToJsonSchema(types.GetFileBlobsSchema),
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "create_file",
|
|
33
|
+
description: "[Code Management] Create a new file in a Codeup repository",
|
|
34
|
+
inputSchema: zodToJsonSchema(types.CreateFileSchema),
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "update_file",
|
|
38
|
+
description: "[Code Management] Update an existing file in a Codeup repository",
|
|
39
|
+
inputSchema: zodToJsonSchema(types.UpdateFileSchema),
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: "delete_file",
|
|
43
|
+
description: "[Code Management] Delete a file from a Codeup repository",
|
|
44
|
+
inputSchema: zodToJsonSchema(types.DeleteFileSchema),
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: "list_files",
|
|
48
|
+
description: "[Code Management] List file tree from a Codeup repository",
|
|
49
|
+
inputSchema: zodToJsonSchema(types.ListFilesSchema),
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "compare",
|
|
53
|
+
description: "[Code Management] Query code to compare content",
|
|
54
|
+
inputSchema: zodToJsonSchema(types.GetCompareSchema),
|
|
55
|
+
},
|
|
56
|
+
// Repository Operations
|
|
57
|
+
{
|
|
58
|
+
name: "get_repository",
|
|
59
|
+
description: "[Code Management] Get information about a Codeup repository",
|
|
60
|
+
inputSchema: zodToJsonSchema(types.GetRepositorySchema),
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: "list_repositories",
|
|
64
|
+
description: "[Code Management] Get the CodeUp Repository List.\n" +
|
|
65
|
+
"\n" +
|
|
66
|
+
"A Repository serves as a unit for managing source code and is distinct from a Project.\n" +
|
|
67
|
+
"\n" +
|
|
68
|
+
"Use Case:\n" +
|
|
69
|
+
"\n" +
|
|
70
|
+
"View my repositories",
|
|
71
|
+
inputSchema: zodToJsonSchema(types.ListRepositoriesSchema),
|
|
72
|
+
},
|
|
73
|
+
// Change Request Operations
|
|
74
|
+
{
|
|
75
|
+
name: "get_change_request",
|
|
76
|
+
description: "[Code Management] Get detailed information about a specific change request (merge request) by its local ID.",
|
|
77
|
+
inputSchema: zodToJsonSchema(types.GetChangeRequestSchema),
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "list_change_requests",
|
|
81
|
+
description: "[Code Management] List change requests with multi-condition filtering, pagination and sorting. Supports filtering by repository, author, reviewer, state (opened/merged/closed), search keywords, and creation time range.",
|
|
82
|
+
inputSchema: zodToJsonSchema(types.ListChangeRequestsSchema),
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "create_change_request",
|
|
86
|
+
description: "[Code Management] Create a new change request (merge request). Supports specifying source/target branches, reviewers, associated work items, and optional AI review trigger.",
|
|
87
|
+
inputSchema: zodToJsonSchema(types.CreateChangeRequestSchema),
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "create_change_request_comment",
|
|
91
|
+
description: "[Code Management] Create a comment on a change request. Supports two types: GLOBAL_COMMENT (global comment on the entire merge request) and INLINE_COMMENT (inline comment on specific code lines). For INLINE_COMMENT, you must provide file_path, line_number, from_patchset_biz_id, and to_patchset_biz_id parameters.",
|
|
92
|
+
inputSchema: zodToJsonSchema(types.CreateChangeRequestCommentSchema),
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: "list_change_request_comments",
|
|
96
|
+
description: "[Code Management] List comments on a change request. Supports filtering by comment type (GLOBAL_COMMENT or INLINE_COMMENT), state (OPENED or DRAFT), resolved status, and file path (for inline comments).",
|
|
97
|
+
inputSchema: zodToJsonSchema(types.ListChangeRequestCommentsSchema),
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: "update_change_request_comment",
|
|
101
|
+
description: "[Code Management] Update a comment on a change request. Can update the comment content and/or resolved status.",
|
|
102
|
+
inputSchema: zodToJsonSchema(types.UpdateChangeRequestCommentSchema),
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "list_change_request_patch_sets",
|
|
106
|
+
description: "[Code Management] List patch sets (versions) for a change request. Patch sets represent different versions of the merge request as it evolves.",
|
|
107
|
+
inputSchema: zodToJsonSchema(types.ListChangeRequestPatchSetsSchema),
|
|
108
|
+
},
|
|
109
|
+
];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
2
|
+
import { ListCommitsRequestSchema, GetCommitRequestSchema, CreateCommitCommentRequestSchema } from '../common/types.js';
|
|
3
|
+
// Export all commit tools
|
|
4
|
+
export const getCommitTools = () => [
|
|
5
|
+
{
|
|
6
|
+
name: 'list_commits',
|
|
7
|
+
description: '[Code Management] List commits in a Codeup repository',
|
|
8
|
+
inputSchema: zodToJsonSchema(ListCommitsRequestSchema),
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: 'get_commit',
|
|
12
|
+
description: '[Code Management] Get information about a commit',
|
|
13
|
+
inputSchema: zodToJsonSchema(GetCommitRequestSchema),
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'create_commit_comment',
|
|
17
|
+
description: '[Code Management] Create a comment on a commit',
|
|
18
|
+
inputSchema: zodToJsonSchema(CreateCommitCommentRequestSchema),
|
|
19
|
+
}
|
|
20
|
+
];
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
2
|
+
import { ListCurrentUserEffortRecordsSchema, ListEffortRecordsSchema, CreateEffortRecordSchema, ListEstimatedEffortsSchema, CreateEstimatedEffortSchema, UpdateEffortRecordSchema, UpdateEstimatedEffortSchema } from "../common/types.js";
|
|
3
|
+
export const getEffortTools = () => [
|
|
4
|
+
{
|
|
5
|
+
name: "list_current_user_effort_records",
|
|
6
|
+
description: "[Project Management] ่ทๅ็จๆท็ๅฎ้
ๅทฅๆถๆ็ป๏ผ็ปๆๆถ้ดๅๅผๅงๆถ้ด็้ด้ไธ่ฝๅคงไบ6ไธชๆ",
|
|
7
|
+
inputSchema: zodToJsonSchema(ListCurrentUserEffortRecordsSchema),
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
name: "list_effort_records",
|
|
11
|
+
description: "[Project Management] ่ทๅๅฎ้
ๅทฅๆถๆ็ป",
|
|
12
|
+
inputSchema: zodToJsonSchema(ListEffortRecordsSchema),
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: "create_effort_record",
|
|
16
|
+
description: "[Project Management] ็ป่ฎฐๅฎ้
ๅทฅๆถ",
|
|
17
|
+
inputSchema: zodToJsonSchema(CreateEffortRecordSchema),
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "list_estimated_efforts",
|
|
21
|
+
description: "[Project Management] ่ทๅ้ข่ฎกๅทฅๆถๆ็ป",
|
|
22
|
+
inputSchema: zodToJsonSchema(ListEstimatedEffortsSchema),
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: "create_estimated_effort",
|
|
26
|
+
description: "[Project Management] ็ป่ฎฐ้ข่ฎกๅทฅๆถ",
|
|
27
|
+
inputSchema: zodToJsonSchema(CreateEstimatedEffortSchema),
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "update_effort_record",
|
|
31
|
+
description: "[Project Management] ๆดๆฐ็ป่ฎฐๅฎ้
ๅทฅๆถ",
|
|
32
|
+
inputSchema: zodToJsonSchema(UpdateEffortRecordSchema),
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: "update_estimated_effort",
|
|
36
|
+
description: "[Project Management] ๆดๆฐ็ป่ฎฐ้ข่ฎกๅทฅๆถ",
|
|
37
|
+
inputSchema: zodToJsonSchema(UpdateEstimatedEffortSchema),
|
|
38
|
+
}
|
|
39
|
+
];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { defaultToolsetManager } from '../common/toolsetManager.js';
|
|
2
|
+
// ไฟๆๅๅๅ
ผๅฎน็ๆฅๅฃ
|
|
3
|
+
export const getAllTools = () => defaultToolsetManager.getAllTools();
|
|
4
|
+
// ๆฐๅขๆๅทฅๅ
ท้่ทๅๅทฅๅ
ท็ๆฅๅฃ
|
|
5
|
+
export const getToolsByToolset = (toolsetName) => defaultToolsetManager.getToolsByToolset(toolsetName);
|
|
6
|
+
// ๆฐๅข่ทๅๅฏ็จๅทฅๅ
ท็ๆฅๅฃ
|
|
7
|
+
export const getEnabledTools = (enabledToolsets) => defaultToolsetManager.getEnabledTools(enabledToolsets);
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
3
|
+
import * as types from '../common/types.js';
|
|
4
|
+
export const getOrganizationTools = () => [
|
|
5
|
+
{
|
|
6
|
+
name: "get_current_organization_info",
|
|
7
|
+
description: "Get information about the current user and organization based on the token. In the absence of an explicitly specified organization ID, this result will take precedence.",
|
|
8
|
+
inputSchema: zodToJsonSchema(z.object({})),
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: "get_user_organizations",
|
|
12
|
+
description: "Get the list of organizations the current user belongs to",
|
|
13
|
+
inputSchema: zodToJsonSchema(z.object({})),
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: "get_current_user",
|
|
17
|
+
description: "Get information about the current user based on the token. In the absence of an explicitly specified user ID, this result will take precedence.",
|
|
18
|
+
inputSchema: zodToJsonSchema(z.object({})),
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: "list_organization_departments",
|
|
22
|
+
description: "Get the list of departments in an organization",
|
|
23
|
+
inputSchema: zodToJsonSchema(types.GetOrganizationDepartmentsSchema),
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: "get_organization_department_info",
|
|
27
|
+
description: "Get information about a department in an organization",
|
|
28
|
+
inputSchema: zodToJsonSchema(types.GetOrganizationDepartmentInfoSchema),
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: "get_organization_department_ancestors",
|
|
32
|
+
description: "Get the ancestors of a department in an organization",
|
|
33
|
+
inputSchema: zodToJsonSchema(types.GetOrganizationDepartmentAncestorsSchema),
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: "list_organization_members",
|
|
37
|
+
description: "list user members in an organization",
|
|
38
|
+
inputSchema: zodToJsonSchema(types.GetOrganizationMembersSchema),
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: "get_organization_member_info",
|
|
42
|
+
description: "Get information about a member in an organization",
|
|
43
|
+
inputSchema: zodToJsonSchema(types.GetOrganizationMemberInfoSchema),
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "get_organization_member_info_by_user_id",
|
|
47
|
+
description: "Get information about a member in an organization by user ID",
|
|
48
|
+
inputSchema: zodToJsonSchema(types.GetOrganizationMemberByUserIdInfoSchema),
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "search_organization_members",
|
|
52
|
+
description: "[Organization Management] Search for organization members",
|
|
53
|
+
inputSchema: zodToJsonSchema(types.SearchOrganizationMembersSchema),
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "list_organization_roles",
|
|
57
|
+
description: "[Organization Management] List organization roles",
|
|
58
|
+
inputSchema: zodToJsonSchema(types.ListOrganizationRolesSchema),
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: "get_organization_role",
|
|
62
|
+
description: "[Organization Management] Get information about an organization role",
|
|
63
|
+
inputSchema: zodToJsonSchema(types.GetOrganizationRoleSchema),
|
|
64
|
+
},
|
|
65
|
+
];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
2
|
+
import * as types from '../common/types.js';
|
|
3
|
+
export const getPackageManagementTools = () => [
|
|
4
|
+
// Package Repository Operations
|
|
5
|
+
{
|
|
6
|
+
name: "list_package_repositories",
|
|
7
|
+
description: "[Packages Management] List package repositories in an organization with filtering options",
|
|
8
|
+
inputSchema: zodToJsonSchema(types.ListPackageRepositoriesSchema),
|
|
9
|
+
},
|
|
10
|
+
// Package Artifact Operations
|
|
11
|
+
{
|
|
12
|
+
name: "list_artifacts",
|
|
13
|
+
description: "[Packages Management] List artifacts in a package repository with filtering options",
|
|
14
|
+
inputSchema: zodToJsonSchema(types.ListArtifactsSchema),
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "get_artifact",
|
|
18
|
+
description: "[Packages Management] Get information about a single artifact in a package repository",
|
|
19
|
+
inputSchema: zodToJsonSchema(types.GetArtifactSchema),
|
|
20
|
+
},
|
|
21
|
+
];
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
3
|
+
import * as types from '../common/types.js';
|
|
4
|
+
export const getPipelineTools = () => [
|
|
5
|
+
{
|
|
6
|
+
name: "get_pipeline",
|
|
7
|
+
description: "[Pipeline Management] Get details of a specific pipeline in an organization",
|
|
8
|
+
inputSchema: zodToJsonSchema(types.GetPipelineSchema),
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: "list_pipelines",
|
|
12
|
+
description: "[Pipeline Management] Get a list of pipelines in an organization with filtering options",
|
|
13
|
+
inputSchema: zodToJsonSchema(types.ListPipelinesSchema),
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: "generate_pipeline_yaml",
|
|
17
|
+
description: "[Pipeline Management] Generate only the YAML configuration for a pipeline without creating it.\n\n" +
|
|
18
|
+
"**๐ Use Cases:**\n" +
|
|
19
|
+
"- Preview YAML before creating pipeline\n" +
|
|
20
|
+
"- Generate YAML for manual deployment\n" +
|
|
21
|
+
"- Debug pipeline configuration\n\n" +
|
|
22
|
+
"**๐ Recommended Workflow:**\n" +
|
|
23
|
+
"1. ๐ฏ Parse user description for explicit parameters\n" +
|
|
24
|
+
"2. ๐ If missing context, prefer IDE detection (terminal + file reading) over API calls\n" +
|
|
25
|
+
"3. ๐ Call this tool with collected parameters\n\n" +
|
|
26
|
+
"**๐ก Parameter Collection Strategy:**\n" +
|
|
27
|
+
"- For QUICK pipeline creation: Use IDE detection (git config, file reading)\n" +
|
|
28
|
+
"- For PRECISE parameter selection: Consider list_repositories, list_service_connections when needed\n" +
|
|
29
|
+
"- Balance efficiency vs. accuracy based on user intent\n\n" +
|
|
30
|
+
"**โก Built-in capabilities:** Handles default service connections internally, auto-extracts project name from repo URL",
|
|
31
|
+
inputSchema: zodToJsonSchema(types.CreatePipelineFromDescriptionSchema),
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "create_pipeline_from_description",
|
|
35
|
+
description: "[Pipeline Management] Create a pipeline using structured parameters extracted from user descriptions and environment context.\n\n" +
|
|
36
|
+
"**๐ง Built-in Capabilities:**\n" +
|
|
37
|
+
"- โ
Automatically retrieves default service connection IDs when not specified\n" +
|
|
38
|
+
"- โ
Handles repository and service connection logic internally\n" +
|
|
39
|
+
"- โ
Auto-extracts project name from repository URL (git@host:org/repo.git โ repo)\n" +
|
|
40
|
+
"- โ
Supports both IDE detection and explicit parameter specification\n\n" +
|
|
41
|
+
"**๐ Recommended Workflow:**\n" +
|
|
42
|
+
"1. ๐ฏ PARSE user description for explicit parameters\n" +
|
|
43
|
+
"2. ๐ DETECT missing info from IDE environment FIRST:\n" +
|
|
44
|
+
" - Run `git config --get remote.origin.url` โ repoUrl\n" +
|
|
45
|
+
" - Run `git branch --show-current` โ branch\n" +
|
|
46
|
+
" - Auto-extract serviceName from repoUrl\n" +
|
|
47
|
+
" - Check project files for tech stack:\n" +
|
|
48
|
+
" * pom.xml โ buildLanguage='java', buildTool='maven'\n" +
|
|
49
|
+
" * build.gradle โ buildLanguage='java', buildTool='gradle'\n" +
|
|
50
|
+
" * package.json + package-lock.json โ buildLanguage='nodejs', buildTool='npm'\n" +
|
|
51
|
+
" * package.json + yarn.lock โ buildLanguage='nodejs', buildTool='yarn'\n" +
|
|
52
|
+
" * requirements.txt โ buildLanguage='python', buildTool='pip'\n" +
|
|
53
|
+
" * go.mod โ buildLanguage='go', buildTool='go'\n" +
|
|
54
|
+
" * *.csproj โ buildLanguage='dotnet', buildTool='dotnet'\n" +
|
|
55
|
+
"3. ๐ CALL this tool with collected parameters\n\n" +
|
|
56
|
+
"**โ ๏ธ Important Guidelines:**\n" +
|
|
57
|
+
"- DO NOT call list_repositories unless user explicitly asks to choose from available repositories\n" +
|
|
58
|
+
"- DO NOT call list_service_connections unless user explicitly asks to choose from available connections\n" +
|
|
59
|
+
"- ALWAYS try IDE detection first before making any API calls\n" +
|
|
60
|
+
"- If IDE detection fails, THEN consider API calls as fallback\n\n" +
|
|
61
|
+
"**๐ฏ Parameter Priority:**\n" +
|
|
62
|
+
"1. ๐ค USER EXPLICIT (highest) - buildLanguage, buildTool, versions, deployTarget\n" +
|
|
63
|
+
"2. ๐ IDE DETECTION (preferred) - repoUrl, branch, serviceName, tech stack\n" +
|
|
64
|
+
"3. ๐ค TOOL DEFAULTS (automatic) - serviceConnectionId, organizationId\n\n" +
|
|
65
|
+
"**๐ IDE Detection Rules (MUST TRY FIRST):**\n" +
|
|
66
|
+
"- ๐ Repository: `git config --get remote.origin.url` โ repoUrl\n" +
|
|
67
|
+
"- ๐ฟ Branch: `git branch --show-current` โ branch\n" +
|
|
68
|
+
"- ๐ท๏ธ Service Name: Auto-extracted from repoUrl (git@host:org/repo.git โ repo)\n" +
|
|
69
|
+
"- โ Java Maven: pom.xml exists โ buildLanguage='java', buildTool='maven'\n" +
|
|
70
|
+
"- ๐๏ธ Java Gradle: build.gradle exists โ buildLanguage='java', buildTool='gradle'\n" +
|
|
71
|
+
"- ๐ข Node npm: package.json + package-lock.json โ buildLanguage='nodejs', buildTool='npm'\n" +
|
|
72
|
+
"- ๐งถ Node yarn: package.json + yarn.lock โ buildLanguage='nodejs', buildTool='yarn'\n" +
|
|
73
|
+
"- ๐ Python: requirements.txt โ buildLanguage='python', buildTool='pip'\n" +
|
|
74
|
+
"- ๐น Go: go.mod โ buildLanguage='go', buildTool='go'\n" +
|
|
75
|
+
"- ๐ .NET: *.csproj โ buildLanguage='dotnet', buildTool='dotnet'\n\n" +
|
|
76
|
+
"**๐ Version Detection (from project files):**\n" +
|
|
77
|
+
"- โ JDK: Read pom.xml <maven.compiler.source> โ jdkVersion\n" +
|
|
78
|
+
"- ๐ข Node: Read package.json engines.node โ nodeVersion\n" +
|
|
79
|
+
"- ๐ Python: Read .python-version, pyproject.toml โ pythonVersion\n" +
|
|
80
|
+
"- ๐น Go: Read go.mod go directive โ goVersion\n\n" +
|
|
81
|
+
"**๐ฏ Deployment Parsing:**\n" +
|
|
82
|
+
"- '้จ็ฝฒๅฐไธปๆบ/VM/่ๆๆบ' โ deployTarget='vm'\n" +
|
|
83
|
+
"- '้จ็ฝฒๅฐKubernetes/K8s' โ deployTarget='k8s'\n" +
|
|
84
|
+
"- 'ๅชๆๅปบ/ๆๅปบๅถๅ' โ deployTarget='none'\n\n" +
|
|
85
|
+
"**๐ Service Connection Strategy (3 scenarios):**\n" +
|
|
86
|
+
"1. **User specifies ID explicitly** (e.g., 'ไฝฟ็จๆๅก่ฟๆฅID abc123')\n" +
|
|
87
|
+
" โ โ
Pass serviceConnectionId=abc123 directly, NO list_service_connections call needed\n" +
|
|
88
|
+
"2. **User doesn't specify any ID** (most common case)\n" +
|
|
89
|
+
" โ โ
Pass serviceConnectionId=null, tool will auto-retrieve default ID internally\n" +
|
|
90
|
+
"3. **User wants to choose from available options** (e.g., 'ๆพ็คบๅฏ็จ็ๆๅก่ฟๆฅ่ฎฉๆ้ๆฉ')\n" +
|
|
91
|
+
" โ ๐ Call list_service_connections first, then let user choose, then create pipeline\n\n" +
|
|
92
|
+
"**๐ค When to Use Other Tools:**\n" +
|
|
93
|
+
"- User asks to \"select from available repositories\" โ use list_repositories first\n" +
|
|
94
|
+
"- User wants to \"choose from service connections\" โ use list_service_connections first\n" +
|
|
95
|
+
"- User wants to see options before deciding โ gather info first, then create\n" +
|
|
96
|
+
"- For quick creation with current repo โ directly use IDE detection\n\n" +
|
|
97
|
+
"**โ
Required:** organizationId, name, buildLanguage, buildTool",
|
|
98
|
+
inputSchema: zodToJsonSchema(types.CreatePipelineFromDescriptionSchema),
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: "smart_list_pipelines",
|
|
102
|
+
description: "[Pipeline Management] Intelligently search pipelines with natural language time references (e.g., 'today', 'this week')",
|
|
103
|
+
inputSchema: zodToJsonSchema(z.object({
|
|
104
|
+
organizationId: z.string().describe("Organization ID"),
|
|
105
|
+
timeReference: z.string().optional().describe("Natural language time reference such as 'today', 'yesterday', 'this week', 'last month', etc."),
|
|
106
|
+
pipelineName: z.string().optional().describe("Pipeline name filter"),
|
|
107
|
+
statusList: z.string().optional().describe("Pipeline status list, comma separated (SUCCESS,RUNNING,FAIL,CANCELED,WAITING)"),
|
|
108
|
+
perPage: z.number().int().min(1).max(30).default(10).optional().describe("Number of items per page"),
|
|
109
|
+
page: z.number().int().min(1).default(1).optional().describe("Page number")
|
|
110
|
+
})),
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: "create_pipeline_run",
|
|
114
|
+
description: "[Pipeline Management] Run a pipeline with flexible parameters.\n\n" +
|
|
115
|
+
"**โ ๏ธ IMPORTANT: DO NOT provide 'params' parameter unless user explicitly provides a JSON string. Use simplified parameters instead!**\n\n" +
|
|
116
|
+
"**๐ฏ Most Common Use Cases:**\n" +
|
|
117
|
+
"1. ๐ฟ Run with specific branch: Use 'branch' parameter\n" +
|
|
118
|
+
" - User: 'Run pipeline with dev branch' โ { branch: 'dev' }\n" +
|
|
119
|
+
" - User: '็จmasterๅๆฏ่ฟ่กๆตๆฐด็บฟ' โ { branch: 'master' }\n" +
|
|
120
|
+
" - System will automatically fetch repository URLs from pipeline config\n\n" +
|
|
121
|
+
"2. ๐ท๏ธ Run with specific tag: Use 'tag' parameter\n" +
|
|
122
|
+
" - User: 'Run pipeline with v1.0 tag' โ { tag: 'v1.0' }\n" +
|
|
123
|
+
" - User: '็จv2.0ๆ ็ญพ่ฟ่กๆตๆฐด็บฟ' โ { tag: 'v2.0' }\n" +
|
|
124
|
+
" - System will automatically fetch repository URLs from pipeline config\n\n" +
|
|
125
|
+
"3. ๐ Run with multiple branches: Use 'branches' parameter\n" +
|
|
126
|
+
" - User: 'Run pipeline with main and dev branches' โ { branches: ['main', 'dev'] }\n\n" +
|
|
127
|
+
"4. ๐๏ธ Run with specific repo branch/tag: Use 'repositories' parameter\n" +
|
|
128
|
+
" - { repositories: [{ url: 'https://codeup.aliyun.com/org/repo.git', branch: 'feature-x' }] }\n" +
|
|
129
|
+
" - { repositories: [{ url: 'https://codeup.aliyun.com/org/repo.git', tag: 'v1.0' }] }\n\n" +
|
|
130
|
+
"5. ๐ฆ Run with environment variables: Use 'environmentVariables' parameter\n" +
|
|
131
|
+
" - { environmentVariables: { 'ENV': 'production', 'VERSION': '1.0.0' } }\n\n" +
|
|
132
|
+
"**๐ Parameter Guide:**\n" +
|
|
133
|
+
"- ๐ฟ branch: Single branch name (most common)\n" +
|
|
134
|
+
"- ๐ท๏ธ tag: Single tag name (for release versions)\n" +
|
|
135
|
+
"- ๐ branches: Multiple branches for branch mode\n" +
|
|
136
|
+
"- ๐๏ธ repositories: Specific branch/tag per repository\n" +
|
|
137
|
+
"- ๐ฆ environmentVariables: Key-value pairs for pipeline variables\n" +
|
|
138
|
+
"- ๐ comment: Add a note for this run\n" +
|
|
139
|
+
"- ๐ง params: [Advanced] ONLY use if user provides raw JSON string\n\n" +
|
|
140
|
+
"**โก Smart Behavior:**\n" +
|
|
141
|
+
"- If only 'branch' or 'tag' is provided โ automatically fetches repo URLs from pipeline and generates runningBranchs/runningTags\n" +
|
|
142
|
+
"- If 'branches' is provided โ automatically enables branch mode\n" +
|
|
143
|
+
"- If 'params' is provided โ all other parameters are ignored\n\n" +
|
|
144
|
+
"**โ DO NOT:**\n" +
|
|
145
|
+
"- Generate 'params' parameter yourself\n" +
|
|
146
|
+
"- Convert simplified parameters to 'params' JSON\n" +
|
|
147
|
+
"- The system will handle param generation automatically",
|
|
148
|
+
inputSchema: zodToJsonSchema(types.CreatePipelineRunSchema),
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: "get_latest_pipeline_run",
|
|
152
|
+
description: "[Pipeline Management] Get information about the latest pipeline run",
|
|
153
|
+
inputSchema: zodToJsonSchema(types.GetLatestPipelineRunSchema),
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: "get_pipeline_run",
|
|
157
|
+
description: "[Pipeline Management] Get details of a specific pipeline run instance",
|
|
158
|
+
inputSchema: zodToJsonSchema(types.GetPipelineRunSchema),
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: "list_pipeline_runs",
|
|
162
|
+
description: "[Pipeline Management] Get a list of pipeline run instances with filtering options",
|
|
163
|
+
inputSchema: zodToJsonSchema(types.ListPipelineRunsSchema),
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: "list_pipeline_jobs_by_category",
|
|
167
|
+
description: "[Pipeline Management] Get pipeline execution tasks by category. Currently only supports DEPLOY category.",
|
|
168
|
+
inputSchema: zodToJsonSchema(types.ListPipelineJobsByCategorySchema),
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: "list_pipeline_job_historys",
|
|
172
|
+
description: "[Pipeline Management] Get the execution history of a pipeline task. Retrieve all execution records for a specific task in a pipeline.",
|
|
173
|
+
inputSchema: zodToJsonSchema(types.ListPipelineJobHistorysSchema),
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: "execute_pipeline_job_run",
|
|
177
|
+
description: "[Pipeline Management] Manually run a pipeline task. Start a specific job in a pipeline run instance.",
|
|
178
|
+
inputSchema: zodToJsonSchema(types.ExecutePipelineJobRunSchema),
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: "get_pipeline_job_run_log",
|
|
182
|
+
description: "[Pipeline Management] Get the execution logs of a pipeline job. Retrieve the log content for a specific job in a pipeline run.",
|
|
183
|
+
inputSchema: zodToJsonSchema(types.GetPipelineJobRunLogSchema),
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
name: "update_pipeline",
|
|
187
|
+
description: "[Pipeline Management] Update an existing pipeline in Yunxiao by pipelineId. Use this to update pipeline YAML, stages, jobs, etc.",
|
|
188
|
+
inputSchema: zodToJsonSchema(types.UpdatePipelineSchema),
|
|
189
|
+
},
|
|
190
|
+
];
|