From 3df81b6f473acf4a2b465e409d58ace8dc56d474 Mon Sep 17 00:00:00 2001 From: Markus Schulte Date: Thu, 3 Jul 2025 10:38:28 +0200 Subject: [PATCH 1/5] feat: enable go run execution by moving main to root - Move main.go to project root to enable `go run github.com/github/github-mcp-server@latest` - Delegate execution to cmd/github-mcp-server package - Update build configurations (Dockerfile, .goreleaser.yaml) - Fix ldflags paths and import aliases - Maintain backwards compatibility with existing cmd structure --- .github/licenses.tmpl | 2 +- .github/workflows/docs-check.yml | 4 +- .github/workflows/go.yml | 2 +- .goreleaser.yaml | 4 +- .vscode/launch.json | 4 +- CONTRIBUTING.md | 6 +- Dockerfile | 4 +- README.md | 41 ++++++++++- cmd/github-mcp-server/generate_docs.go | 12 ++-- .../{main.go => root_command.go} | 50 ++++++-------- cmd/mcpcurl/main.go | 2 +- e2e/README.md | 2 +- e2e/e2e_test.go | 6 +- go.mod | 31 ++++----- go.sum | 68 +++++++------------ internal/ghmcp/server.go | 20 +++--- main.go | 13 ++++ pkg/github/actions.go | 4 +- pkg/github/actions_test.go | 2 +- pkg/github/code_scanning.go | 4 +- pkg/github/code_scanning_test.go | 4 +- pkg/github/context_tools.go | 4 +- pkg/github/context_tools_test.go | 4 +- pkg/github/discussions.go | 2 +- pkg/github/discussions_test.go | 4 +- pkg/github/dynamic_tools.go | 4 +- pkg/github/issues.go | 2 +- pkg/github/issues_test.go | 6 +- pkg/github/notifications.go | 4 +- pkg/github/notifications_test.go | 4 +- pkg/github/pullrequests.go | 4 +- pkg/github/pullrequests_test.go | 6 +- pkg/github/repositories.go | 6 +- pkg/github/repositories_test.go | 6 +- pkg/github/repository_resource.go | 4 +- pkg/github/repository_resource_test.go | 4 +- pkg/github/search.go | 4 +- pkg/github/search_test.go | 4 +- pkg/github/secret_scanning.go | 4 +- pkg/github/secret_scanning_test.go | 2 +- pkg/github/server_test.go | 2 +- pkg/github/tools.go | 6 +- script/generate-docs | 2 +- script/get-discussions | 2 +- script/get-me | 2 +- third-party-licenses.darwin.md | 4 +- third-party-licenses.linux.md | 4 +- third-party-licenses.windows.md | 4 +- 48 files changed, 206 insertions(+), 183 deletions(-) rename cmd/github-mcp-server/{main.go => root_command.go} (68%) create mode 100644 main.go diff --git a/.github/licenses.tmpl b/.github/licenses.tmpl index d756be0b14..707841549b 100644 --- a/.github/licenses.tmpl +++ b/.github/licenses.tmpl @@ -10,4 +10,4 @@ Some packages may only be included on certain architectures or operating systems - [{{.Name}}](https://pkg.go.dev/{{.Name}}) ([{{.LicenseName}}]({{.LicenseURL}})) {{- end }} -[github/github-mcp-server]: https://github.com/github/github-mcp-server +[github/github-mcp-server]: https://github.com/SchulteDev/github_github-mcp-server diff --git a/.github/workflows/docs-check.yml b/.github/workflows/docs-check.yml index c28c528b2c..c30bbce53b 100644 --- a/.github/workflows/docs-check.yml +++ b/.github/workflows/docs-check.yml @@ -22,7 +22,7 @@ jobs: go-version-file: 'go.mod' - name: Build docs generator - run: go build -o github-mcp-server ./cmd/github-mcp-server + run: go build -o github-mcp-server . - name: Generate documentation run: ./github-mcp-server generate-docs @@ -35,7 +35,7 @@ jobs: echo "The generated documentation differs from what's committed." echo "Please run the following command to update the documentation:" echo "" - echo " go run ./cmd/github-mcp-server generate-docs" + echo " go run . generate-docs" echo "" echo "Then commit the changes." echo "" diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e3ef250222..9cadef6eb0 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -29,4 +29,4 @@ jobs: run: script/test - name: Build - run: go build -v ./cmd/github-mcp-server + run: go build -v . diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 54f6b9f409..6934c1e509 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -9,12 +9,12 @@ builds: - env: - CGO_ENABLED=0 ldflags: - - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} + - -s -w -X github.com/SchulteDev/github_github-mcp-server/cmd/github-mcp-server.version={{.Version}} -X github.com/SchulteDev/github_github-mcp-server/cmd/github-mcp-server.commit={{.Commit}} -X github.com/SchulteDev/github_github-mcp-server/cmd/github-mcp-server.date={{.Date}} goos: - linux - windows - darwin - main: ./cmd/github-mcp-server + main: . archives: - formats: tar.gz diff --git a/.vscode/launch.json b/.vscode/launch.json index cea7fd917d..cc84bd3c57 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -10,7 +10,7 @@ "request": "launch", "mode": "auto", "cwd": "${workspaceFolder}", - "program": "cmd/github-mcp-server/main.go", + "program": "main.go", "args": ["stdio"], "console": "integratedTerminal", }, @@ -20,7 +20,7 @@ "request": "launch", "mode": "auto", "cwd": "${workspaceFolder}", - "program": "cmd/github-mcp-server/main.go", + "program": "main.go", "args": ["stdio", "--read-only"], "console": "integratedTerminal", } diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b4012f0b22..23918f564f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,8 +1,8 @@ ## Contributing -[fork]: https://github.com/github/github-mcp-server/fork -[pr]: https://github.com/github/github-mcp-server/compare -[style]: https://github.com/github/github-mcp-server/blob/main/.golangci.yml +[fork]: https://github.com/SchulteDev/github_github-mcp-server/fork +[pr]: https://github.com/SchulteDev/github_github-mcp-server/compare +[style]: https://github.com/SchulteDev/github_github-mcp-server/blob/main/.golangci.yml Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great. diff --git a/Dockerfile b/Dockerfile index a26f19a811..2c4ad8c0b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,8 @@ RUN --mount=type=cache,target=/var/cache/apk \ RUN --mount=type=cache,target=/go/pkg/mod \ --mount=type=cache,target=/root/.cache/go-build \ --mount=type=bind,target=. \ - CGO_ENABLED=0 go build -ldflags="-s -w -X main.version=${VERSION} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \ - -o /bin/github-mcp-server cmd/github-mcp-server/main.go + CGO_ENABLED=0 go build -ldflags="-s -w -X github.com/SchulteDev/github_github-mcp-server/cmd/github-mcp-server.version=${VERSION} -X github.com/SchulteDev/github_github-mcp-server/cmd/github-mcp-server.commit=$(git rev-parse HEAD) -X github.com/SchulteDev/github_github-mcp-server/cmd/github-mcp-server.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \ + -o /bin/github-mcp-server . # Make a stage to run the app FROM gcr.io/distroless/base-debian12 diff --git a/README.md b/README.md index c5274ff836..553b3de611 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ automation and interaction capabilities for developers and tools. [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=github&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2F%22%7D) [![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install_Server-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=github&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2F%22%7D&quality=insiders) -The remote GitHub MCP Server is hosted by GitHub and provides the easiest method for getting up and running. If your MCP host does not support remote MCP servers, don't worry! You can use the [local version of the GitHub MCP Server](https://github.com/github/github-mcp-server?tab=readme-ov-file#local-github-mcp-server) instead. +The remote GitHub MCP Server is hosted by GitHub and provides the easiest method for getting up and running. If your MCP host does not support remote MCP servers, don't worry! You can use the [local version of the GitHub MCP Server](https://github.com/SchulteDev/github_github-mcp-server?tab=readme-ov-file#local-github-mcp-server) instead. ## Prerequisites @@ -234,8 +234,43 @@ More about using MCP server tools in VS Code's [agent mode documentation](https: ### Build from source -If you don't have Docker, you can use `go build` to build the binary in the -`cmd/github-mcp-server` directory, and use the `github-mcp-server stdio` command with the `GITHUB_PERSONAL_ACCESS_TOKEN` environment variable set to your token. To specify the output location of the build, use the `-o` flag. You should configure your server to use the built executable as its `command`. For example: +If you don't have Docker, you have several options: + +#### Option 1: Run directly from source (Recommended) + +You can run the server directly from source using `go run`: + +```bash +GITHUB_PERSONAL_ACCESS_TOKEN= go run github.com/SchulteDev/github_github-mcp-server@latest stdio +``` + +Or configure your MCP host to use `go run`: + +```JSON +{ + "mcp": { + "servers": { + "github": { + "command": "go", + "args": ["run", "github.com/SchulteDev/github_github-mcp-server@latest", "stdio"], + "env": { + "GITHUB_PERSONAL_ACCESS_TOKEN": "" + } + } + } + } +} +``` + +#### Option 2: Build and install + +You can build the binary and use the built executable: + +```bash +go build -o github-mcp-server github.com/SchulteDev/github_github-mcp-server@latest +``` + +Then configure your server to use the built executable: ```JSON { diff --git a/cmd/github-mcp-server/generate_docs.go b/cmd/github-mcp-server/generate_docs.go index dfd66d2883..a1e8a130c4 100644 --- a/cmd/github-mcp-server/generate_docs.go +++ b/cmd/github-mcp-server/generate_docs.go @@ -1,4 +1,4 @@ -package main +package cmd import ( "context" @@ -9,10 +9,10 @@ import ( "sort" "strings" - "github.com/github/github-mcp-server/pkg/github" - "github.com/github/github-mcp-server/pkg/raw" - "github.com/github/github-mcp-server/pkg/toolsets" - "github.com/github/github-mcp-server/pkg/translations" + "github.com/SchulteDev/github_github-mcp-server/pkg/github" + "github.com/SchulteDev/github_github-mcp-server/pkg/raw" + "github.com/SchulteDev/github_github-mcp-server/pkg/toolsets" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" gogithub "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/shurcooL/githubv4" @@ -29,7 +29,7 @@ var generateDocsCmd = &cobra.Command{ } func init() { - rootCmd.AddCommand(generateDocsCmd) + RootCmd.AddCommand(generateDocsCmd) } // mockGetClient returns a mock GitHub client for documentation generation diff --git a/cmd/github-mcp-server/main.go b/cmd/github-mcp-server/root_command.go similarity index 68% rename from cmd/github-mcp-server/main.go rename to cmd/github-mcp-server/root_command.go index cad0026665..8a31411a71 100644 --- a/cmd/github-mcp-server/main.go +++ b/cmd/github-mcp-server/root_command.go @@ -1,13 +1,12 @@ -package main +package cmd import ( "errors" "fmt" - "os" "strings" - "github.com/github/github-mcp-server/internal/ghmcp" - "github.com/github/github-mcp-server/pkg/github" + "github.com/SchulteDev/github_github-mcp-server/internal/ghmcp" + "github.com/SchulteDev/github_github-mcp-server/pkg/github" "github.com/spf13/cobra" "github.com/spf13/pflag" "github.com/spf13/viper" @@ -19,7 +18,7 @@ var commit = "commit" var date = "date" var ( - rootCmd = &cobra.Command{ + RootCmd = &cobra.Command{ Use: "server", Short: "GitHub MCP Server", Long: `A GitHub MCP server that handles various tools and resources.`, @@ -63,30 +62,30 @@ var ( func init() { cobra.OnInitialize(initConfig) - rootCmd.SetGlobalNormalizationFunc(wordSepNormalizeFunc) + RootCmd.SetGlobalNormalizationFunc(wordSepNormalizeFunc) - rootCmd.SetVersionTemplate("{{.Short}}\n{{.Version}}\n") + RootCmd.SetVersionTemplate("{{.Short}}\n{{.Version}}\n") // Add global flags that will be shared by all commands - rootCmd.PersistentFlags().StringSlice("toolsets", github.DefaultTools, "An optional comma separated list of groups of tools to allow, defaults to enabling all") - rootCmd.PersistentFlags().Bool("dynamic-toolsets", false, "Enable dynamic toolsets") - rootCmd.PersistentFlags().Bool("read-only", false, "Restrict the server to read-only operations") - rootCmd.PersistentFlags().String("log-file", "", "Path to log file") - rootCmd.PersistentFlags().Bool("enable-command-logging", false, "When enabled, the server will log all command requests and responses to the log file") - rootCmd.PersistentFlags().Bool("export-translations", false, "Save translations to a JSON file") - rootCmd.PersistentFlags().String("gh-host", "", "Specify the GitHub hostname (for GitHub Enterprise etc.)") + RootCmd.PersistentFlags().StringSlice("toolsets", github.DefaultTools, "An optional comma separated list of groups of tools to allow, defaults to enabling all") + RootCmd.PersistentFlags().Bool("dynamic-toolsets", false, "Enable dynamic toolsets") + RootCmd.PersistentFlags().Bool("read-only", false, "Restrict the server to read-only operations") + RootCmd.PersistentFlags().String("log-file", "", "Path to log file") + RootCmd.PersistentFlags().Bool("enable-command-logging", false, "When enabled, the server will log all command requests and responses to the log file") + RootCmd.PersistentFlags().Bool("export-translations", false, "Save translations to a JSON file") + RootCmd.PersistentFlags().String("gh-host", "", "Specify the GitHub hostname (for GitHub Enterprise etc.)") // Bind flag to viper - _ = viper.BindPFlag("toolsets", rootCmd.PersistentFlags().Lookup("toolsets")) - _ = viper.BindPFlag("dynamic_toolsets", rootCmd.PersistentFlags().Lookup("dynamic-toolsets")) - _ = viper.BindPFlag("read-only", rootCmd.PersistentFlags().Lookup("read-only")) - _ = viper.BindPFlag("log-file", rootCmd.PersistentFlags().Lookup("log-file")) - _ = viper.BindPFlag("enable-command-logging", rootCmd.PersistentFlags().Lookup("enable-command-logging")) - _ = viper.BindPFlag("export-translations", rootCmd.PersistentFlags().Lookup("export-translations")) - _ = viper.BindPFlag("host", rootCmd.PersistentFlags().Lookup("gh-host")) + _ = viper.BindPFlag("toolsets", RootCmd.PersistentFlags().Lookup("toolsets")) + _ = viper.BindPFlag("dynamic_toolsets", RootCmd.PersistentFlags().Lookup("dynamic-toolsets")) + _ = viper.BindPFlag("read-only", RootCmd.PersistentFlags().Lookup("read-only")) + _ = viper.BindPFlag("log-file", RootCmd.PersistentFlags().Lookup("log-file")) + _ = viper.BindPFlag("enable-command-logging", RootCmd.PersistentFlags().Lookup("enable-command-logging")) + _ = viper.BindPFlag("export-translations", RootCmd.PersistentFlags().Lookup("export-translations")) + _ = viper.BindPFlag("host", RootCmd.PersistentFlags().Lookup("gh-host")) // Add subcommands - rootCmd.AddCommand(stdioCmd) + RootCmd.AddCommand(stdioCmd) } func initConfig() { @@ -96,13 +95,6 @@ func initConfig() { } -func main() { - if err := rootCmd.Execute(); err != nil { - fmt.Fprintf(os.Stderr, "%v\n", err) - os.Exit(1) - } -} - func wordSepNormalizeFunc(_ *pflag.FlagSet, name string) pflag.NormalizedName { from := []string{"_"} to := "-" diff --git a/cmd/mcpcurl/main.go b/cmd/mcpcurl/main.go index bc192587a4..acb2ff9823 100644 --- a/cmd/mcpcurl/main.go +++ b/cmd/mcpcurl/main.go @@ -1,4 +1,4 @@ -package main +package cmd import ( "bytes" diff --git a/e2e/README.md b/e2e/README.md index 62730431ad..9fcf1cfff3 100644 --- a/e2e/README.md +++ b/e2e/README.md @@ -73,7 +73,7 @@ Running the tests: --- PASS: TestE2E/Initialize (0.09s) --- FAIL: TestE2E/CallTool_get_me (0.46s) FAIL -FAIL github.com/github/github-mcp-server/e2e 1.433s +FAIL github.com/SchulteDev/github_github-mcp-server/e2e 1.433s FAIL ``` diff --git a/e2e/e2e_test.go b/e2e/e2e_test.go index bc5a3fde31..54e752c0ff 100644 --- a/e2e/e2e_test.go +++ b/e2e/e2e_test.go @@ -15,9 +15,9 @@ import ( "testing" "time" - "github.com/github/github-mcp-server/internal/ghmcp" - "github.com/github/github-mcp-server/pkg/github" - "github.com/github/github-mcp-server/pkg/translations" + "github.com/SchulteDev/github_github-mcp-server/internal/ghmcp" + "github.com/SchulteDev/github_github-mcp-server/pkg/github" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" gogithub "github.com/google/go-github/v72/github" mcpClient "github.com/mark3labs/mcp-go/client" "github.com/mark3labs/mcp-go/mcp" diff --git a/go.mod b/go.mod index 4cc7682fde..88112c6558 100644 --- a/go.mod +++ b/go.mod @@ -1,12 +1,12 @@ -module github.com/github/github-mcp-server +module github.com/SchulteDev/github_github-mcp-server -go 1.23.7 +go 1.24.4 require ( github.com/google/go-github/v72 v72.0.0 github.com/josephburnett/jd v1.9.2 github.com/mark3labs/mcp-go v0.32.0 - github.com/migueleliasweb/go-github-mock v1.3.0 + github.com/migueleliasweb/go-github-mock v1.4.0 github.com/sirupsen/logrus v1.9.3 github.com/spf13/cobra v1.9.1 github.com/spf13/viper v1.20.1 @@ -14,25 +14,25 @@ require ( ) require ( - github.com/go-openapi/jsonpointer v0.19.5 // indirect - github.com/go-openapi/swag v0.21.1 // indirect + github.com/go-openapi/jsonpointer v0.21.1 // indirect + github.com/go-openapi/swag v0.23.1 // indirect + github.com/google/go-github/v73 v73.0.0 // indirect github.com/josharian/intern v1.0.0 // indirect - github.com/mailru/easyjson v0.7.7 // indirect + github.com/mailru/easyjson v0.9.0 // indirect github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect - golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect + golang.org/x/exp v0.0.0-20250620022241-b7579e27df2b // indirect gopkg.in/yaml.v2 v2.4.0 // indirect ) require ( github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect - github.com/fsnotify/fsnotify v1.8.0 // indirect + github.com/fsnotify/fsnotify v1.9.0 // indirect github.com/go-viper/mapstructure/v2 v2.3.0 - github.com/google/go-github/v71 v71.0.0 // indirect github.com/google/go-querystring v1.1.0 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/gorilla/mux v1.8.0 // indirect + github.com/gorilla/mux v1.8.1 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/pelletier/go-toml/v2 v2.2.3 // indirect + github.com/pelletier/go-toml/v2 v2.2.4 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/rogpeppe/go-internal v1.13.1 // indirect github.com/sagikazarmark/locafero v0.9.0 // indirect @@ -40,15 +40,14 @@ require ( github.com/shurcooL/graphql v0.0.0-20230722043721-ed46e5a46466 github.com/sourcegraph/conc v0.3.0 // indirect github.com/spf13/afero v1.14.0 // indirect - github.com/spf13/cast v1.7.1 // indirect + github.com/spf13/cast v1.9.2 // indirect github.com/spf13/pflag v1.0.6 github.com/subosito/gotenv v1.6.0 // indirect github.com/yosida95/uritemplate/v3 v3.0.2 // indirect go.uber.org/multierr v1.11.0 // indirect golang.org/x/oauth2 v0.29.0 // indirect - golang.org/x/sys v0.31.0 // indirect - golang.org/x/text v0.23.0 // indirect - golang.org/x/time v0.5.0 // indirect - gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect + golang.org/x/sys v0.33.0 // indirect + golang.org/x/text v0.26.0 // indirect + golang.org/x/time v0.12.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 5e601d9091..070086d622 100644 --- a/go.sum +++ b/go.sum @@ -1,59 +1,49 @@ github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= -github.com/fsnotify/fsnotify v1.8.0 h1:dAwr6QBTBZIkG8roQaJjGof0pp0EeF+tNV7YBP3F/8M= -github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= -github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= -github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/swag v0.21.1 h1:wm0rhTb5z7qpJRHBdPOMuY4QjVUMbF6/kwoYeRAOrKU= -github.com/go-openapi/swag v0.21.1/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= +github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k= +github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= +github.com/go-openapi/jsonpointer v0.21.1 h1:whnzv/pNXtK2FbX/W9yJfRmE2gsmkfahjMKB0fZvcic= +github.com/go-openapi/jsonpointer v0.21.1/go.mod h1:50I1STOfbY1ycR8jGz8DaMeLCdXiI6aDteEdRNNzpdk= +github.com/go-openapi/swag v0.23.1 h1:lpsStH0n2ittzTnbaSloVZLuB5+fvSY/+hnagBjSNZU= +github.com/go-openapi/swag v0.23.1/go.mod h1:STZs8TbRvEQQKUA+JZNAm3EWlgaOBGpyFDqQnDHMef0= github.com/go-viper/mapstructure/v2 v2.3.0 h1:27XbWsHIqhbdR5TIC911OfYvgSaW93HM+dX7970Q7jk= github.com/go-viper/mapstructure/v2 v2.3.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/go-github/v71 v71.0.0 h1:Zi16OymGKZZMm8ZliffVVJ/Q9YZreDKONCr+WUd0Z30= -github.com/google/go-github/v71 v71.0.0/go.mod h1:URZXObp2BLlMjwu0O8g4y6VBneUj2bCHgnI8FfgZ51M= github.com/google/go-github/v72 v72.0.0 h1:FcIO37BLoVPBO9igQQ6tStsv2asG4IPcYFi655PPvBM= github.com/google/go-github/v72 v72.0.0/go.mod h1:WWtw8GMRiL62mvIquf1kO3onRHeWWKmK01qdCY8c5fg= +github.com/google/go-github/v73 v73.0.0 h1:aR+Utnh+Y4mMkS+2qLQwcQ/cF9mOTpdwnzlaw//rG24= +github.com/google/go-github/v73 v73.0.0/go.mod h1:fa6w8+/V+edSU0muqdhCVY7Beh1M8F1IlQPZIANKIYw= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= -github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= +github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/josephburnett/jd v1.9.2 h1:ECJRRFXCCqbtidkAHckHGSZm/JIaAxS1gygHLF8MI5Y= github.com/josephburnett/jd v1.9.2/go.mod h1:bImDr8QXpxMb3SD+w1cDRHp97xP6UwI88xUAuxwDQfM= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= -github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= -github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +github.com/mailru/easyjson v0.9.0 h1:PrnmzHw7262yW8sTBwxi1PdJA3Iw/EKBa8psRf7d9a4= +github.com/mailru/easyjson v0.9.0/go.mod h1:1+xMtQp2MRNVL/V1bOzuP3aP8VNwRW55fQUto+XFtTU= github.com/mark3labs/mcp-go v0.32.0 h1:fgwmbfL2gbd67obg57OfV2Dnrhs1HtSdlY/i5fn7MU8= github.com/mark3labs/mcp-go v0.32.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= -github.com/migueleliasweb/go-github-mock v1.3.0 h1:2sVP9JEMB2ubQw1IKto3/fzF51oFC6eVWOOFDgQoq88= -github.com/migueleliasweb/go-github-mock v1.3.0/go.mod h1:ipQhV8fTcj/G6m7BKzin08GaJ/3B5/SonRAkgrk0zCY= -github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= -github.com/pelletier/go-toml/v2 v2.2.3 h1:YmeHyLY8mFWbdkNWwpr+qIL2bEqT0o95WSdkNHvL12M= -github.com/pelletier/go-toml/v2 v2.2.3/go.mod h1:MfCQTFTvCcUyyvvwm1+G6H/jORL20Xlb6rzQu9GuUkc= +github.com/migueleliasweb/go-github-mock v1.4.0 h1:pQ6K8r348m2q79A8Khb0PbEeNQV7t3h1xgECV+jNpXk= +github.com/migueleliasweb/go-github-mock v1.4.0/go.mod h1:/DUmhXkxrgVlDOVBqGoUXkV4w0ms5n1jDQHotYm135o= +github.com/pelletier/go-toml/v2 v2.2.4 h1:mye9XuhQ6gvn5h28+VilKrrPoQVanw5PMw/TB0t5Ec4= +github.com/pelletier/go-toml/v2 v2.2.4/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -72,8 +62,8 @@ github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9yS github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= github.com/spf13/afero v1.14.0 h1:9tH6MapGnn/j0eb0yIXiLjERO8RB6xIVZRDCX7PtqWA= github.com/spf13/afero v1.14.0/go.mod h1:acJQ8t0ohCGuMN3O+Pv0V0hgMxNYDlvdk+VTfyZmbYo= -github.com/spf13/cast v1.7.1 h1:cuNEagBQEHWN1FnbGEjCXL2szYEXqfJPbP2HNUaca9Y= -github.com/spf13/cast v1.7.1/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= +github.com/spf13/cast v1.9.2 h1:SsGfm7M8QOFtEzumm7UZrZdLLquNdzFYfIbEXntcFbE= +github.com/spf13/cast v1.9.2/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo= github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo= github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0= github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o= @@ -81,8 +71,6 @@ github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An github.com/spf13/viper v1.20.1 h1:ZMi+z/lvLyPSCoNtFCpqjy0S4kPbirhpTMwl8BkW9X4= github.com/spf13/viper v1.20.1/go.mod h1:P9Mdzt1zoHIG8m2eZQinpiBjo6kCmZSKBClNNqjJvu4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= @@ -94,27 +82,23 @@ github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 h1:BHyfKlQyqbsFN5p3Ifn github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= -golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 h1:2dVuKD2vS7b0QIHQbpyTISPd0LeHDbnYEryqj5Q1ug8= -golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY= +golang.org/x/exp v0.0.0-20250620022241-b7579e27df2b h1:M2rDM6z3Fhozi9O7NWsxAkg/yqS/lQJ6PmkyIV3YP+o= +golang.org/x/exp v0.0.0-20250620022241-b7579e27df2b/go.mod h1:3//PLf8L/X+8b4vuAfHzxeRUl04Adcb341+IGKfnqS8= golang.org/x/oauth2 v0.29.0 h1:WdYw2tdTK1S8olAzWHdgeqfy+Mtm9XNhv/xJsY65d98= golang.org/x/oauth2 v0.29.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik= -golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= -golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY= -golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4= -golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= -golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= +golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw= +golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/text v0.26.0 h1:P42AVeLghgTYr4+xUnTRKDMqpar+PtX7KWuNQL21L8M= +golang.org/x/text v0.26.0/go.mod h1:QK15LZJUUQVJxhz7wXgxSy/CJaTFjd0G+YLonydOVQA= +golang.org/x/time v0.12.0 h1:ScB/8o8olJvc+CQPWrK3fPZNfh7qgwCrY0zJmoEQLSE= +golang.org/x/time v0.12.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/internal/ghmcp/server.go b/internal/ghmcp/server.go index 568af10d15..f6145a9cfa 100644 --- a/internal/ghmcp/server.go +++ b/internal/ghmcp/server.go @@ -12,11 +12,11 @@ import ( "strings" "syscall" - "github.com/github/github-mcp-server/pkg/errors" - "github.com/github/github-mcp-server/pkg/github" - mcplog "github.com/github/github-mcp-server/pkg/log" - "github.com/github/github-mcp-server/pkg/raw" - "github.com/github/github-mcp-server/pkg/translations" + "github.com/SchulteDev/github_github-mcp-server/pkg/errors" + "github.com/SchulteDev/github_github-mcp-server/pkg/github" + mcplog "github.com/SchulteDev/github_github-mcp-server/pkg/log" + "github.com/SchulteDev/github_github-mcp-server/pkg/raw" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" gogithub "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" @@ -35,11 +35,11 @@ type MCPServerConfig struct { Token string // EnabledToolsets is a list of toolsets to enable - // See: https://github.com/github/github-mcp-server?tab=readme-ov-file#tool-configuration + // See: https://github.com/SchulteDev/github_github-mcp-server?tab=readme-ov-file#tool-configuration EnabledToolsets []string // Whether to enable dynamic toolsets - // See: https://github.com/github/github-mcp-server?tab=readme-ov-file#dynamic-tool-discovery + // See: https://github.com/SchulteDev/github_github-mcp-server?tab=readme-ov-file#dynamic-tool-discovery DynamicToolsets bool // ReadOnly indicates if we should only offer read-only tools @@ -159,18 +159,18 @@ type StdioServerConfig struct { Token string // EnabledToolsets is a list of toolsets to enable - // See: https://github.com/github/github-mcp-server?tab=readme-ov-file#tool-configuration + // See: https://github.com/SchulteDev/github_github-mcp-server?tab=readme-ov-file#tool-configuration EnabledToolsets []string // Whether to enable dynamic toolsets - // See: https://github.com/github/github-mcp-server?tab=readme-ov-file#dynamic-tool-discovery + // See: https://github.com/SchulteDev/github_github-mcp-server?tab=readme-ov-file#dynamic-tool-discovery DynamicToolsets bool // ReadOnly indicates if we should only register read-only tools ReadOnly bool // ExportTranslations indicates if we should export translations - // See: https://github.com/github/github-mcp-server?tab=readme-ov-file#i18n--overriding-descriptions + // See: https://github.com/SchulteDev/github_github-mcp-server?tab=readme-ov-file#i18n--overriding-descriptions ExportTranslations bool // EnableCommandLogging indicates if we should log commands diff --git a/main.go b/main.go new file mode 100644 index 0000000000..c51df0ece0 --- /dev/null +++ b/main.go @@ -0,0 +1,13 @@ +package main + +import ( + "os" + + cmd "github.com/SchulteDev/github_github-mcp-server/cmd/github-mcp-server" +) + +func main() { + if err := cmd.RootCmd.Execute(); err != nil { + os.Exit(1) + } +} diff --git a/pkg/github/actions.go b/pkg/github/actions.go index 95b1ec7ba3..3c4d0daab7 100644 --- a/pkg/github/actions.go +++ b/pkg/github/actions.go @@ -9,8 +9,8 @@ import ( "strconv" "strings" - ghErrors "github.com/github/github-mcp-server/pkg/errors" - "github.com/github/github-mcp-server/pkg/translations" + ghErrors "github.com/SchulteDev/github_github-mcp-server/pkg/errors" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" diff --git a/pkg/github/actions_test.go b/pkg/github/actions_test.go index f885ec5b9c..ea10b28840 100644 --- a/pkg/github/actions_test.go +++ b/pkg/github/actions_test.go @@ -7,7 +7,7 @@ import ( "net/http/httptest" "testing" - "github.com/github/github-mcp-server/pkg/translations" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/migueleliasweb/go-github-mock/src/mock" "github.com/stretchr/testify/assert" diff --git a/pkg/github/code_scanning.go b/pkg/github/code_scanning.go index 3b07692c01..8f59c4ae43 100644 --- a/pkg/github/code_scanning.go +++ b/pkg/github/code_scanning.go @@ -7,8 +7,8 @@ import ( "io" "net/http" - ghErrors "github.com/github/github-mcp-server/pkg/errors" - "github.com/github/github-mcp-server/pkg/translations" + ghErrors "github.com/SchulteDev/github_github-mcp-server/pkg/errors" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" diff --git a/pkg/github/code_scanning_test.go b/pkg/github/code_scanning_test.go index bd76ccbae9..e467f694f0 100644 --- a/pkg/github/code_scanning_test.go +++ b/pkg/github/code_scanning_test.go @@ -6,8 +6,8 @@ import ( "net/http" "testing" - "github.com/github/github-mcp-server/internal/toolsnaps" - "github.com/github/github-mcp-server/pkg/translations" + "github.com/SchulteDev/github_github-mcp-server/internal/toolsnaps" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/migueleliasweb/go-github-mock/src/mock" "github.com/stretchr/testify/assert" diff --git a/pkg/github/context_tools.go b/pkg/github/context_tools.go index 9817fea7bb..2abce91e89 100644 --- a/pkg/github/context_tools.go +++ b/pkg/github/context_tools.go @@ -4,8 +4,8 @@ import ( "context" "time" - ghErrors "github.com/github/github-mcp-server/pkg/errors" - "github.com/github/github-mcp-server/pkg/translations" + ghErrors "github.com/SchulteDev/github_github-mcp-server/pkg/errors" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" ) diff --git a/pkg/github/context_tools_test.go b/pkg/github/context_tools_test.go index 03af4175d8..88ba81dce3 100644 --- a/pkg/github/context_tools_test.go +++ b/pkg/github/context_tools_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "github.com/github/github-mcp-server/internal/toolsnaps" - "github.com/github/github-mcp-server/pkg/translations" + "github.com/SchulteDev/github_github-mcp-server/internal/toolsnaps" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/migueleliasweb/go-github-mock/src/mock" "github.com/stretchr/testify/assert" diff --git a/pkg/github/discussions.go b/pkg/github/discussions.go index 3e53a633b4..5a417dbad3 100644 --- a/pkg/github/discussions.go +++ b/pkg/github/discussions.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/github/github-mcp-server/pkg/translations" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/go-viper/mapstructure/v2" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" diff --git a/pkg/github/discussions_test.go b/pkg/github/discussions_test.go index 5132c6ce0d..a6dff0a7c6 100644 --- a/pkg/github/discussions_test.go +++ b/pkg/github/discussions_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/github/github-mcp-server/internal/githubv4mock" - "github.com/github/github-mcp-server/pkg/translations" + "github.com/SchulteDev/github_github-mcp-server/internal/githubv4mock" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/shurcooL/githubv4" "github.com/stretchr/testify/assert" diff --git a/pkg/github/dynamic_tools.go b/pkg/github/dynamic_tools.go index e703a885e4..cf9d6ced7b 100644 --- a/pkg/github/dynamic_tools.go +++ b/pkg/github/dynamic_tools.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/github/github-mcp-server/pkg/toolsets" - "github.com/github/github-mcp-server/pkg/translations" + "github.com/SchulteDev/github_github-mcp-server/pkg/toolsets" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" ) diff --git a/pkg/github/issues.go b/pkg/github/issues.go index 9d51aeb506..b74124b45e 100644 --- a/pkg/github/issues.go +++ b/pkg/github/issues.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/github/github-mcp-server/pkg/translations" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/go-viper/mapstructure/v2" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" diff --git a/pkg/github/issues_test.go b/pkg/github/issues_test.go index a6facbe2fe..cd5ae37ebf 100644 --- a/pkg/github/issues_test.go +++ b/pkg/github/issues_test.go @@ -8,9 +8,9 @@ import ( "testing" "time" - "github.com/github/github-mcp-server/internal/githubv4mock" - "github.com/github/github-mcp-server/internal/toolsnaps" - "github.com/github/github-mcp-server/pkg/translations" + "github.com/SchulteDev/github_github-mcp-server/internal/githubv4mock" + "github.com/SchulteDev/github_github-mcp-server/internal/toolsnaps" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/migueleliasweb/go-github-mock/src/mock" "github.com/shurcooL/githubv4" diff --git a/pkg/github/notifications.go b/pkg/github/notifications.go index b6b6bfd79b..cb965c6608 100644 --- a/pkg/github/notifications.go +++ b/pkg/github/notifications.go @@ -9,8 +9,8 @@ import ( "strconv" "time" - ghErrors "github.com/github/github-mcp-server/pkg/errors" - "github.com/github/github-mcp-server/pkg/translations" + ghErrors "github.com/SchulteDev/github_github-mcp-server/pkg/errors" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" diff --git a/pkg/github/notifications_test.go b/pkg/github/notifications_test.go index a83df3ed88..a06e542358 100644 --- a/pkg/github/notifications_test.go +++ b/pkg/github/notifications_test.go @@ -6,8 +6,8 @@ import ( "net/http" "testing" - "github.com/github/github-mcp-server/internal/toolsnaps" - "github.com/github/github-mcp-server/pkg/translations" + "github.com/SchulteDev/github_github-mcp-server/internal/toolsnaps" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/migueleliasweb/go-github-mock/src/mock" "github.com/stretchr/testify/assert" diff --git a/pkg/github/pullrequests.go b/pkg/github/pullrequests.go index 32c7e850c2..269ed6bab4 100644 --- a/pkg/github/pullrequests.go +++ b/pkg/github/pullrequests.go @@ -13,8 +13,8 @@ import ( "github.com/mark3labs/mcp-go/server" "github.com/shurcooL/githubv4" - ghErrors "github.com/github/github-mcp-server/pkg/errors" - "github.com/github/github-mcp-server/pkg/translations" + ghErrors "github.com/SchulteDev/github_github-mcp-server/pkg/errors" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" ) // GetPullRequest creates a tool to get details of a specific pull request. diff --git a/pkg/github/pullrequests_test.go b/pkg/github/pullrequests_test.go index 30341e86ce..31ab04374c 100644 --- a/pkg/github/pullrequests_test.go +++ b/pkg/github/pullrequests_test.go @@ -7,9 +7,9 @@ import ( "testing" "time" - "github.com/github/github-mcp-server/internal/githubv4mock" - "github.com/github/github-mcp-server/internal/toolsnaps" - "github.com/github/github-mcp-server/pkg/translations" + "github.com/SchulteDev/github_github-mcp-server/internal/githubv4mock" + "github.com/SchulteDev/github_github-mcp-server/internal/toolsnaps" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/shurcooL/githubv4" diff --git a/pkg/github/repositories.go b/pkg/github/repositories.go index 186bd23217..d6c803ba15 100644 --- a/pkg/github/repositories.go +++ b/pkg/github/repositories.go @@ -10,9 +10,9 @@ import ( "net/url" "strings" - ghErrors "github.com/github/github-mcp-server/pkg/errors" - "github.com/github/github-mcp-server/pkg/raw" - "github.com/github/github-mcp-server/pkg/translations" + ghErrors "github.com/SchulteDev/github_github-mcp-server/pkg/errors" + "github.com/SchulteDev/github_github-mcp-server/pkg/raw" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" diff --git a/pkg/github/repositories_test.go b/pkg/github/repositories_test.go index 4977bb0a97..119c73b955 100644 --- a/pkg/github/repositories_test.go +++ b/pkg/github/repositories_test.go @@ -9,9 +9,9 @@ import ( "testing" "time" - "github.com/github/github-mcp-server/internal/toolsnaps" - "github.com/github/github-mcp-server/pkg/raw" - "github.com/github/github-mcp-server/pkg/translations" + "github.com/SchulteDev/github_github-mcp-server/internal/toolsnaps" + "github.com/SchulteDev/github_github-mcp-server/pkg/raw" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/migueleliasweb/go-github-mock/src/mock" diff --git a/pkg/github/repository_resource.go b/pkg/github/repository_resource.go index a454db6305..570ecc6296 100644 --- a/pkg/github/repository_resource.go +++ b/pkg/github/repository_resource.go @@ -12,8 +12,8 @@ import ( "strconv" "strings" - "github.com/github/github-mcp-server/pkg/raw" - "github.com/github/github-mcp-server/pkg/translations" + "github.com/SchulteDev/github_github-mcp-server/pkg/raw" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" diff --git a/pkg/github/repository_resource_test.go b/pkg/github/repository_resource_test.go index 0e9f018e7f..4046cbdc03 100644 --- a/pkg/github/repository_resource_test.go +++ b/pkg/github/repository_resource_test.go @@ -6,8 +6,8 @@ import ( "net/url" "testing" - "github.com/github/github-mcp-server/pkg/raw" - "github.com/github/github-mcp-server/pkg/translations" + "github.com/SchulteDev/github_github-mcp-server/pkg/raw" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/migueleliasweb/go-github-mock/src/mock" diff --git a/pkg/github/search.go b/pkg/github/search.go index a72b38bc6a..c60f6bcd58 100644 --- a/pkg/github/search.go +++ b/pkg/github/search.go @@ -6,8 +6,8 @@ import ( "fmt" "io" - ghErrors "github.com/github/github-mcp-server/pkg/errors" - "github.com/github/github-mcp-server/pkg/translations" + ghErrors "github.com/SchulteDev/github_github-mcp-server/pkg/errors" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" diff --git a/pkg/github/search_test.go b/pkg/github/search_test.go index bfd014993a..722ecca680 100644 --- a/pkg/github/search_test.go +++ b/pkg/github/search_test.go @@ -6,8 +6,8 @@ import ( "net/http" "testing" - "github.com/github/github-mcp-server/internal/toolsnaps" - "github.com/github/github-mcp-server/pkg/translations" + "github.com/SchulteDev/github_github-mcp-server/internal/toolsnaps" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/migueleliasweb/go-github-mock/src/mock" "github.com/stretchr/testify/assert" diff --git a/pkg/github/secret_scanning.go b/pkg/github/secret_scanning.go index bea6df2aeb..bcfa7e8e6a 100644 --- a/pkg/github/secret_scanning.go +++ b/pkg/github/secret_scanning.go @@ -7,8 +7,8 @@ import ( "io" "net/http" - ghErrors "github.com/github/github-mcp-server/pkg/errors" - "github.com/github/github-mcp-server/pkg/translations" + ghErrors "github.com/SchulteDev/github_github-mcp-server/pkg/errors" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" diff --git a/pkg/github/secret_scanning_test.go b/pkg/github/secret_scanning_test.go index 38b573e097..4f2e148c17 100644 --- a/pkg/github/secret_scanning_test.go +++ b/pkg/github/secret_scanning_test.go @@ -6,7 +6,7 @@ import ( "net/http" "testing" - "github.com/github/github-mcp-server/pkg/translations" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/migueleliasweb/go-github-mock/src/mock" "github.com/stretchr/testify/assert" diff --git a/pkg/github/server_test.go b/pkg/github/server_test.go index 3f00d7b24d..4a8ed03aa6 100644 --- a/pkg/github/server_test.go +++ b/pkg/github/server_test.go @@ -8,7 +8,7 @@ import ( "net/http" "testing" - "github.com/github/github-mcp-server/pkg/raw" + "github.com/SchulteDev/github_github-mcp-server/pkg/raw" "github.com/google/go-github/v72/github" "github.com/shurcooL/githubv4" "github.com/stretchr/testify/assert" diff --git a/pkg/github/tools.go b/pkg/github/tools.go index a469b76780..33d4c59cbf 100644 --- a/pkg/github/tools.go +++ b/pkg/github/tools.go @@ -3,9 +3,9 @@ package github import ( "context" - "github.com/github/github-mcp-server/pkg/raw" - "github.com/github/github-mcp-server/pkg/toolsets" - "github.com/github/github-mcp-server/pkg/translations" + "github.com/SchulteDev/github_github-mcp-server/pkg/raw" + "github.com/SchulteDev/github_github-mcp-server/pkg/toolsets" + "github.com/SchulteDev/github_github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/server" "github.com/shurcooL/githubv4" diff --git a/script/generate-docs b/script/generate-docs index a2a7255d79..485a9c98f7 100755 --- a/script/generate-docs +++ b/script/generate-docs @@ -2,4 +2,4 @@ # This script generates documentation for the GitHub MCP server. # It needs to be run after tool updates to ensure the latest changes are reflected in the documentation. -go run ./cmd/github-mcp-server generate-docs \ No newline at end of file +go run . generate-docs \ No newline at end of file diff --git a/script/get-discussions b/script/get-discussions index 3e68abf245..4abe40743d 100755 --- a/script/get-discussions +++ b/script/get-discussions @@ -1,5 +1,5 @@ #!/bin/bash # echo '{"jsonrpc":"2.0","id":3,"params":{"name":"list_discussions","arguments": {"owner": "github", "repo": "securitylab", "first": 10, "since": "2025-04-01T00:00:00Z"}},"method":"tools/call"}' | go run cmd/github-mcp-server/main.go stdio | jq . -echo '{"jsonrpc":"2.0","id":3,"params":{"name":"list_discussions","arguments": {"owner": "github", "repo": "securitylab", "first": 10, "since": "2025-04-01T00:00:00Z", "sort": "CREATED_AT", "direction": "DESC"}},"method":"tools/call"}' | go run cmd/github-mcp-server/main.go stdio | jq . +echo '{"jsonrpc":"2.0","id":3,"params":{"name":"list_discussions","arguments": {"owner": "github", "repo": "securitylab", "first": 10, "since": "2025-04-01T00:00:00Z", "sort": "CREATED_AT", "direction": "DESC"}},"method":"tools/call"}' | go run . stdio | jq . diff --git a/script/get-me b/script/get-me index 46339ae53f..ae19ba06ce 100755 --- a/script/get-me +++ b/script/get-me @@ -1,3 +1,3 @@ #!/bin/bash -echo '{"jsonrpc":"2.0","id":3,"params":{"name":"get_me"},"method":"tools/call"}' | go run cmd/github-mcp-server/main.go stdio | jq . +echo '{"jsonrpc":"2.0","id":3,"params":{"name":"get_me"},"method":"tools/call"}' | go run . stdio | jq . diff --git a/third-party-licenses.darwin.md b/third-party-licenses.darwin.md index e616fa5607..7dea1117db 100644 --- a/third-party-licenses.darwin.md +++ b/third-party-licenses.darwin.md @@ -8,7 +8,7 @@ Some packages may only be included on certain architectures or operating systems - [github.com/fsnotify/fsnotify](https://pkg.go.dev/github.com/fsnotify/fsnotify) ([BSD-3-Clause](https://github.com/fsnotify/fsnotify/blob/v1.8.0/LICENSE)) - - [github.com/github/github-mcp-server](https://pkg.go.dev/github.com/github/github-mcp-server) ([MIT](https://github.com/github/github-mcp-server/blob/HEAD/LICENSE)) + - [github.com/SchulteDev/github_github-mcp-server](https://pkg.go.dev/github.com/SchulteDev/github_github-mcp-server) ([MIT](https://github.com/SchulteDev/github_github-mcp-server/blob/HEAD/LICENSE)) - [github.com/go-openapi/jsonpointer](https://pkg.go.dev/github.com/go-openapi/jsonpointer) ([Apache-2.0](https://github.com/go-openapi/jsonpointer/blob/v0.19.5/LICENSE)) - [github.com/go-openapi/swag](https://pkg.go.dev/github.com/go-openapi/swag) ([Apache-2.0](https://github.com/go-openapi/swag/blob/v0.21.1/LICENSE)) - [github.com/go-viper/mapstructure/v2](https://pkg.go.dev/github.com/go-viper/mapstructure/v2) ([MIT](https://github.com/go-viper/mapstructure/blob/v2.3.0/LICENSE)) @@ -43,4 +43,4 @@ Some packages may only be included on certain architectures or operating systems - [gopkg.in/yaml.v2](https://pkg.go.dev/gopkg.in/yaml.v2) ([Apache-2.0](https://github.com/go-yaml/yaml/blob/v2.4.0/LICENSE)) - [gopkg.in/yaml.v3](https://pkg.go.dev/gopkg.in/yaml.v3) ([MIT](https://github.com/go-yaml/yaml/blob/v3.0.1/LICENSE)) -[github/github-mcp-server]: https://github.com/github/github-mcp-server +[github/github-mcp-server]: https://github.com/SchulteDev/github_github-mcp-server diff --git a/third-party-licenses.linux.md b/third-party-licenses.linux.md index e616fa5607..7dea1117db 100644 --- a/third-party-licenses.linux.md +++ b/third-party-licenses.linux.md @@ -8,7 +8,7 @@ Some packages may only be included on certain architectures or operating systems - [github.com/fsnotify/fsnotify](https://pkg.go.dev/github.com/fsnotify/fsnotify) ([BSD-3-Clause](https://github.com/fsnotify/fsnotify/blob/v1.8.0/LICENSE)) - - [github.com/github/github-mcp-server](https://pkg.go.dev/github.com/github/github-mcp-server) ([MIT](https://github.com/github/github-mcp-server/blob/HEAD/LICENSE)) + - [github.com/SchulteDev/github_github-mcp-server](https://pkg.go.dev/github.com/SchulteDev/github_github-mcp-server) ([MIT](https://github.com/SchulteDev/github_github-mcp-server/blob/HEAD/LICENSE)) - [github.com/go-openapi/jsonpointer](https://pkg.go.dev/github.com/go-openapi/jsonpointer) ([Apache-2.0](https://github.com/go-openapi/jsonpointer/blob/v0.19.5/LICENSE)) - [github.com/go-openapi/swag](https://pkg.go.dev/github.com/go-openapi/swag) ([Apache-2.0](https://github.com/go-openapi/swag/blob/v0.21.1/LICENSE)) - [github.com/go-viper/mapstructure/v2](https://pkg.go.dev/github.com/go-viper/mapstructure/v2) ([MIT](https://github.com/go-viper/mapstructure/blob/v2.3.0/LICENSE)) @@ -43,4 +43,4 @@ Some packages may only be included on certain architectures or operating systems - [gopkg.in/yaml.v2](https://pkg.go.dev/gopkg.in/yaml.v2) ([Apache-2.0](https://github.com/go-yaml/yaml/blob/v2.4.0/LICENSE)) - [gopkg.in/yaml.v3](https://pkg.go.dev/gopkg.in/yaml.v3) ([MIT](https://github.com/go-yaml/yaml/blob/v3.0.1/LICENSE)) -[github/github-mcp-server]: https://github.com/github/github-mcp-server +[github/github-mcp-server]: https://github.com/SchulteDev/github_github-mcp-server diff --git a/third-party-licenses.windows.md b/third-party-licenses.windows.md index d34ce24490..18b8402623 100644 --- a/third-party-licenses.windows.md +++ b/third-party-licenses.windows.md @@ -8,7 +8,7 @@ Some packages may only be included on certain architectures or operating systems - [github.com/fsnotify/fsnotify](https://pkg.go.dev/github.com/fsnotify/fsnotify) ([BSD-3-Clause](https://github.com/fsnotify/fsnotify/blob/v1.8.0/LICENSE)) - - [github.com/github/github-mcp-server](https://pkg.go.dev/github.com/github/github-mcp-server) ([MIT](https://github.com/github/github-mcp-server/blob/HEAD/LICENSE)) + - [github.com/SchulteDev/github_github-mcp-server](https://pkg.go.dev/github.com/SchulteDev/github_github-mcp-server) ([MIT](https://github.com/SchulteDev/github_github-mcp-server/blob/HEAD/LICENSE)) - [github.com/go-openapi/jsonpointer](https://pkg.go.dev/github.com/go-openapi/jsonpointer) ([Apache-2.0](https://github.com/go-openapi/jsonpointer/blob/v0.19.5/LICENSE)) - [github.com/go-openapi/swag](https://pkg.go.dev/github.com/go-openapi/swag) ([Apache-2.0](https://github.com/go-openapi/swag/blob/v0.21.1/LICENSE)) - [github.com/go-viper/mapstructure/v2](https://pkg.go.dev/github.com/go-viper/mapstructure/v2) ([MIT](https://github.com/go-viper/mapstructure/blob/v2.3.0/LICENSE)) @@ -44,4 +44,4 @@ Some packages may only be included on certain architectures or operating systems - [gopkg.in/yaml.v2](https://pkg.go.dev/gopkg.in/yaml.v2) ([Apache-2.0](https://github.com/go-yaml/yaml/blob/v2.4.0/LICENSE)) - [gopkg.in/yaml.v3](https://pkg.go.dev/gopkg.in/yaml.v3) ([MIT](https://github.com/go-yaml/yaml/blob/v3.0.1/LICENSE)) -[github/github-mcp-server]: https://github.com/github/github-mcp-server +[github/github-mcp-server]: https://github.com/SchulteDev/github_github-mcp-server From 4ea25999dd7740267dffb59856af16d664e113b4 Mon Sep 17 00:00:00 2001 From: Markus Schulte Date: Thu, 3 Jul 2025 10:41:12 +0200 Subject: [PATCH 2/5] chore: update repository references to `github/github-mcp-server` - Replace all occurrences of `SchulteDev/github_github-mcp-server` with `github/github-mcp-server` - Update import paths, documentation, and build configurations for new repository location --- .github/licenses.tmpl | 2 +- .goreleaser.yaml | 2 +- CONTRIBUTING.md | 6 +++--- Dockerfile | 2 +- README.md | 8 ++++---- cmd/github-mcp-server/generate_docs.go | 8 ++++---- cmd/github-mcp-server/root_command.go | 4 ++-- e2e/README.md | 2 +- e2e/e2e_test.go | 6 +++--- go.mod | 2 +- internal/ghmcp/server.go | 20 ++++++++++---------- main.go | 2 +- pkg/github/actions.go | 4 ++-- pkg/github/actions_test.go | 2 +- pkg/github/code_scanning.go | 4 ++-- pkg/github/code_scanning_test.go | 4 ++-- pkg/github/context_tools.go | 4 ++-- pkg/github/context_tools_test.go | 4 ++-- pkg/github/discussions.go | 2 +- pkg/github/discussions_test.go | 4 ++-- pkg/github/dynamic_tools.go | 4 ++-- pkg/github/issues.go | 2 +- pkg/github/issues_test.go | 6 +++--- pkg/github/notifications.go | 4 ++-- pkg/github/notifications_test.go | 4 ++-- pkg/github/pullrequests.go | 4 ++-- pkg/github/pullrequests_test.go | 6 +++--- pkg/github/repositories.go | 6 +++--- pkg/github/repositories_test.go | 6 +++--- pkg/github/repository_resource.go | 4 ++-- pkg/github/repository_resource_test.go | 4 ++-- pkg/github/search.go | 4 ++-- pkg/github/search_test.go | 4 ++-- pkg/github/secret_scanning.go | 4 ++-- pkg/github/secret_scanning_test.go | 2 +- pkg/github/server_test.go | 2 +- pkg/github/tools.go | 6 +++--- third-party-licenses.darwin.md | 4 ++-- third-party-licenses.linux.md | 4 ++-- third-party-licenses.windows.md | 4 ++-- 40 files changed, 88 insertions(+), 88 deletions(-) diff --git a/.github/licenses.tmpl b/.github/licenses.tmpl index 707841549b..d756be0b14 100644 --- a/.github/licenses.tmpl +++ b/.github/licenses.tmpl @@ -10,4 +10,4 @@ Some packages may only be included on certain architectures or operating systems - [{{.Name}}](https://pkg.go.dev/{{.Name}}) ([{{.LicenseName}}]({{.LicenseURL}})) {{- end }} -[github/github-mcp-server]: https://github.com/SchulteDev/github_github-mcp-server +[github/github-mcp-server]: https://github.com/github/github-mcp-server diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 6934c1e509..713e662d19 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -9,7 +9,7 @@ builds: - env: - CGO_ENABLED=0 ldflags: - - -s -w -X github.com/SchulteDev/github_github-mcp-server/cmd/github-mcp-server.version={{.Version}} -X github.com/SchulteDev/github_github-mcp-server/cmd/github-mcp-server.commit={{.Commit}} -X github.com/SchulteDev/github_github-mcp-server/cmd/github-mcp-server.date={{.Date}} + - -s -w -X github.com/github/github-mcp-server/cmd/github-mcp-server.version={{.Version}} -X github.com/github/github-mcp-server/cmd/github-mcp-server.commit={{.Commit}} -X github.com/github/github-mcp-server/cmd/github-mcp-server.date={{.Date}} goos: - linux - windows diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 23918f564f..b4012f0b22 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,8 +1,8 @@ ## Contributing -[fork]: https://github.com/SchulteDev/github_github-mcp-server/fork -[pr]: https://github.com/SchulteDev/github_github-mcp-server/compare -[style]: https://github.com/SchulteDev/github_github-mcp-server/blob/main/.golangci.yml +[fork]: https://github.com/github/github-mcp-server/fork +[pr]: https://github.com/github/github-mcp-server/compare +[style]: https://github.com/github/github-mcp-server/blob/main/.golangci.yml Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great. diff --git a/Dockerfile b/Dockerfile index 2c4ad8c0b6..5fb8145848 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ RUN --mount=type=cache,target=/var/cache/apk \ RUN --mount=type=cache,target=/go/pkg/mod \ --mount=type=cache,target=/root/.cache/go-build \ --mount=type=bind,target=. \ - CGO_ENABLED=0 go build -ldflags="-s -w -X github.com/SchulteDev/github_github-mcp-server/cmd/github-mcp-server.version=${VERSION} -X github.com/SchulteDev/github_github-mcp-server/cmd/github-mcp-server.commit=$(git rev-parse HEAD) -X github.com/SchulteDev/github_github-mcp-server/cmd/github-mcp-server.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \ + CGO_ENABLED=0 go build -ldflags="-s -w -X github.com/github/github-mcp-server/cmd/github-mcp-server.version=${VERSION} -X github.com/github/github-mcp-server/cmd/github-mcp-server.commit=$(git rev-parse HEAD) -X github.com/github/github-mcp-server/cmd/github-mcp-server.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \ -o /bin/github-mcp-server . # Make a stage to run the app diff --git a/README.md b/README.md index 553b3de611..800f734c4d 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ automation and interaction capabilities for developers and tools. [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=github&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2F%22%7D) [![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install_Server-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=github&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2F%22%7D&quality=insiders) -The remote GitHub MCP Server is hosted by GitHub and provides the easiest method for getting up and running. If your MCP host does not support remote MCP servers, don't worry! You can use the [local version of the GitHub MCP Server](https://github.com/SchulteDev/github_github-mcp-server?tab=readme-ov-file#local-github-mcp-server) instead. +The remote GitHub MCP Server is hosted by GitHub and provides the easiest method for getting up and running. If your MCP host does not support remote MCP servers, don't worry! You can use the [local version of the GitHub MCP Server](https://github.com/github/github-mcp-server?tab=readme-ov-file#local-github-mcp-server) instead. ## Prerequisites @@ -241,7 +241,7 @@ If you don't have Docker, you have several options: You can run the server directly from source using `go run`: ```bash -GITHUB_PERSONAL_ACCESS_TOKEN= go run github.com/SchulteDev/github_github-mcp-server@latest stdio +GITHUB_PERSONAL_ACCESS_TOKEN= go run github.com/github/github-mcp-server@latest stdio ``` Or configure your MCP host to use `go run`: @@ -252,7 +252,7 @@ Or configure your MCP host to use `go run`: "servers": { "github": { "command": "go", - "args": ["run", "github.com/SchulteDev/github_github-mcp-server@latest", "stdio"], + "args": ["run", "github.com/github/github-mcp-server@latest", "stdio"], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "" } @@ -267,7 +267,7 @@ Or configure your MCP host to use `go run`: You can build the binary and use the built executable: ```bash -go build -o github-mcp-server github.com/SchulteDev/github_github-mcp-server@latest +go build -o github-mcp-server github.com/github/github-mcp-server@latest ``` Then configure your server to use the built executable: diff --git a/cmd/github-mcp-server/generate_docs.go b/cmd/github-mcp-server/generate_docs.go index a1e8a130c4..c95092e5c7 100644 --- a/cmd/github-mcp-server/generate_docs.go +++ b/cmd/github-mcp-server/generate_docs.go @@ -9,10 +9,10 @@ import ( "sort" "strings" - "github.com/SchulteDev/github_github-mcp-server/pkg/github" - "github.com/SchulteDev/github_github-mcp-server/pkg/raw" - "github.com/SchulteDev/github_github-mcp-server/pkg/toolsets" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + "github.com/github/github-mcp-server/pkg/github" + "github.com/github/github-mcp-server/pkg/raw" + "github.com/github/github-mcp-server/pkg/toolsets" + "github.com/github/github-mcp-server/pkg/translations" gogithub "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/shurcooL/githubv4" diff --git a/cmd/github-mcp-server/root_command.go b/cmd/github-mcp-server/root_command.go index 8a31411a71..f633808b97 100644 --- a/cmd/github-mcp-server/root_command.go +++ b/cmd/github-mcp-server/root_command.go @@ -5,8 +5,8 @@ import ( "fmt" "strings" - "github.com/SchulteDev/github_github-mcp-server/internal/ghmcp" - "github.com/SchulteDev/github_github-mcp-server/pkg/github" + "github.com/github/github-mcp-server/internal/ghmcp" + "github.com/github/github-mcp-server/pkg/github" "github.com/spf13/cobra" "github.com/spf13/pflag" "github.com/spf13/viper" diff --git a/e2e/README.md b/e2e/README.md index 9fcf1cfff3..62730431ad 100644 --- a/e2e/README.md +++ b/e2e/README.md @@ -73,7 +73,7 @@ Running the tests: --- PASS: TestE2E/Initialize (0.09s) --- FAIL: TestE2E/CallTool_get_me (0.46s) FAIL -FAIL github.com/SchulteDev/github_github-mcp-server/e2e 1.433s +FAIL github.com/github/github-mcp-server/e2e 1.433s FAIL ``` diff --git a/e2e/e2e_test.go b/e2e/e2e_test.go index 54e752c0ff..bc5a3fde31 100644 --- a/e2e/e2e_test.go +++ b/e2e/e2e_test.go @@ -15,9 +15,9 @@ import ( "testing" "time" - "github.com/SchulteDev/github_github-mcp-server/internal/ghmcp" - "github.com/SchulteDev/github_github-mcp-server/pkg/github" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + "github.com/github/github-mcp-server/internal/ghmcp" + "github.com/github/github-mcp-server/pkg/github" + "github.com/github/github-mcp-server/pkg/translations" gogithub "github.com/google/go-github/v72/github" mcpClient "github.com/mark3labs/mcp-go/client" "github.com/mark3labs/mcp-go/mcp" diff --git a/go.mod b/go.mod index 88112c6558..8ee3e1fff7 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/SchulteDev/github_github-mcp-server +module github.com/github/github-mcp-server go 1.24.4 diff --git a/internal/ghmcp/server.go b/internal/ghmcp/server.go index f6145a9cfa..568af10d15 100644 --- a/internal/ghmcp/server.go +++ b/internal/ghmcp/server.go @@ -12,11 +12,11 @@ import ( "strings" "syscall" - "github.com/SchulteDev/github_github-mcp-server/pkg/errors" - "github.com/SchulteDev/github_github-mcp-server/pkg/github" - mcplog "github.com/SchulteDev/github_github-mcp-server/pkg/log" - "github.com/SchulteDev/github_github-mcp-server/pkg/raw" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + "github.com/github/github-mcp-server/pkg/errors" + "github.com/github/github-mcp-server/pkg/github" + mcplog "github.com/github/github-mcp-server/pkg/log" + "github.com/github/github-mcp-server/pkg/raw" + "github.com/github/github-mcp-server/pkg/translations" gogithub "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" @@ -35,11 +35,11 @@ type MCPServerConfig struct { Token string // EnabledToolsets is a list of toolsets to enable - // See: https://github.com/SchulteDev/github_github-mcp-server?tab=readme-ov-file#tool-configuration + // See: https://github.com/github/github-mcp-server?tab=readme-ov-file#tool-configuration EnabledToolsets []string // Whether to enable dynamic toolsets - // See: https://github.com/SchulteDev/github_github-mcp-server?tab=readme-ov-file#dynamic-tool-discovery + // See: https://github.com/github/github-mcp-server?tab=readme-ov-file#dynamic-tool-discovery DynamicToolsets bool // ReadOnly indicates if we should only offer read-only tools @@ -159,18 +159,18 @@ type StdioServerConfig struct { Token string // EnabledToolsets is a list of toolsets to enable - // See: https://github.com/SchulteDev/github_github-mcp-server?tab=readme-ov-file#tool-configuration + // See: https://github.com/github/github-mcp-server?tab=readme-ov-file#tool-configuration EnabledToolsets []string // Whether to enable dynamic toolsets - // See: https://github.com/SchulteDev/github_github-mcp-server?tab=readme-ov-file#dynamic-tool-discovery + // See: https://github.com/github/github-mcp-server?tab=readme-ov-file#dynamic-tool-discovery DynamicToolsets bool // ReadOnly indicates if we should only register read-only tools ReadOnly bool // ExportTranslations indicates if we should export translations - // See: https://github.com/SchulteDev/github_github-mcp-server?tab=readme-ov-file#i18n--overriding-descriptions + // See: https://github.com/github/github-mcp-server?tab=readme-ov-file#i18n--overriding-descriptions ExportTranslations bool // EnableCommandLogging indicates if we should log commands diff --git a/main.go b/main.go index c51df0ece0..b4232e7739 100644 --- a/main.go +++ b/main.go @@ -3,7 +3,7 @@ package main import ( "os" - cmd "github.com/SchulteDev/github_github-mcp-server/cmd/github-mcp-server" + cmd "github.com/github/github-mcp-server/cmd/github-mcp-server" ) func main() { diff --git a/pkg/github/actions.go b/pkg/github/actions.go index 3c4d0daab7..95b1ec7ba3 100644 --- a/pkg/github/actions.go +++ b/pkg/github/actions.go @@ -9,8 +9,8 @@ import ( "strconv" "strings" - ghErrors "github.com/SchulteDev/github_github-mcp-server/pkg/errors" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + ghErrors "github.com/github/github-mcp-server/pkg/errors" + "github.com/github/github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" diff --git a/pkg/github/actions_test.go b/pkg/github/actions_test.go index ea10b28840..f885ec5b9c 100644 --- a/pkg/github/actions_test.go +++ b/pkg/github/actions_test.go @@ -7,7 +7,7 @@ import ( "net/http/httptest" "testing" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + "github.com/github/github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/migueleliasweb/go-github-mock/src/mock" "github.com/stretchr/testify/assert" diff --git a/pkg/github/code_scanning.go b/pkg/github/code_scanning.go index 8f59c4ae43..3b07692c01 100644 --- a/pkg/github/code_scanning.go +++ b/pkg/github/code_scanning.go @@ -7,8 +7,8 @@ import ( "io" "net/http" - ghErrors "github.com/SchulteDev/github_github-mcp-server/pkg/errors" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + ghErrors "github.com/github/github-mcp-server/pkg/errors" + "github.com/github/github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" diff --git a/pkg/github/code_scanning_test.go b/pkg/github/code_scanning_test.go index e467f694f0..bd76ccbae9 100644 --- a/pkg/github/code_scanning_test.go +++ b/pkg/github/code_scanning_test.go @@ -6,8 +6,8 @@ import ( "net/http" "testing" - "github.com/SchulteDev/github_github-mcp-server/internal/toolsnaps" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + "github.com/github/github-mcp-server/internal/toolsnaps" + "github.com/github/github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/migueleliasweb/go-github-mock/src/mock" "github.com/stretchr/testify/assert" diff --git a/pkg/github/context_tools.go b/pkg/github/context_tools.go index 2abce91e89..9817fea7bb 100644 --- a/pkg/github/context_tools.go +++ b/pkg/github/context_tools.go @@ -4,8 +4,8 @@ import ( "context" "time" - ghErrors "github.com/SchulteDev/github_github-mcp-server/pkg/errors" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + ghErrors "github.com/github/github-mcp-server/pkg/errors" + "github.com/github/github-mcp-server/pkg/translations" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" ) diff --git a/pkg/github/context_tools_test.go b/pkg/github/context_tools_test.go index 88ba81dce3..03af4175d8 100644 --- a/pkg/github/context_tools_test.go +++ b/pkg/github/context_tools_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "github.com/SchulteDev/github_github-mcp-server/internal/toolsnaps" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + "github.com/github/github-mcp-server/internal/toolsnaps" + "github.com/github/github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/migueleliasweb/go-github-mock/src/mock" "github.com/stretchr/testify/assert" diff --git a/pkg/github/discussions.go b/pkg/github/discussions.go index 5a417dbad3..3e53a633b4 100644 --- a/pkg/github/discussions.go +++ b/pkg/github/discussions.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + "github.com/github/github-mcp-server/pkg/translations" "github.com/go-viper/mapstructure/v2" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" diff --git a/pkg/github/discussions_test.go b/pkg/github/discussions_test.go index a6dff0a7c6..5132c6ce0d 100644 --- a/pkg/github/discussions_test.go +++ b/pkg/github/discussions_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/SchulteDev/github_github-mcp-server/internal/githubv4mock" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + "github.com/github/github-mcp-server/internal/githubv4mock" + "github.com/github/github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/shurcooL/githubv4" "github.com/stretchr/testify/assert" diff --git a/pkg/github/dynamic_tools.go b/pkg/github/dynamic_tools.go index cf9d6ced7b..e703a885e4 100644 --- a/pkg/github/dynamic_tools.go +++ b/pkg/github/dynamic_tools.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/SchulteDev/github_github-mcp-server/pkg/toolsets" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + "github.com/github/github-mcp-server/pkg/toolsets" + "github.com/github/github-mcp-server/pkg/translations" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" ) diff --git a/pkg/github/issues.go b/pkg/github/issues.go index b74124b45e..9d51aeb506 100644 --- a/pkg/github/issues.go +++ b/pkg/github/issues.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + "github.com/github/github-mcp-server/pkg/translations" "github.com/go-viper/mapstructure/v2" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" diff --git a/pkg/github/issues_test.go b/pkg/github/issues_test.go index cd5ae37ebf..a6facbe2fe 100644 --- a/pkg/github/issues_test.go +++ b/pkg/github/issues_test.go @@ -8,9 +8,9 @@ import ( "testing" "time" - "github.com/SchulteDev/github_github-mcp-server/internal/githubv4mock" - "github.com/SchulteDev/github_github-mcp-server/internal/toolsnaps" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + "github.com/github/github-mcp-server/internal/githubv4mock" + "github.com/github/github-mcp-server/internal/toolsnaps" + "github.com/github/github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/migueleliasweb/go-github-mock/src/mock" "github.com/shurcooL/githubv4" diff --git a/pkg/github/notifications.go b/pkg/github/notifications.go index cb965c6608..b6b6bfd79b 100644 --- a/pkg/github/notifications.go +++ b/pkg/github/notifications.go @@ -9,8 +9,8 @@ import ( "strconv" "time" - ghErrors "github.com/SchulteDev/github_github-mcp-server/pkg/errors" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + ghErrors "github.com/github/github-mcp-server/pkg/errors" + "github.com/github/github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" diff --git a/pkg/github/notifications_test.go b/pkg/github/notifications_test.go index a06e542358..a83df3ed88 100644 --- a/pkg/github/notifications_test.go +++ b/pkg/github/notifications_test.go @@ -6,8 +6,8 @@ import ( "net/http" "testing" - "github.com/SchulteDev/github_github-mcp-server/internal/toolsnaps" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + "github.com/github/github-mcp-server/internal/toolsnaps" + "github.com/github/github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/migueleliasweb/go-github-mock/src/mock" "github.com/stretchr/testify/assert" diff --git a/pkg/github/pullrequests.go b/pkg/github/pullrequests.go index 269ed6bab4..32c7e850c2 100644 --- a/pkg/github/pullrequests.go +++ b/pkg/github/pullrequests.go @@ -13,8 +13,8 @@ import ( "github.com/mark3labs/mcp-go/server" "github.com/shurcooL/githubv4" - ghErrors "github.com/SchulteDev/github_github-mcp-server/pkg/errors" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + ghErrors "github.com/github/github-mcp-server/pkg/errors" + "github.com/github/github-mcp-server/pkg/translations" ) // GetPullRequest creates a tool to get details of a specific pull request. diff --git a/pkg/github/pullrequests_test.go b/pkg/github/pullrequests_test.go index 31ab04374c..30341e86ce 100644 --- a/pkg/github/pullrequests_test.go +++ b/pkg/github/pullrequests_test.go @@ -7,9 +7,9 @@ import ( "testing" "time" - "github.com/SchulteDev/github_github-mcp-server/internal/githubv4mock" - "github.com/SchulteDev/github_github-mcp-server/internal/toolsnaps" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + "github.com/github/github-mcp-server/internal/githubv4mock" + "github.com/github/github-mcp-server/internal/toolsnaps" + "github.com/github/github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/shurcooL/githubv4" diff --git a/pkg/github/repositories.go b/pkg/github/repositories.go index d6c803ba15..186bd23217 100644 --- a/pkg/github/repositories.go +++ b/pkg/github/repositories.go @@ -10,9 +10,9 @@ import ( "net/url" "strings" - ghErrors "github.com/SchulteDev/github_github-mcp-server/pkg/errors" - "github.com/SchulteDev/github_github-mcp-server/pkg/raw" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + ghErrors "github.com/github/github-mcp-server/pkg/errors" + "github.com/github/github-mcp-server/pkg/raw" + "github.com/github/github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" diff --git a/pkg/github/repositories_test.go b/pkg/github/repositories_test.go index 119c73b955..4977bb0a97 100644 --- a/pkg/github/repositories_test.go +++ b/pkg/github/repositories_test.go @@ -9,9 +9,9 @@ import ( "testing" "time" - "github.com/SchulteDev/github_github-mcp-server/internal/toolsnaps" - "github.com/SchulteDev/github_github-mcp-server/pkg/raw" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + "github.com/github/github-mcp-server/internal/toolsnaps" + "github.com/github/github-mcp-server/pkg/raw" + "github.com/github/github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/migueleliasweb/go-github-mock/src/mock" diff --git a/pkg/github/repository_resource.go b/pkg/github/repository_resource.go index 570ecc6296..a454db6305 100644 --- a/pkg/github/repository_resource.go +++ b/pkg/github/repository_resource.go @@ -12,8 +12,8 @@ import ( "strconv" "strings" - "github.com/SchulteDev/github_github-mcp-server/pkg/raw" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + "github.com/github/github-mcp-server/pkg/raw" + "github.com/github/github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" diff --git a/pkg/github/repository_resource_test.go b/pkg/github/repository_resource_test.go index 4046cbdc03..0e9f018e7f 100644 --- a/pkg/github/repository_resource_test.go +++ b/pkg/github/repository_resource_test.go @@ -6,8 +6,8 @@ import ( "net/url" "testing" - "github.com/SchulteDev/github_github-mcp-server/pkg/raw" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + "github.com/github/github-mcp-server/pkg/raw" + "github.com/github/github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/migueleliasweb/go-github-mock/src/mock" diff --git a/pkg/github/search.go b/pkg/github/search.go index c60f6bcd58..a72b38bc6a 100644 --- a/pkg/github/search.go +++ b/pkg/github/search.go @@ -6,8 +6,8 @@ import ( "fmt" "io" - ghErrors "github.com/SchulteDev/github_github-mcp-server/pkg/errors" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + ghErrors "github.com/github/github-mcp-server/pkg/errors" + "github.com/github/github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" diff --git a/pkg/github/search_test.go b/pkg/github/search_test.go index 722ecca680..bfd014993a 100644 --- a/pkg/github/search_test.go +++ b/pkg/github/search_test.go @@ -6,8 +6,8 @@ import ( "net/http" "testing" - "github.com/SchulteDev/github_github-mcp-server/internal/toolsnaps" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + "github.com/github/github-mcp-server/internal/toolsnaps" + "github.com/github/github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/migueleliasweb/go-github-mock/src/mock" "github.com/stretchr/testify/assert" diff --git a/pkg/github/secret_scanning.go b/pkg/github/secret_scanning.go index bcfa7e8e6a..bea6df2aeb 100644 --- a/pkg/github/secret_scanning.go +++ b/pkg/github/secret_scanning.go @@ -7,8 +7,8 @@ import ( "io" "net/http" - ghErrors "github.com/SchulteDev/github_github-mcp-server/pkg/errors" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + ghErrors "github.com/github/github-mcp-server/pkg/errors" + "github.com/github/github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" diff --git a/pkg/github/secret_scanning_test.go b/pkg/github/secret_scanning_test.go index 4f2e148c17..38b573e097 100644 --- a/pkg/github/secret_scanning_test.go +++ b/pkg/github/secret_scanning_test.go @@ -6,7 +6,7 @@ import ( "net/http" "testing" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + "github.com/github/github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/migueleliasweb/go-github-mock/src/mock" "github.com/stretchr/testify/assert" diff --git a/pkg/github/server_test.go b/pkg/github/server_test.go index 4a8ed03aa6..3f00d7b24d 100644 --- a/pkg/github/server_test.go +++ b/pkg/github/server_test.go @@ -8,7 +8,7 @@ import ( "net/http" "testing" - "github.com/SchulteDev/github_github-mcp-server/pkg/raw" + "github.com/github/github-mcp-server/pkg/raw" "github.com/google/go-github/v72/github" "github.com/shurcooL/githubv4" "github.com/stretchr/testify/assert" diff --git a/pkg/github/tools.go b/pkg/github/tools.go index 33d4c59cbf..a469b76780 100644 --- a/pkg/github/tools.go +++ b/pkg/github/tools.go @@ -3,9 +3,9 @@ package github import ( "context" - "github.com/SchulteDev/github_github-mcp-server/pkg/raw" - "github.com/SchulteDev/github_github-mcp-server/pkg/toolsets" - "github.com/SchulteDev/github_github-mcp-server/pkg/translations" + "github.com/github/github-mcp-server/pkg/raw" + "github.com/github/github-mcp-server/pkg/toolsets" + "github.com/github/github-mcp-server/pkg/translations" "github.com/google/go-github/v72/github" "github.com/mark3labs/mcp-go/server" "github.com/shurcooL/githubv4" diff --git a/third-party-licenses.darwin.md b/third-party-licenses.darwin.md index 7dea1117db..e616fa5607 100644 --- a/third-party-licenses.darwin.md +++ b/third-party-licenses.darwin.md @@ -8,7 +8,7 @@ Some packages may only be included on certain architectures or operating systems - [github.com/fsnotify/fsnotify](https://pkg.go.dev/github.com/fsnotify/fsnotify) ([BSD-3-Clause](https://github.com/fsnotify/fsnotify/blob/v1.8.0/LICENSE)) - - [github.com/SchulteDev/github_github-mcp-server](https://pkg.go.dev/github.com/SchulteDev/github_github-mcp-server) ([MIT](https://github.com/SchulteDev/github_github-mcp-server/blob/HEAD/LICENSE)) + - [github.com/github/github-mcp-server](https://pkg.go.dev/github.com/github/github-mcp-server) ([MIT](https://github.com/github/github-mcp-server/blob/HEAD/LICENSE)) - [github.com/go-openapi/jsonpointer](https://pkg.go.dev/github.com/go-openapi/jsonpointer) ([Apache-2.0](https://github.com/go-openapi/jsonpointer/blob/v0.19.5/LICENSE)) - [github.com/go-openapi/swag](https://pkg.go.dev/github.com/go-openapi/swag) ([Apache-2.0](https://github.com/go-openapi/swag/blob/v0.21.1/LICENSE)) - [github.com/go-viper/mapstructure/v2](https://pkg.go.dev/github.com/go-viper/mapstructure/v2) ([MIT](https://github.com/go-viper/mapstructure/blob/v2.3.0/LICENSE)) @@ -43,4 +43,4 @@ Some packages may only be included on certain architectures or operating systems - [gopkg.in/yaml.v2](https://pkg.go.dev/gopkg.in/yaml.v2) ([Apache-2.0](https://github.com/go-yaml/yaml/blob/v2.4.0/LICENSE)) - [gopkg.in/yaml.v3](https://pkg.go.dev/gopkg.in/yaml.v3) ([MIT](https://github.com/go-yaml/yaml/blob/v3.0.1/LICENSE)) -[github/github-mcp-server]: https://github.com/SchulteDev/github_github-mcp-server +[github/github-mcp-server]: https://github.com/github/github-mcp-server diff --git a/third-party-licenses.linux.md b/third-party-licenses.linux.md index 7dea1117db..e616fa5607 100644 --- a/third-party-licenses.linux.md +++ b/third-party-licenses.linux.md @@ -8,7 +8,7 @@ Some packages may only be included on certain architectures or operating systems - [github.com/fsnotify/fsnotify](https://pkg.go.dev/github.com/fsnotify/fsnotify) ([BSD-3-Clause](https://github.com/fsnotify/fsnotify/blob/v1.8.0/LICENSE)) - - [github.com/SchulteDev/github_github-mcp-server](https://pkg.go.dev/github.com/SchulteDev/github_github-mcp-server) ([MIT](https://github.com/SchulteDev/github_github-mcp-server/blob/HEAD/LICENSE)) + - [github.com/github/github-mcp-server](https://pkg.go.dev/github.com/github/github-mcp-server) ([MIT](https://github.com/github/github-mcp-server/blob/HEAD/LICENSE)) - [github.com/go-openapi/jsonpointer](https://pkg.go.dev/github.com/go-openapi/jsonpointer) ([Apache-2.0](https://github.com/go-openapi/jsonpointer/blob/v0.19.5/LICENSE)) - [github.com/go-openapi/swag](https://pkg.go.dev/github.com/go-openapi/swag) ([Apache-2.0](https://github.com/go-openapi/swag/blob/v0.21.1/LICENSE)) - [github.com/go-viper/mapstructure/v2](https://pkg.go.dev/github.com/go-viper/mapstructure/v2) ([MIT](https://github.com/go-viper/mapstructure/blob/v2.3.0/LICENSE)) @@ -43,4 +43,4 @@ Some packages may only be included on certain architectures or operating systems - [gopkg.in/yaml.v2](https://pkg.go.dev/gopkg.in/yaml.v2) ([Apache-2.0](https://github.com/go-yaml/yaml/blob/v2.4.0/LICENSE)) - [gopkg.in/yaml.v3](https://pkg.go.dev/gopkg.in/yaml.v3) ([MIT](https://github.com/go-yaml/yaml/blob/v3.0.1/LICENSE)) -[github/github-mcp-server]: https://github.com/SchulteDev/github_github-mcp-server +[github/github-mcp-server]: https://github.com/github/github-mcp-server diff --git a/third-party-licenses.windows.md b/third-party-licenses.windows.md index 18b8402623..d34ce24490 100644 --- a/third-party-licenses.windows.md +++ b/third-party-licenses.windows.md @@ -8,7 +8,7 @@ Some packages may only be included on certain architectures or operating systems - [github.com/fsnotify/fsnotify](https://pkg.go.dev/github.com/fsnotify/fsnotify) ([BSD-3-Clause](https://github.com/fsnotify/fsnotify/blob/v1.8.0/LICENSE)) - - [github.com/SchulteDev/github_github-mcp-server](https://pkg.go.dev/github.com/SchulteDev/github_github-mcp-server) ([MIT](https://github.com/SchulteDev/github_github-mcp-server/blob/HEAD/LICENSE)) + - [github.com/github/github-mcp-server](https://pkg.go.dev/github.com/github/github-mcp-server) ([MIT](https://github.com/github/github-mcp-server/blob/HEAD/LICENSE)) - [github.com/go-openapi/jsonpointer](https://pkg.go.dev/github.com/go-openapi/jsonpointer) ([Apache-2.0](https://github.com/go-openapi/jsonpointer/blob/v0.19.5/LICENSE)) - [github.com/go-openapi/swag](https://pkg.go.dev/github.com/go-openapi/swag) ([Apache-2.0](https://github.com/go-openapi/swag/blob/v0.21.1/LICENSE)) - [github.com/go-viper/mapstructure/v2](https://pkg.go.dev/github.com/go-viper/mapstructure/v2) ([MIT](https://github.com/go-viper/mapstructure/blob/v2.3.0/LICENSE)) @@ -44,4 +44,4 @@ Some packages may only be included on certain architectures or operating systems - [gopkg.in/yaml.v2](https://pkg.go.dev/gopkg.in/yaml.v2) ([Apache-2.0](https://github.com/go-yaml/yaml/blob/v2.4.0/LICENSE)) - [gopkg.in/yaml.v3](https://pkg.go.dev/gopkg.in/yaml.v3) ([MIT](https://github.com/go-yaml/yaml/blob/v3.0.1/LICENSE)) -[github/github-mcp-server]: https://github.com/SchulteDev/github_github-mcp-server +[github/github-mcp-server]: https://github.com/github/github-mcp-server From f313afc9c0b7aa08ba7151b672c265ab0b5a945a Mon Sep 17 00:00:00 2001 From: Markus Schulte Date: Thu, 3 Jul 2025 10:59:22 +0200 Subject: [PATCH 3/5] chore: simplify ldflags paths and update .gitignore patterns - Shortened ldflags paths in Dockerfile and .goreleaser.yaml for clarity. - Updated .gitignore to cover binaries more broadly (`github-mcp-server*`). --- .gitignore | 2 +- .goreleaser.yaml | 2 +- Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0ad709cbf2..7c58473ed2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ .idea -cmd/github-mcp-server/github-mcp-server +github-mcp-server* # VSCode .vscode/* diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 713e662d19..e7acbac3bb 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -9,7 +9,7 @@ builds: - env: - CGO_ENABLED=0 ldflags: - - -s -w -X github.com/github/github-mcp-server/cmd/github-mcp-server.version={{.Version}} -X github.com/github/github-mcp-server/cmd/github-mcp-server.commit={{.Commit}} -X github.com/github/github-mcp-server/cmd/github-mcp-server.date={{.Date}} + - -s -w -X cmd.version={{.Version}} -X cmd.commit={{.Commit}} -X cmd.date={{.Date}} goos: - linux - windows diff --git a/Dockerfile b/Dockerfile index 5fb8145848..df2b4beb45 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ RUN --mount=type=cache,target=/var/cache/apk \ RUN --mount=type=cache,target=/go/pkg/mod \ --mount=type=cache,target=/root/.cache/go-build \ --mount=type=bind,target=. \ - CGO_ENABLED=0 go build -ldflags="-s -w -X github.com/github/github-mcp-server/cmd/github-mcp-server.version=${VERSION} -X github.com/github/github-mcp-server/cmd/github-mcp-server.commit=$(git rev-parse HEAD) -X github.com/github/github-mcp-server/cmd/github-mcp-server.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \ + CGO_ENABLED=0 go build -ldflags="-s -w -X cmd.version=${VERSION} -X cmd.commit=$(git rev-parse HEAD) -X cmd.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \ -o /bin/github-mcp-server . # Make a stage to run the app From 5fc9a2da04f0164fff3d410ccfe7fbcf96c1a0c3 Mon Sep 17 00:00:00 2001 From: Markus Schulte Date: Thu, 3 Jul 2025 11:01:44 +0200 Subject: [PATCH 4/5] chore: simplify docs generator build step in workflow --- .github/workflows/docs-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-check.yml b/.github/workflows/docs-check.yml index c30bbce53b..180bec8859 100644 --- a/.github/workflows/docs-check.yml +++ b/.github/workflows/docs-check.yml @@ -22,7 +22,7 @@ jobs: go-version-file: 'go.mod' - name: Build docs generator - run: go build -o github-mcp-server . + run: go build . - name: Generate documentation run: ./github-mcp-server generate-docs From 14a5df6dcec328a6917da4b28b2702673d313799 Mon Sep 17 00:00:00 2001 From: Markus Schulte Date: Thu, 3 Jul 2025 11:08:33 +0200 Subject: [PATCH 5/5] chore: remove unused `main` field from .goreleaser.yaml --- .goreleaser.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index e7acbac3bb..93ae1dd015 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -14,7 +14,6 @@ builds: - linux - windows - darwin - main: . archives: - formats: tar.gz