@cnbcool/mcp-server
Version:
CNB MCP Server. A comprehensive MCP server that provides seamless integration to the CNB's API(https://cnb.cool), offering a wide range of tools for repository management, pipelines operations and collaboration features
50 lines (49 loc) • 2.47 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToolNames = void 0;
var ToolNames;
(function (ToolNames) {
// 组织工具
ToolNames["LIST_GROUPS"] = "cnb_list_groups";
ToolNames["LIST_SUB_GROUPS"] = "cnb_list_sub_groups";
ToolNames["GET_GROUP"] = "cnb_get_group";
ToolNames["CREATE_GROUP"] = "cnb_create_group";
// 仓库工具
ToolNames["LIST_REPOSITORIES"] = "cnb_list_repositories";
ToolNames["LIST_GROUP_REPOSITORIES"] = "cnb_list_group_repositories";
ToolNames["GET_CURRENT_REPOSITORY"] = "cnb_get_current_repository";
ToolNames["GET_REPOSITORY"] = "cnb_get_repository";
ToolNames["CREATE_REPOSITORY"] = "cnb_create_repository";
// ISSUE 工具
ToolNames["LIST_ISSUES"] = "cnb_list_issues";
ToolNames["GET_ISSUE"] = "cnb_get_issue";
ToolNames["CREATE_ISSUE"] = "cnb_create_issue";
ToolNames["UPDATE_ISSUE"] = "cnb_update_issue";
ToolNames["LIST_ISSUE_COMMENTS"] = "cnb_list_issue_comments";
ToolNames["CREATE_ISSUE_COMMENT"] = "cnb_create_issue_comment";
ToolNames["UPDATE_ISSUE_COMMENT"] = "cnb_update_issue_comment";
ToolNames["LIST_ISSUE_LABELS"] = "cnb_list_issue_labels";
ToolNames["ADD_ISSUE_LABELS"] = "cnb_add_issue_labels";
ToolNames["SET_ISSUE_LABELS"] = "cnb_set_issue_labels";
ToolNames["CLEAR_ISSUE_LABELS"] = "cnb_clear_issue_labels";
ToolNames["REMOVE_ISSUE_LABEL"] = "cnb_remove_issue_label";
// 合并请求工具
ToolNames["LIST_PULLS"] = "cnb_list_pulls";
ToolNames["GET_PULL"] = "cnb_get_pull";
ToolNames["CREATE_PULL"] = "cnb_create_pull";
ToolNames["UPDATE_PULL"] = "cnb_update_pull";
ToolNames["MERGE_PULL"] = "cnb_merge_pull";
ToolNames["LIST_PULL_COMMENTS"] = "cnb_list_pull_comments";
ToolNames["CREATE_PULL_COMMENT"] = "cnb_create_pull_comment";
// 云原生构建工具
ToolNames["BUILD_LOGS_DELETE"] = "cnb_buildLogsDelete";
ToolNames["BUILD_RUNNER_DOWNLOAD_LOG"] = "cnb_buildRunnerDownloadLog";
ToolNames["GET_BUILD_LOGS"] = "cnb_getBuildLogs";
ToolNames["GET_BUILD_STAGE"] = "cnb_getBuildStage";
ToolNames["GET_BUILD_STATUS"] = "cnb_getBuildStatus";
ToolNames["START_BUILD"] = "cnb_startBuild";
ToolNames["STOP_BUILD"] = "cnb_stopBuild";
// 云原生开发工具
ToolNames["LIST_WORKSPACES"] = "cnb_list_workspaces";
ToolNames["DELETE_WORKSPACE"] = "cnb_delete_workspace";
})(ToolNames || (exports.ToolNames = ToolNames = {}));