GitLab 19.5 将智能体驱动的开发纳入 DevOps 平台治理
原题GitLab 19.5 Makes Agentic Development a Governed Part of the DevOps Platform
读前速览
GitLab 19.5 推出具备治理能力的智能体驱动开发平台,提供 MCP 服务器正式版、外部 AI 智能体集成,以及面向 DevOps 工作流的增强安全控制。
GitLab 19.5 正式推出 GitLab MCP 服务器,让外部 AI 智能体能够访问 GitLab 更广泛的工具目录。
Claude Code 和 Cursor 等兼容 MCP 的工具现在可以发现群组、检查 CI/CD 制品文件,以及启动或监控 GitLab Duo 智能体和工作流。管理员可以选择开放哪些工具集,从而以最小权限原则设计智能体。
外部 AI 智能体可以通过 GitLab CLI 集成到 GitLab 的 AI 治理能力中。
组织可以记录符合条件的智能体会话,包括用户、智能体、项目和时间信息;相关活动会与 GitLab 自有智能体的活动一同显示,审计事件也可以流式传输到 SIEM 系统。
GitLab Duo CLI 新增自动模式,可在提供细粒度控制选项的同时支持智能体自主执行。
智能体可以在每次操作前无需请求批准即可执行工具。此功能默认关闭,可在实例、群组和项目级别进行控制;明确标记为「始终拒绝」的工具仍会被拦截。
/goal 命令通过受治理的工作流委派,实现基于意图的开发。
开发者可以描述开放式目标,并让 GitLab Duo 将实现和验证工作委派给受治理的工作流。这推动开发模式转向由开发者表达意图、智能体执行多个步骤的运作方式。
GitLab Secrets Manager 和扩展后的安全配置档案加强了对代码仓库和凭证的控制。
基于 OpenBao 构建的 Secrets Manager 与现有权限体系集成,并将机密信息限定在作业范围内;集中式安全配置档案则支持自定义 Secret Detection 和 SAST 设置,无需在各项目中重复配置。
完整摘要
GitLab 19.5 于 October 15 发布,通过正式推出 GitLab MCP 服务器,将智能体驱动的软件开发置于其 DevOps 平台的核心位置。此次发布使 Claude Code 和 Cursor 等兼容 MCP 的工具能够访问 GitLab 更广泛的工具目录,并调用 GitLab Duo Agent Platform 智能体和工作流。新的治理控制功能让安全团队能够查看正在使用哪些智能体、由谁使用,以及它们针对哪些项目运行。正式版 GitLab MCP 服务器允许智能体发现群组、检查 CI/CD 制品文件,以及启动或监控 GitLab Duo 智能体和工作流;管理员可以选择要开放的 MCP 工具集。此次还引入了速率限制:Free 用户每分钟 60 个请求,Premium 和 Ultimate 用户每分钟 600 个请求。一项重要新增功能是将外部连接的智能体纳入 GitLab 的 AI 治理能力,让 Claude Code、Cursor 和 Codex 等工具能够通过 GitLab CLI 连接。/goal 命令现已正式推出,开发者可以描述开放式目标,并将其委派给受治理的工作流。GitLab Duo CLI 新增自动模式,可在执行工具时不再请求批准。此次发布还正式推出基于 OpenBao 构建的 GitLab Secrets Manager,并扩展安全配置档案,支持集中式自定义。
GitLab 19.5 于 10 月 15 日发布,将智能体式软件开发与治理置于平台核心,正式推出 GitLab MCP 服务器,并拓展外部 AI 智能体与 GitLab 交互的方式。GitLab 19.5, released on October 15, puts agentic software development and governance at the centre of the platform, making its GitLab MCP server generally available while expanding how external AI agents can interact with GitLab.
此次发布使 Claude Code 和 Cursor 等兼容 MCP 的工具能够访问 GitLab 更丰富的工具目录,并调用 GitLab Duo Agent Platform 智能体和工作流。同时,GitLab 也新增了用于管理这些外部智能体的控制功能,让安全团队能够了解正在使用哪些智能体、由谁使用,以及它们作用于哪些项目。The release allows MCP-compatible tools such as Claude Code and Cursor to access GitLab's broader tool catalogue and invoke GitLab Duo Agent Platform agents and flows. At the same time, GitLab is adding controls for governing those external agents, giving security teams visibility into which agents are being used, by whom, and against which projects.
正式发布的 GitLab MCP 服务器通过模型上下文协议(Model Context Protocol)为代理提供访问 GitLab 功能的能力。新增工具可帮助代理发现群组、检查单个 CI/CD 构件文件,以及启动或监控 GitLab Duo 代理和流程。管理员还可以选择要公开哪些 MCP 工具集,从而减少不必要的工具及其占用的上下文。The generally available GitLab MCP server provides agents with access to GitLab capabilities through the Model Context Protocol. New tools allow agents to discover groups, inspect individual CI/CD artifact files, and start or monitor GitLab Duo agents and flows. Administrators can also select which MCP toolsets are exposed, reducing unnecessary tools and the context they consume.
为代理提供所有可用工具,会增加上下文消耗,也会增加模型可能采取的操作数量。选择工具集是一种相对简单的最小权限代理设计方式。Giving an agent every available tool increases both context consumption and the number of actions the model could potentially take. Toolset selection provides a relatively simple form of least-privilege agent design.
GitLab.com 还对 MCP 实施速率限制:Free 用户每分钟 60 次请求,Premium 和 Ultimate 用户每分钟 600 次请求;重新连接和重试也计入限制。GitLab.com also introduces MCP rate limits of 60 requests per minute for Free users and 600 for Premium and Ultimate users, with reconnects and retries counting towards the limit.
一项更重要的新增功能,是能够将外部连接的智能体纳入 GitLab 的 AI 治理能力范围。One of the more significant additions is the ability to bring Externally Connected Agents into GitLab's AI Governance capabilities.
此前,AI 治理仪表板主要面向 GitLab Duo Agent Platform 代理。GitLab 19.5 支持通过 GitLab CLI 连接 Claude Code、Cursor 和 Codex 等工具。配置完成后,组织可以记录符合条件的代理会话,包括用户、代理、项目和时间,相关活动也会与 GitLab 自有代理的活动一同显示。审计事件也可以流式传输到 SIEM。Previously, the AI Governance Dashboard focused on GitLab Duo Agent Platform agents. GitLab 19.5 allows tools such as Claude Code, Cursor, and Codex to be connected through the GitLab CLI. Once configured, organisations can record qualifying agent sessions, including the user, agent, project, and timing, with activity appearing alongside GitLab's own agents. Audit events can also be streamed to a SIEM.
这是超越仅仅提供 MCP 端点的重要一步。连接带来能力,而治理决定了这种能力能否在组织层面安全地使用。This is an important step beyond simply providing an MCP endpoint. Connectivity creates capability; governance determines whether that capability can be safely used at organisational scale.
GitLab Duo CLI 还新增了自动模式,使代理无需为每条 Shell 命令、Git 操作或 MCP 调用请求批准即可执行工具。此功能默认处于禁用状态,可在实例、群组和项目级别进行控制;明确标记为“始终拒绝”的工具仍会被阻止。GitLab Duo CLI also gains an auto mode, allowing agents to execute tools without requesting approval for every shell command, Git operation, or MCP call. The feature is disabled by default and can be controlled at instance, group, and project levels, while tools explicitly marked Always Deny remain blocked.
/goal 命令现已正式开放使用,开发者可以借此描述开放式目标,并让 GitLab Duo 将实现和验证工作委派给受治理的流程。The /goal command is also now generally available, allowing developers to describe an open-ended objective and have GitLab Duo delegate implementation and verification to a governed flow.
这些功能共同推动 GitLab 向智能体运行模式迈进:开发者提供意图,智能体则在开发环境中执行多个步骤。Together, these features move GitLab closer to an agent operating model in which developers provide intent while agents execute multiple steps across the development environment.
这使得治理控制变得越来越重要:智能体越自主,就越难以依赖人工逐一批准每项操作。That makes the governance controls increasingly important: the more autonomous the agent becomes, the less practical it is to rely on a human approving every individual action.
此次发布还使 GitLab Secrets Manager 正式全面可用。它基于 OpenBao 构建,与现有的 GitLab 群组和项目权限集成,将机密限定为仅供需要它们的作业使用,并为机密操作生成审计事件。The release also makes GitLab Secrets Manager generally available. Built on OpenBao, it integrates with existing GitLab group and project permissions, scopes secrets to the jobs that require them, and generates audit events for secret operations.
GitLab 还在扩展安全配置配置文件,让组织能够集中自定义 Secret Detection 和 SAST 的排除路径、分析器镜像和全历史扫描等设置,而不必在每个项目的 CI/CD 文件中重复配置。GitLab is also expanding security configuration profiles, allowing organisations to centrally customise settings such as excluded paths, analyzer images and full-history scans for Secret Detection and SAST rather than repeating configuration in every project's CI/CD file.
这些变更通过加强对代理可能访问的代码仓库、凭据和流水线的控制,完善了代理功能。These changes complement the agent features by strengthening the controls around the repositories, credentials, and pipelines that agents may access.
GitLab的发展方向越来越像GitHub的策略:让编码智能体参与软件生命周期;但GitLab尤其强调将外部智能体接入其现有的 DevSecOps 治理模型。GitLab's direction increasingly resembles GitHub's strategy of turning coding agents into participants in the software lifecycle, but GitLab is placing particular emphasis on connecting external agents to its existing DevSecOps governance model.
GitHub 的生态系统受益于 GitHub Copilot 和编码代理的广泛覆盖,而 Cursor 和 Claude Code 等工具则更加侧重于开发者的本地环境。相比之下,GitLab 的 MCP 方法旨在让 DevOps 平台本身可供代理访问,包括代码仓库、议题、流水线、制品以及 GitLab 原生代理。GitHub's ecosystem benefits from the reach of GitHub Copilot and coding agents, while tools such as Cursor and Claude Code focus more heavily on the developer's local environment. GitLab's MCP approach instead attempts to make the DevOps platform itself agent-accessible, including repositories, issues, pipelines, artifacts, and GitLab-native agents.
GitLab关注的竞争焦点,正从哪个编码助手生成的代码更好,转向哪个平台能为自主智能体执行工程任务提供最安全、最实用的环境。The competitive question GitLab is looking at is moving beyond which coding assistant generates better code to which platform provides the safest and most useful environment for autonomous agents to perform engineering work.