Skip to content

Commit e07ea01

Browse files
authored
feat: add GITHUB_HOST to github-mcp-server for GitHub Enterprise Server (anthropics#343)
1 parent 6037d75 commit e07ea01

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/mcp/install-mcp-server.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as core from "@actions/core";
2-
import { GITHUB_API_URL } from "../github/api/config";
2+
import { GITHUB_API_URL, GITHUB_SERVER_URL } from "../github/api/config";
33
import type { ParsedGitHubContext } from "../github/context";
44
import { Octokit } from "@octokit/rest";
55

@@ -157,9 +157,12 @@ export async function prepareMcpConfig(
157157
"-e",
158158
"GITHUB_PERSONAL_ACCESS_TOKEN",
159159
"ghcr.io/github/github-mcp-server:sha-efef8ae", // https://github.com/github/github-mcp-server/releases/tag/v0.9.0
160+
"-e",
161+
"GITHUB_HOST",
160162
],
161163
env: {
162164
GITHUB_PERSONAL_ACCESS_TOKEN: githubToken,
165+
GITHUB_HOST: GITHUB_SERVER_URL,
163166
},
164167
};
165168
}

0 commit comments

Comments
 (0)