Remove MCP serve command and associated server functionality #1049
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Removes the
mcp servecommand and all associated MCP server functionality from the CLI as it duplicates capabilities available through other CLI commands.Changes
Removed Files:
pkg/cli/mcp_server.go- Complete MCP server implementation (525 lines)pkg/cli/mcp_server_test.go- Unit tests for MCP server functionalitypkg/cli/mcp_server_integration_test.go- Integration tests for MCP server functionalityUpdated Files:
pkg/cli/mcp.go- Removed serve subcommand registration and updated help textcmd/gh-aw/main_entry_test.go- Removed test checking for serve subcommand availabilitydocs/src/content/docs/tools/cli.md- Removed documentation sections formcp serveImpact
The
mcp servecommand provided an MCP server that exposed gh-aw CLI functionality as MCP tools. This functionality is now available through the existing CLI commands:mcp list- List MCP servers configured in workflowsmcp inspect- Inspect MCP servers and their capabilitiesmcp add- Add MCP tools to workflows from the registryAll existing MCP functionality for workflow management remains intact and fully functional. The removal eliminates code duplication while preserving the core MCP capabilities users need.
Verification
gh-aw mcp --helpno longer shows the serve commandOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.