From 38f9070c249acb1fc2f4ccb67978a548e4896e12 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Sat, 28 Mar 2026 22:44:19 -0700 Subject: [PATCH] Add top-level mcp edit command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Shortcut for mcp service edit — opens the service definition in $EDITOR. Co-Authored-By: Claude Opus 4.6 (1M context) --- cmd/mcp/edit.go | 12 ++++++++++++ cmd/mcp/main.go | 1 + 2 files changed, 13 insertions(+) create mode 100644 cmd/mcp/edit.go diff --git a/cmd/mcp/edit.go b/cmd/mcp/edit.go new file mode 100644 index 0000000..5a03b90 --- /dev/null +++ b/cmd/mcp/edit.go @@ -0,0 +1,12 @@ +package main + +import "github.com/spf13/cobra" + +func editCmd() *cobra.Command { + return &cobra.Command{ + Use: "edit ", + Short: "Open service definition in $EDITOR", + Args: cobra.ExactArgs(1), + RunE: runServiceEdit, + } +} diff --git a/cmd/mcp/main.go b/cmd/mcp/main.go index 0aeed9b..62d4f56 100644 --- a/cmd/mcp/main.go +++ b/cmd/mcp/main.go @@ -51,6 +51,7 @@ func main() { root.AddCommand(nodeCmd()) root.AddCommand(purgeCmd()) root.AddCommand(logsCmd()) + root.AddCommand(editCmd()) if err := root.Execute(); err != nil { log.Fatal(err)