Skip to content

feat: mcp server #5798

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jun 6, 2025
Merged

feat: mcp server #5798

merged 12 commits into from
Jun 6, 2025

Conversation

caarlos0
Copy link
Member

@caarlos0 caarlos0 commented May 29, 2025

I'm playing with the idea of having a MCP server for goreleaser, so things like Cursor and can use it to figure things out about the project.

Some ideas of tools we can add:

  • check configuration file
  • run a snapshot build
  • health check
  • init
  • list features being used
  • what else?

caarlos0 added 2 commits May 29, 2025 11:30
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 requested a review from Copilot May 29, 2025 20:10
@caarlos0 caarlos0 self-assigned this May 29, 2025
@caarlos0 caarlos0 added the enhancement New feature or request label May 29, 2025
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 29, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces an MCP server for GoReleaser to enable automated release workflows and configuration management via the Model Context Protocol.

  • Added MCP server dependency and indirect dependency updates in go.mod
  • Registered a new "mcp" command in cmd/root.go
  • Implemented the MCP server command and a "check_config" tool in cmd/mcp.go

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
go.mod Added required dependencies for the MCP server integration
cmd/root.go Integrated new MCP command into the root command list
cmd/mcp.go Implemented the MCP server command and defined the check_config tool

Copy link

codecov bot commented May 29, 2025

Codecov Report

Attention: Patch coverage is 15.18987% with 67 lines in your changes missing coverage. Please review.

Project coverage is 82.62%. Comparing base (fc72396) to head (365bf12).
Report is 12 commits behind head on main.

Files with missing lines Patch % Lines
cmd/mcp.go 14.10% 66 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5798      +/-   ##
==========================================
- Coverage   82.94%   82.62%   -0.33%     
==========================================
  Files         163      164       +1     
  Lines       16310    16389      +79     
==========================================
+ Hits        13529    13541      +12     
- Misses       2190     2256      +66     
- Partials      591      592       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

cloudflare-workers-and-pages bot commented May 30, 2025

Deploying goreleaser with  Cloudflare Pages  Cloudflare Pages

Latest commit: 365bf12
Status: ✅  Deploy successful!
Preview URL: https://fdcac1b2.goreleaser.pages.dev
Branch Preview URL: https://mcp.goreleaser.pages.dev

View logs

@pull-request-size pull-request-size bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 5, 2025
@caarlos0
Copy link
Member Author

caarlos0 commented Jun 6, 2025

gonna merge as is, can keep adding more stuff later.

@caarlos0 caarlos0 merged commit bdf6d41 into main Jun 6, 2025
15 of 17 checks passed
@caarlos0 caarlos0 deleted the mcp branch June 6, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant