From 050ae94b0b198db2551a49b7b4136c7bd8e2dd5c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Dec 2025 21:44:10 +0000 Subject: [PATCH 1/2] Initial plan From bea3383b7b054ee09202d5d1e4ff5a367b55583b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Dec 2025 21:50:26 +0000 Subject: [PATCH 2/2] Configure as a Go CLI tool with basic structure Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .gitignore | 3 +++ README.md | 39 +++++++++++++++++++++++++++++++++++++++ go.mod | 3 +++ main.go | 43 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 88 insertions(+) create mode 100644 go.mod create mode 100644 main.go diff --git a/.gitignore b/.gitignore index aaadf736..2752dc2f 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,9 @@ *.so *.dylib +# Built binary +gh-aw-mcpg + # Test binary, built with `go test -c` *.test diff --git a/README.md b/README.md index 53e3a91c..a478daef 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,41 @@ # gh-aw-mcpg Github Agentic Workflows MCP Gateway + +## Building + +To build the CLI tool: + +```bash +go build -o gh-aw-mcpg . +``` + +## Usage + +Run the CLI tool: + +```bash +./gh-aw-mcpg +``` + +Display version: + +```bash +./gh-aw-mcpg version +``` + +Display help: + +```bash +./gh-aw-mcpg help +``` + +## Development + +This project requires Go 1.24.10 or later. + +### Installing + +```bash +go install github.com/githubnext/gh-aw-mcpg@latest +``` + diff --git a/go.mod b/go.mod new file mode 100644 index 00000000..4b815a72 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/githubnext/gh-aw-mcpg + +go 1.24.10 diff --git a/main.go b/main.go new file mode 100644 index 00000000..3ef15ee6 --- /dev/null +++ b/main.go @@ -0,0 +1,43 @@ +package main + +import ( + "fmt" + "os" +) + +const version = "0.1.0" + +func main() { + if len(os.Args) > 1 { + switch os.Args[1] { + case "version", "-v", "--version": + fmt.Printf("gh-aw-mcpg version %s\n", version) + return + case "help", "-h", "--help": + printHelp() + return + default: + fmt.Fprintf(os.Stderr, "Unknown command: %s\n\n", os.Args[1]) + printHelp() + os.Exit(1) + } + } + + // Default behavior - print help + printHelp() +} + +func printHelp() { + fmt.Println("gh-aw-mcpg - Github Agentic Workflows MCP Gateway") + fmt.Println() + fmt.Println("Usage:") + fmt.Println(" gh-aw-mcpg [command]") + fmt.Println() + fmt.Println("Available Commands:") + fmt.Println(" help Display help information") + fmt.Println(" version Display version information") + fmt.Println() + fmt.Println("Flags:") + fmt.Println(" -h, --help Display help information") + fmt.Println(" -v, --version Display version information") +}