mcp-beisen-oneops
v0.1.0MCP server for Beisen OneOps/OneBuild CI platform (project/pipeline/cd-service lookup) via cookie auth
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
beisen_oneops_find_project
根据 git 地址查询对应的 ci 项目(OneBuild)。 自动识别 SSH / HTTP(S) 格式,原地址与互转格式并发查询,谁先命中谁返回, 另一个立即取消。一个 git 地址只对应一个 ci 项目。后端存储的 git 地址格式 不固定(可能存 SSH 也可能存 HTTP),故自动互转并发兜底,调用方只需传一种格式。 Args: git_url: git 仓库地址,SSH 或 HTTP(S) 均可,如 `git@gitlab.beisencorp.com:RecruitV6/AIInterview.git` 或 `http://gitlab.beisencorp.com/RecruitV6/AIInterview.git` Returns:…
| Parameter | Type | Description |
|---|---|---|
git_url * | string |
beisen_oneops_find_projects_by_product
根据产品名列表批量查询对应的 ci 项目(OneBuild)。 传入一个或多个产品名(如招聘各子产品),内部按 productName 多值查询并 循环分页拉取全部项目。一个产品可对应多个 ci 项目,全部返回。 Args: product_names: 产品名列表,如 `["AIInterview", "RecruitSocial", "RecruitCompus"]` Returns: {product_names, count, projects:[{id, name, git_url, product, name_with_namespace, description}]} product 为 {name, display_name};projects 的 id 用于后续 beisen_oneops_…
| Parameter | Type | Description |
|---|---|---|
product_names * | array |
beisen_oneops_list_pipelines
根据 ci 项目 id 查询流水线列表。 Args: project_id: ci 项目 id(由 beisen_oneops_find_project 返回) Returns: {project_id, count, pipelines:[{id, name, description}]} pipeline 的 id 用于后续 beisen_oneops_get_cd_service。
| Parameter | Type | Description |
|---|---|---|
project_id * | integer |
beisen_oneops_get_cd_service
根据流水线 id 查询 cd 服务名(两步查询)。 1. 用 pipelineId 换取真实 artifactNames 2. 用 artifactNames 查询按环境分组的服务+集群,服务名取 service.name Args: pipeline_id: 流水线 id(由 beisen_oneops_list_pipelines 返回) Returns: {pipeline_id, artifact_names, count, services} services 按服务名聚合: [{name, display_name, type, environments, clusters}]
| Parameter | Type | Description |
|---|---|---|
pipeline_id * | integer |