Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
pelikhan
reviewed
Nov 16, 2025
Comment on lines
+538
to
+542
| Engine string `json:"engine,omitempty" jsonschema:"Override AI engine (claude, codex, copilot, custom)"` | ||
| PR bool `json:"pr,omitempty" jsonschema:"Create a pull request with the workflow changes"` | ||
| Dir string `json:"dir,omitempty" jsonschema:"Relative directory containing workflows (default: .github/workflows)"` | ||
| NoStopAfter bool `json:"no_stop_after,omitempty" jsonschema:"Remove any stop-after field from the updated workflow"` | ||
| StopAfter string `json:"stop_after,omitempty" jsonschema:"Override stop-after value in the updated workflow (e.g., '+48h', '2025-12-31 23:59:59')"` |
Contributor
Author
There was a problem hiding this comment.
Removed support for engine, pr, dir, no_stop_after, and stop_after flags. The update tool now only supports workflows, major, and force parameters. (4a014fd)
Copilot
AI
changed the title
[WIP] Add update tool to MCP server in Go
Add update tool to MCP server
Nov 16, 2025
…te tool Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
|
Agentic Changeset Generator triggered by this pull request. |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds an "update" tool to the MCP server that exposes the gh aw update command through the Model Context Protocol. The tool enables AI agents to update workflows from their source repositories and check for gh-aw extension updates.
Key Changes:
- Added
updatetool to MCP server with essential flags (workflows, major, force) - Updated MCP server help text to document the new tool
- Added comprehensive test coverage for the new tool's schema and functionality
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
pkg/cli/mcp_server.go |
Implements the update tool with handler that wraps the CLI command, following existing tool patterns (status, compile, logs, audit, mcp-inspect, add) |
pkg/cli/mcp_server_test.go |
Updates test expectations to include 7 tools (was 6) and adds schema validation test for the update tool |
.changeset/patch-add-update-tool-mcp.md |
Documents the change for release notes as a patch-level update |
.github/workflows/docs-noob-tester.lock.yml |
Pins Playwright MCP version from @latest to @1.56.1 (unrelated workflow recompilation) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
pelikhan
approved these changes
Nov 16, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Exposes the
gh aw updatecommand through the MCP protocol with essential update flags.Changes
pkg/cli/mcp_server.go: Addedupdatetool with handler that wraps the CLI commandworkflows,major,forcepkg/cli/mcp_server_test.go: Updated test expectationsTestMCPServer_ListToolsto expect 7 tools (was 6)TestMCPServer_UpdateToolSchemato validate tool schema and descriptionMCP Tool Arguments
{ "name": "update", "arguments": { "workflows": ["workflow-id"], "major": true, "force": true } }Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.