Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Contributing to GitLab & MCP: Lessons from a Week of Upstream Open-Source Engineering

Описание и применение

Внедрение обновления комментариев, расширение инструментов MCP, консолидация создания пайплайнов и устранение утечек сообщений в GitLab Language Server повысили стабильность и удобство работы с AI‑ассистентами.

Задача

AI agents could not edit existing comments or refine feedback in-place in GitLab’s Model Context Protocol (MCP), leading to comment sprawl.

Результат

All enhancements were merged with 100% green CI pipelines, improving MCP functionality, reducing API fragmentation, and eliminating stale state leaks in the language server.

Рабочий процесс

  • Introduce update_note mutation and schema changes
  • Add list_user_events MCP tool and date type mapping
  • Consolidate merge‑request pipeline logic into save_pipeline
  • Add parent_iid to list_work_items and improve validation errors
  • Wrap pending wake operations with session IDs in gitlab-lsp
  • Run automated tests and CI to ensure 100% green pipelines

Доказательства

The MCP save_note tool allowed AI agents to post comments, reply to discussion threads, and resolve discussions on merge requests and work items. However, agents could not edit their existing comments or refine feedback in-place, leading to comment sprawl.

Источник

We introduced the update_note method to save_note

Источник

Bound the endpoint as list_user_events in the :core toolset with pagination, action, and target-type filters.

Источник

Consolidated the merge request trigger directly into SavePipelineService using an optional merge_request_iid parameter.

Источник

Wrapped pending wake operations with session IDs and implemented await flushMicrotasks() during session teardown.

Источник

Achieved a 100% green CI pipeline across all 82 jobs.

Источник

  • Дата записи: 2026-11-01T22:28:59.521Z