From e07ea013bd13b5c183d3314c6070fab61daec759 Mon Sep 17 00:00:00 2001 From: YutaSaito <36355491+uc4w6c@users.noreply.github.com> Date: Tue, 29 Jul 2025 09:39:52 +0900 Subject: [PATCH] feat: add GITHUB_HOST to github-mcp-server for GitHub Enterprise Server (#343) --- src/mcp/install-mcp-server.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mcp/install-mcp-server.ts b/src/mcp/install-mcp-server.ts index 35bb94c..c8cb125 100644 --- a/src/mcp/install-mcp-server.ts +++ b/src/mcp/install-mcp-server.ts @@ -1,5 +1,5 @@ import * as core from "@actions/core"; -import { GITHUB_API_URL } from "../github/api/config"; +import { GITHUB_API_URL, GITHUB_SERVER_URL } from "../github/api/config"; import type { ParsedGitHubContext } from "../github/context"; import { Octokit } from "@octokit/rest"; @@ -157,9 +157,12 @@ export async function prepareMcpConfig( "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server:sha-efef8ae", // https://github.com/github/github-mcp-server/releases/tag/v0.9.0 + "-e", + "GITHUB_HOST", ], env: { GITHUB_PERSONAL_ACCESS_TOKEN: githubToken, + GITHUB_HOST: GITHUB_SERVER_URL, }, }; }