Skip to content
Merged
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
1 change: 1 addition & 0 deletions .github/workflows/release-go-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
goarch: ${{ matrix.goarch }}
project_path: "./"
binary_name: ${{ github.event.repository.name }}
ldflags: "-X 'main.Version=${{ github.ref_name }}'"
md5sum: true
sha256sum: true

Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ The configuration folder uses a special configuration file `forge.yaml` that spe
The following attributes can be specified in the file:

- `name`: The name of the MCP server
- `version`: The version of the MCP server
- `url`: The URL of the GraphQL endpoint
- `token_command`: The command to use to request the Bearer token for the `Authorization` header (optional)
- `env`: A map of environment variables to pass to the token command (optional)
Expand All @@ -34,7 +33,6 @@ An example configuration would look like:

```yaml
name: "ExampleServer"
version: "0.1.0"
url: "https://api.github.com/graphql"
token_command: "gh auth token"
```
Expand Down
1 change: 0 additions & 1 deletion example/forge.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# forge.yaml
name: "ExampleServer"
version: "0.1.0"
url: "https://api.github.com/graphql"
token_command: "gh auth token"

Expand Down
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
"github.com/mark3labs/mcp-go/server"
)

var Version = "dev" // This will be set by the build systems to the release version

// ForgeConfig holds global server settings
type ForgeConfig struct {
Name string `yaml:"name"`
Version string `yaml:"version"`
URL string `yaml:"url"`
TokenCommand string `yaml:"token_command"`
Env map[string]string `yaml:"env,omitempty"`
Expand Down Expand Up @@ -239,7 +240,7 @@
}

// Init MCP server
srv := server.NewMCPServer(cfg.Name, cfg.Version)
srv := server.NewMCPServer(cfg.Name, Version)

Check warning on line 243 in main.go

View check run for this annotation

Codecov / codecov/patch

main.go#L243

Added line #L243 was not covered by tests

// Discover & register tools
files, err := filepath.Glob(filepath.Join(configDir, "*.yaml"))
Expand Down
Loading