Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update e2e tests to use GITHUB_ACCESS_TOKEN
- Update e2e tests to use new GITHUB_ACCESS_TOKEN variable
- Update e2e README documentation

Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
  • Loading branch information
Copilot and SamMorrowDrums committed Dec 23, 2025
commit 18f54e8b85bfec11b757719db11c3be340369839
Binary file modified e2e.test
Binary file not shown.
2 changes: 1 addition & 1 deletion e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Since these tests require a token to interact with real resources on the GitHub
GITHUB_MCP_SERVER_E2E_TOKEN=<YOUR TOKEN> go test -v --tags e2e ./e2e
```

The `GITHUB_MCP_SERVER_E2E_TOKEN` environment variable is mapped to `GITHUB_PERSONAL_ACCESS_TOKEN` internally, but separated to avoid accidental reuse of credentials.
The `GITHUB_MCP_SERVER_E2E_TOKEN` environment variable is mapped to `GITHUB_ACCESS_TOKEN` internally, but separated to avoid accidental reuse of credentials.

## Example

Expand Down
4 changes: 2 additions & 2 deletions e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func setupMCPClient(t *testing.T, options ...clientOption) *mcp.ClientSession {
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN", // Personal access token is all required
"GITHUB_ACCESS_TOKEN", // GitHub access token (PAT or OAuth)
}

host := getE2EHost()
Expand All @@ -193,7 +193,7 @@ func setupMCPClient(t *testing.T, options ...clientOption) *mcp.ClientSession {
// Construct the env vars for the MCP Client to execute docker with
// We need to include os.Environ() so docker can find its socket and config
dockerEnvVars := append(os.Environ(),
fmt.Sprintf("GITHUB_PERSONAL_ACCESS_TOKEN=%s", token),
fmt.Sprintf("GITHUB_ACCESS_TOKEN=%s", token),
fmt.Sprintf("GITHUB_TOOLSETS=%s", strings.Join(opts.enabledToolsets, ",")),
)

Expand Down