@catchmexz/fedin-vibe-mcp-server 0.1.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 +202 -0
- package/dist/common/errors.js +69 -0
- package/dist/common/modularTemplates.js +483 -0
- package/dist/common/pipelineTemplates.js +19 -0
- package/dist/common/types.js +42 -0
- package/dist/common/utils.js +347 -0
- package/dist/common/version.js +1 -0
- package/dist/index.js +217 -0
- package/dist/operations/appstack/appOrchestrations.js +235 -0
- package/dist/operations/appstack/appTags.js +147 -0
- package/dist/operations/appstack/appTemplates.js +67 -0
- package/dist/operations/appstack/applications.js +154 -0
- package/dist/operations/appstack/changeOrders.js +293 -0
- package/dist/operations/appstack/changeRequests.js +263 -0
- package/dist/operations/appstack/deploymentResources.js +265 -0
- package/dist/operations/appstack/globalVars.js +200 -0
- package/dist/operations/appstack/releaseWorkflows.js +178 -0
- package/dist/operations/appstack/variableGroups.js +216 -0
- package/dist/operations/codeup/branches.js +144 -0
- package/dist/operations/codeup/changeRequestComments.js +89 -0
- package/dist/operations/codeup/changeRequests.js +203 -0
- package/dist/operations/codeup/compare.js +26 -0
- package/dist/operations/codeup/files.js +483 -0
- package/dist/operations/codeup/repositories.js +83 -0
- package/dist/operations/codeup/types.js +372 -0
- package/dist/operations/flow/hostGroup.js +48 -0
- package/dist/operations/flow/pipeline.js +530 -0
- package/dist/operations/flow/pipelineJob.js +113 -0
- package/dist/operations/flow/serviceConnection.js +23 -0
- package/dist/operations/flow/types.js +377 -0
- package/dist/operations/git/git-repository.js +334 -0
- package/dist/operations/git/index.js +210 -0
- package/dist/operations/organization/members.js +94 -0
- package/dist/operations/organization/organization.js +73 -0
- package/dist/operations/organization/types.js +111 -0
- package/dist/operations/packages/artifacts.js +64 -0
- package/dist/operations/packages/repositories.js +35 -0
- package/dist/operations/packages/types.js +56 -0
- package/dist/operations/projex/project.js +206 -0
- package/dist/operations/projex/sprint.js +90 -0
- package/dist/operations/projex/types.js +390 -0
- package/dist/operations/projex/workitem.js +452 -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 +43 -0
- package/dist/tool-handlers/appstack-global-vars.js +43 -0
- package/dist/tool-handlers/appstack-orchestrations.js +49 -0
- package/dist/tool-handlers/appstack-tags.js +43 -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/code-management.js +174 -0
- package/dist/tool-handlers/git/branch-operations.js +1 -0
- package/dist/tool-handlers/git/clone-repository.js +36 -0
- package/dist/tool-handlers/git/create-branch.js +26 -0
- package/dist/tool-handlers/git/get-repository-status.js +33 -0
- package/dist/tool-handlers/git/pull-repository.js +27 -0
- package/dist/tool-handlers/git/push-repository.js +37 -0
- package/dist/tool-handlers/git/switch-branch.js +25 -0
- package/dist/tool-handlers/index.js +43 -0
- package/dist/tool-handlers/organization.js +90 -0
- package/dist/tool-handlers/packages.js +32 -0
- package/dist/tool-handlers/pipeline.js +272 -0
- package/dist/tool-handlers/project-management.js +152 -0
- package/dist/tool-handlers/service-connections.js +16 -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 +30 -0
- package/dist/tool-registry/appstack-global-vars.js +30 -0
- package/dist/tool-registry/appstack-orchestrations.js +35 -0
- package/dist/tool-registry/appstack-tags.js +30 -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/code-management.js +89 -0
- package/dist/tool-registry/git-repository.js +41 -0
- package/dist/tool-registry/index.js +6 -0
- package/dist/tool-registry/organization.js +65 -0
- package/dist/tool-registry/packages.js +21 -0
- package/dist/tool-registry/pipeline.js +157 -0
- package/dist/tool-registry/project-management.js +108 -0
- package/dist/tool-registry/service-connections.js +10 -0
- package/package.json +39 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
2
|
+
import { GetMachineDeployLogRequestSchema, AddHostListToHostGroupRequestSchema, AddHostListToDeployGroupRequestSchema, DeleteHostListFromDeployGroupRequestSchema, DeleteHostListFromHostGroupRequestSchema } from '../operations/appstack/deploymentResources.js';
|
|
3
|
+
// Export all appstack deployment resources tools
|
|
4
|
+
export const getAppStackDeploymentResourceTools = () => [
|
|
5
|
+
{
|
|
6
|
+
name: 'get_machine_deploy_log',
|
|
7
|
+
description: '[application delivery] Get machine deployment log',
|
|
8
|
+
inputSchema: zodToJsonSchema(GetMachineDeployLogRequestSchema),
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: 'add_host_list_to_host_group',
|
|
12
|
+
description: '[application delivery] Add host list to host group',
|
|
13
|
+
inputSchema: zodToJsonSchema(AddHostListToHostGroupRequestSchema),
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'add_host_list_to_deploy_group',
|
|
17
|
+
description: '[application delivery] Add host list to deploy group',
|
|
18
|
+
inputSchema: zodToJsonSchema(AddHostListToDeployGroupRequestSchema),
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'delete_host_list_from_deploy_group',
|
|
22
|
+
description: '[application delivery] Delete host list from deploy group',
|
|
23
|
+
inputSchema: zodToJsonSchema(DeleteHostListFromDeployGroupRequestSchema),
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'delete_host_list_from_host_group',
|
|
27
|
+
description: '[application delivery] Delete host list from host group',
|
|
28
|
+
inputSchema: zodToJsonSchema(DeleteHostListFromHostGroupRequestSchema),
|
|
29
|
+
},
|
|
30
|
+
];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
2
|
+
import { CreateGlobalVarRequestSchema, DeleteGlobalVarRequestSchema, GetGlobalVarRequestSchema, UpdateGlobalVarRequestSchema, ListGlobalVarsRequestSchema } from '../operations/appstack/globalVars.js';
|
|
3
|
+
// Export all appstack global variables tools
|
|
4
|
+
export const getAppStackGlobalVarTools = () => [
|
|
5
|
+
{
|
|
6
|
+
name: 'create_global_var',
|
|
7
|
+
description: '[application delivery] Create a global variable group',
|
|
8
|
+
inputSchema: zodToJsonSchema(CreateGlobalVarRequestSchema),
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: 'delete_global_var',
|
|
12
|
+
description: '[application delivery] Delete a global variable group',
|
|
13
|
+
inputSchema: zodToJsonSchema(DeleteGlobalVarRequestSchema),
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'get_global_var',
|
|
17
|
+
description: '[application delivery] Get a global variable group',
|
|
18
|
+
inputSchema: zodToJsonSchema(GetGlobalVarRequestSchema),
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'update_global_var',
|
|
22
|
+
description: '[application delivery] Update a global variable group',
|
|
23
|
+
inputSchema: zodToJsonSchema(UpdateGlobalVarRequestSchema),
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'list_global_vars',
|
|
27
|
+
description: '[application delivery] List global variable groups',
|
|
28
|
+
inputSchema: zodToJsonSchema(ListGlobalVarsRequestSchema),
|
|
29
|
+
}
|
|
30
|
+
];
|
|
@@ -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,30 @@
|
|
|
1
|
+
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
2
|
+
import { CreateAppTagRequestSchema, UpdateAppTagRequestSchema, DeleteAppTagRequestSchema, 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: 'delete_app_tag',
|
|
17
|
+
description: '[application delivery] Delete an application tag',
|
|
18
|
+
inputSchema: zodToJsonSchema(DeleteAppTagRequestSchema),
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'search_app_tags',
|
|
22
|
+
description: '[application delivery] Search application tags',
|
|
23
|
+
inputSchema: zodToJsonSchema(SearchAppTagRequestSchema),
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'update_app_tag_bind',
|
|
27
|
+
description: '[application delivery] Update application tag bindings',
|
|
28
|
+
inputSchema: zodToJsonSchema(UpdateAppTagBindRequestSchema),
|
|
29
|
+
}
|
|
30
|
+
];
|
|
@@ -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,89 @@
|
|
|
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: "push_files",
|
|
28
|
+
description: "[Code Management] Push files to a Codeup repository",
|
|
29
|
+
inputSchema: zodToJsonSchema(types.PushFilesSchema),
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "pull_files",
|
|
33
|
+
describe: "[Code Management] Pull files from a Codeup repository",
|
|
34
|
+
inputSchema: zodToJsonSchema(types.PullFilesSchema),
|
|
35
|
+
},
|
|
36
|
+
// Repository Operations
|
|
37
|
+
{
|
|
38
|
+
name: "create_repository",
|
|
39
|
+
description: "[Code Management] Create a new repository",
|
|
40
|
+
inputSchema: zodToJsonSchema(types.CreateRepositorySchema),
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: "get_repository",
|
|
44
|
+
description: "[Code Management] Get information about a Codeup repository",
|
|
45
|
+
inputSchema: zodToJsonSchema(types.GetRepositorySchema),
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "list_repositories",
|
|
49
|
+
description: "[Code Management] Get the CodeUp Repository List.\n" +
|
|
50
|
+
"\n" +
|
|
51
|
+
"A Repository serves as a unit for managing source code and is distinct from a Project.\n" +
|
|
52
|
+
"\n" +
|
|
53
|
+
"Use Case:\n" +
|
|
54
|
+
"\n" +
|
|
55
|
+
"View my repositories",
|
|
56
|
+
inputSchema: zodToJsonSchema(types.ListRepositoriesSchema),
|
|
57
|
+
},
|
|
58
|
+
// Change Request Operations
|
|
59
|
+
{
|
|
60
|
+
name: "get_change_request",
|
|
61
|
+
description: "[Code Management] Get information about a change request",
|
|
62
|
+
inputSchema: zodToJsonSchema(types.GetChangeRequestSchema),
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: "list_change_requests",
|
|
66
|
+
description: "[Code Management] List change requests",
|
|
67
|
+
inputSchema: zodToJsonSchema(types.ListChangeRequestsSchema),
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: "create_change_request",
|
|
71
|
+
description: "[Code Management] Create a new change request",
|
|
72
|
+
inputSchema: zodToJsonSchema(types.CreateChangeRequestSchema),
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: "create_change_request_comment",
|
|
76
|
+
description: "[Code Management] Create a comment on a change request",
|
|
77
|
+
inputSchema: zodToJsonSchema(types.CreateChangeRequestCommentSchema),
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "list_change_request_comments",
|
|
81
|
+
description: "[Code Management] List comments on a change request",
|
|
82
|
+
inputSchema: zodToJsonSchema(types.ListChangeRequestCommentsSchema),
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "list_change_request_patch_sets",
|
|
86
|
+
description: "[Code Management] List patch sets for a change request",
|
|
87
|
+
inputSchema: zodToJsonSchema(types.ListChangeRequestPatchSetsSchema),
|
|
88
|
+
},
|
|
89
|
+
];
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
2
|
+
import { CloneRepositorySchema, PushRepositorySchema, RepositoryStatusSchema, BranchOperationSchema, } from '../operations/git/index.js';
|
|
3
|
+
export function getGitRepositoryTools() {
|
|
4
|
+
return [
|
|
5
|
+
{
|
|
6
|
+
name: 'clone_repository',
|
|
7
|
+
description: '[Git Repository] ๅ
้ๆดไธชGitไปฃ็ ๅบๅฐๆฌๅฐใๆฏๆๆๅฎๅๆฏใ่ฎค่ฏไฟกๆฏ็ญ้้กนใ',
|
|
8
|
+
inputSchema: zodToJsonSchema(CloneRepositorySchema),
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: 'push_repository',
|
|
12
|
+
description: '[Git Repository] ๆจ้ๆดไธชๆฌๅฐไปฃ็ ๅบ็ๆดๆนๅฐ่ฟ็จไปๅบใๆฏๆ่ชๅจๆทปๅ ใๆไบคๅๆจ้ๆๆๆดๆนใ',
|
|
13
|
+
inputSchema: zodToJsonSchema(PushRepositorySchema),
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'pull_repository',
|
|
17
|
+
description: '[Git Repository] ไป่ฟ็จไปๅบๆๅๆๆฐๆดๆนๅฐๆฌๅฐไปฃ็ ๅบใ',
|
|
18
|
+
inputSchema: zodToJsonSchema(RepositoryStatusSchema),
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'get_repository_status',
|
|
22
|
+
description: '[Git Repository] ่ทๅๆฌๅฐGitไปฃ็ ๅบ็่ฏฆ็ป็ถๆไฟกๆฏ๏ผๅ
ๆฌๅๆฏใๆไบคๅๅฒใๆไปถๆดๆน็ญใ',
|
|
23
|
+
inputSchema: zodToJsonSchema(RepositoryStatusSchema),
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'create_branch',
|
|
27
|
+
description: '[Git Repository] ๅจๆฌๅฐไปฃ็ ๅบไธญๅๅปบๆฐๅๆฏใๅฏไปฅๆๅฎๅบไบๅชไธชๅๆฏๅๅปบใ',
|
|
28
|
+
inputSchema: zodToJsonSchema(BranchOperationSchema),
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'switch_branch',
|
|
32
|
+
description: '[Git Repository] ๅๆขๅฐๆๅฎ็ๅๆฏใๅฆๆๅๆฏไธๅญๅจไผๅฐ่ฏไป่ฟ็จๅๅปบใ',
|
|
33
|
+
inputSchema: zodToJsonSchema(BranchOperationSchema),
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'sync_with_codeup',
|
|
37
|
+
description: '[Git Repository] ๅๆญฅๆฌๅฐไปฃ็ ๅบไธ้ฟ้ไบCodeup่ฟ็จไปๅบใๅฎ็ฐๅๅๅๆญฅๅ่ฝใ',
|
|
38
|
+
inputSchema: zodToJsonSchema(BranchOperationSchema),
|
|
39
|
+
},
|
|
40
|
+
];
|
|
41
|
+
}
|
|
@@ -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,157 @@
|
|
|
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 optional parameters",
|
|
115
|
+
inputSchema: zodToJsonSchema(types.CreatePipelineRunSchema),
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: "get_latest_pipeline_run",
|
|
119
|
+
description: "[Pipeline Management] Get information about the latest pipeline run",
|
|
120
|
+
inputSchema: zodToJsonSchema(types.GetLatestPipelineRunSchema),
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: "get_pipeline_run",
|
|
124
|
+
description: "[Pipeline Management] Get details of a specific pipeline run instance",
|
|
125
|
+
inputSchema: zodToJsonSchema(types.GetPipelineRunSchema),
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: "list_pipeline_runs",
|
|
129
|
+
description: "[Pipeline Management] Get a list of pipeline run instances with filtering options",
|
|
130
|
+
inputSchema: zodToJsonSchema(types.ListPipelineRunsSchema),
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: "list_pipeline_jobs_by_category",
|
|
134
|
+
description: "[Pipeline Management] Get pipeline execution tasks by category. Currently only supports DEPLOY category.",
|
|
135
|
+
inputSchema: zodToJsonSchema(types.ListPipelineJobsByCategorySchema),
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: "list_pipeline_job_historys",
|
|
139
|
+
description: "[Pipeline Management] Get the execution history of a pipeline task. Retrieve all execution records for a specific task in a pipeline.",
|
|
140
|
+
inputSchema: zodToJsonSchema(types.ListPipelineJobHistorysSchema),
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: "execute_pipeline_job_run",
|
|
144
|
+
description: "[Pipeline Management] Manually run a pipeline task. Start a specific job in a pipeline run instance.",
|
|
145
|
+
inputSchema: zodToJsonSchema(types.ExecutePipelineJobRunSchema),
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: "get_pipeline_job_run_log",
|
|
149
|
+
description: "[Pipeline Management] Get the execution logs of a pipeline job. Retrieve the log content for a specific job in a pipeline run.",
|
|
150
|
+
inputSchema: zodToJsonSchema(types.GetPipelineJobRunLogSchema),
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: "update_pipeline",
|
|
154
|
+
description: "[Pipeline Management] Update an existing pipeline in Yunxiao by pipelineId. Use this to update pipeline YAML, stages, jobs, etc.",
|
|
155
|
+
inputSchema: zodToJsonSchema(types.UpdatePipelineSchema),
|
|
156
|
+
},
|
|
157
|
+
];
|