feat: CLI self-update command, update check, and wfctl mcp subcommand#203
Merged
feat: CLI self-update command, update check, and wfctl mcp subcommand#203
Conversation
Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for CLI tool to determine and apply updates
feat: CLI self-update command, update check, and wfctl mcp subcommand
Feb 27, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds CLI self-updating and integrates the MCP server into wfctl to keep tooling aligned with engine/CLI releases, alongside documentation updates for MCP client configuration.
Changes:
- Introduces
wfctl update(including--check) and a per-command update-availability notice. - Adds
wfctl mcpsubcommand that runs the MCP server over stdio (delegating to the existingmcppackage). - Updates MCP documentation to prefer
wfctl mcpand documents the update workflow.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/mcp.md | Documents wfctl mcp as the preferred MCP entrypoint and adds update instructions. |
| cmd/wfctl/main.go | Registers new update/mcp commands and triggers update notices for most commands. |
| cmd/wfctl/update.go | Implements GitHub-release-based self-update, update checks, and update notices. |
| cmd/wfctl/update_test.go | Adds unit tests for release lookup, binary replacement, and update check flows. |
| cmd/wfctl/mcp.go | Implements wfctl mcp command wrapper around the mcp package server. |
| cmd/wfctl/mcp_test.go | Adds basic flag-parsing tests for the new mcp command. |
Contributor
|
@copilot apply changes based on the comments in this thread |
Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
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.
cmd/wfctl/update.go- self-update command + update check logiccmd/wfctl/mcp.go-mcpsubcommand wrapping the MCP servercmd/wfctl/main.go- registerupdateandmcpcommands, version check on startupcmd/wfctl/update_test.go- tests for update check + self-updatecmd/wfctl/mcp_test.go- tests for MCP commanddocs/mcp.md- document the newwfctl mcpcommand and migration notesworkflowmcp.Version = versioninrunMCPbefore creating servercheckForUpdateNoticetruly non-blocking — returns done channel, command runs first, wait happens after command completeschecksums.txtfrom GitHub releasedownloadURL(no timeout) withdownloadWithTimeoutfor binary downloads.new.exealongside current binary with instructions instead of failingos.Rename0755💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.