refactor(mcp): migrate to official MCP SDK

Summary

  • Migrates from third-party mark3labs/mcp-go v0.43.2 to official github.com/modelcontextprotocol/go-sdk v1.2.0
  • Official SDK is maintained by Anthropic and Google with better long-term support
  • Pure refactor with no functional changes - maintains identical STDIO transport behavior
  • Updates all tests to follow project guidelines (t.Parallel(), testify assertions)
  • Adds new test coverage for SDK-specific implementation details

Test plan

  • Run go test ./internal/commands/mcp/serve/... to verify all tests pass
  • Test MCP server functionality with glab mcp serve in Claude Code
  • Verify all existing glab commands are exposed as MCP tools
  • Confirm error handling works correctly (invalid arguments, command failures)
  • Check that pagination metadata structure is correct
Edited by Kai Armstrong

Merge request reports

Loading