Skip to content

Commit 1e37a4a

Browse files
committed
chore: refactor package imports and update references from github-mcp-server to github-mcp-http
- Updated import paths in various Go files to reflect the new package name `github-mcp-http`. - Modified test files to ensure they reference the correct internal packages. - Adjusted search queries in tests to point to the new repository name. - Changed configuration file names and paths in translation helper functions. - Updated documentation generation scripts to use the new package name. - Revised third-party license files to reflect the new repository name.
1 parent 8aa73b9 commit 1e37a4a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+225
-225
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @github/github-mcp-server
1+
* @github/github-mcp-http

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A clear and concise description of what the bug is.
1313

1414
### Affected version
1515

16-
Please run ` docker run -i --rm ghcr.io/github/github-mcp-server ./github-mcp-server --version` and paste the output below
16+
Please run ` docker run -i --rm ghcr.io/github/github-mcp-http ./github-mcp-http --version` and paste the output below
1717

1818
### Steps to reproduce the behavior
1919

.github/licenses.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# GitHub MCP Server dependencies
22

3-
The following open source dependencies are used to build the [github/github-mcp-server][] GitHub Model Context Protocol Server.
3+
The following open source dependencies are used to build the [github/github-mcp-http][] GitHub Model Context Protocol Server.
44

55
## Go Packages
66

@@ -10,4 +10,4 @@ Some packages may only be included on certain architectures or operating systems
1010
- [{{.Name}}](https://pkg.go.dev/{{.Name}}) ([{{.LicenseName}}]({{.LicenseURL}}))
1111
{{- end }}
1212

13-
[github/github-mcp-server]: https://github.com/github/github-mcp-server
13+
[github/github-mcp-http]: https://github.com/github/github-mcp-http

.github/workflows/docs-check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
go-version-file: 'go.mod'
2323

2424
- name: Build docs generator
25-
run: go build -o github-mcp-server ./cmd/github-mcp-server
25+
run: go build -o github-mcp-http ./cmd/github-mcp-http
2626

2727
- name: Generate documentation
28-
run: ./github-mcp-server generate-docs
28+
run: ./github-mcp-http generate-docs
2929

3030
- name: Check for documentation changes
3131
run: |
@@ -35,7 +35,7 @@ jobs:
3535
echo "The generated documentation differs from what's committed."
3636
echo "Please run the following command to update the documentation:"
3737
echo ""
38-
echo " go run ./cmd/github-mcp-server generate-docs"
38+
echo " go run ./cmd/github-mcp-http generate-docs"
3939
echo ""
4040
echo "Then commit the changes."
4141
echo ""

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
run: script/test
3030

3131
- name: Build
32-
run: go build -v ./cmd/github-mcp-server
32+
run: go build -v ./cmd/github-mcp-http

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.idea
2-
cmd/github-mcp-server/github-mcp-server
2+
cmd/github-mcp-http/github-mcp-http
33

44
# VSCode
55
.vscode/*
@@ -17,7 +17,7 @@ bin/
1717
.DS_Store
1818

1919
# binary
20-
github-mcp-server
20+
github-mcp-http
2121

2222
# Claude Code
2323
.claude/

.goreleaser.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version: 2
2-
project_name: github-mcp-server
2+
project_name: github-mcp-http
33
before:
44
hooks:
55
- go mod tidy
@@ -14,7 +14,7 @@ builds:
1414
- linux
1515
- windows
1616
- darwin
17-
main: ./cmd/github-mcp-server
17+
main: ./cmd/github-mcp-http
1818

1919
archives:
2020
- formats: tar.gz

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"request": "launch",
1111
"mode": "auto",
1212
"cwd": "${workspaceFolder}",
13-
"program": "cmd/github-mcp-server/main.go",
13+
"program": "cmd/github-mcp-http/main.go",
1414
"args": ["stdio"],
1515
"console": "integratedTerminal",
1616
},
@@ -20,7 +20,7 @@
2020
"request": "launch",
2121
"mode": "auto",
2222
"cwd": "${workspaceFolder}",
23-
"program": "cmd/github-mcp-server/main.go",
23+
"program": "cmd/github-mcp-http/main.go",
2424
"args": ["stdio", "--read-only"],
2525
"console": "integratedTerminal",
2626
}

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Repository Guidelines
22

33
## Project Structure & Module Organization
4-
The primary entrypoint lives in `cmd/github-mcp-server/main.go`; `generate_docs.go` updates documentation and `cmd/mcpcurl` offers a lightweight client. Shared logic lives under `pkg/` (tool handlers, toolsets, translations) while internal-only helpers stay in `internal/` for server wiring and schema snapshots. `e2e/` holds black-box tests, `docs/` tracks installation and policy guides, and `script/` automates linting, docs, and release chores.
4+
The primary entrypoint lives in `cmd/github-mcp-http/main.go`; `generate_docs.go` updates documentation and `cmd/mcpcurl` offers a lightweight client. Shared logic lives under `pkg/` (tool handlers, toolsets, translations) while internal-only helpers stay in `internal/` for server wiring and schema snapshots. `e2e/` holds black-box tests, `docs/` tracks installation and policy guides, and `script/` automates linting, docs, and release chores.
55

66
## Build, Test, and Development Commands
7-
`go build ./cmd/github-mcp-server` produces the local server binary. `go test -v ./...` runs unit and snapshot suites; use `script/test` when you need the race detector. `script/lint` wraps the required `golangci-lint run` configuration. Regenerate published docs with `script/generate-docs`, and probe tools by piping JSON-RPC into `go run ./cmd/github-mcp-server main.go stdio` as shown in `script/get-me`. Launch the HTTP transport with `github-mcp-server http --listen :8080` and authenticate requests with an `Authorization: Bearer <token>` header if you are fronting the server with OAuth-aware infrastructure like Pomerium.
7+
`go build ./cmd/github-mcp-http` produces the local server binary. `go test -v ./...` runs unit and snapshot suites; use `script/test` when you need the race detector. `script/lint` wraps the required `golangci-lint run` configuration. Regenerate published docs with `script/generate-docs`, and probe tools by piping JSON-RPC into `go run ./cmd/github-mcp-http main.go stdio` as shown in `script/get-me`. Launch the HTTP transport with `github-mcp-http http --listen :8080` and authenticate requests with an `Authorization: Bearer <token>` header if you are fronting the server with OAuth-aware infrastructure like Pomerium.
88

99
## Coding Style & Naming Conventions
1010
Format Go code with `gofmt` (tabs for indentation) and keep imports tidy via `goimports` or the editor equivalent. Follow the active `golangci-lint` ruleset (bodyclose, gosec, revive, etc.) and prefer explicit error handling. Tool identifiers exposed through MCP stay snake_case (e.g., `list_discussions`), while exported Go symbols remain PascalCase.

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## Contributing
22

3-
[fork]: https://github.com/github/github-mcp-server/fork
4-
[pr]: https://github.com/github/github-mcp-server/compare
5-
[style]: https://github.com/github/github-mcp-server/blob/main/.golangci.yml
3+
[fork]: https://github.com/github/github-mcp-http/fork
4+
[pr]: https://github.com/github/github-mcp-http/compare
5+
[style]: https://github.com/github/github-mcp-http/blob/main/.golangci.yml
66

77
Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
88

0 commit comments

Comments
 (0)