Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
*.so
*.dylib

# Built binary
gh-aw-mcpg

# Test binary, built with `go test -c`
*.test

Expand Down
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
```

3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/githubnext/gh-aw-mcpg

go 1.24.10
43 changes: 43 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -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")
}