Skip to content

Commit bfc09e7

Browse files
fix(mcp_manager): change GitHub MCP default to docker mode
Remote mode requires GitHub Copilot subscription for OAuth authentication. Change default to docker mode which works with PAT without subscription. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent afb49ea commit bfc09e7

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.env.example

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ GITHUB_PERSONAL_ACCESS_TOKEN=
66
# For GitHub Enterprise Server, use your domain (e.g., github.mycompany.com)
77
GITHUB_HOST=github.com
88

9-
# GitHub MCP Mode (Optional, defaults to "remote")
10-
# - remote: Use GitHub-hosted MCP server (Recommended, no Docker required)
11-
# - docker: Use local Docker container
12-
GITHUB_MCP_MODE=remote
9+
# GitHub MCP Mode (Optional, defaults to "docker")
10+
# - docker: Use local Docker container (Default, works without Copilot subscription)
11+
# - remote: Use GitHub-hosted MCP server (Requires GitHub Copilot subscription)
12+
GITHUB_MCP_MODE=docker
1313

1414
# GitHub Toolsets (Optional, only used in docker mode)
1515
# Available: repos, issues, pull_requests, actions, code_security, discussions

src/features/mcp_manager/config.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ impl EnvConfig {
2626
}
2727

2828
/// 取得 GitHub MCP 模式(remote 或 docker)
29+
/// 預設為 docker,因為 remote 模式需要 GitHub Copilot 訂閱
2930
pub fn github_mcp_mode_value(&self) -> &'static str {
3031
match self.github_mcp_mode {
31-
Some(mode) if mode.eq_ignore_ascii_case("docker") => "docker",
32-
_ => "remote",
32+
Some(mode) if mode.eq_ignore_ascii_case("remote") => "remote",
33+
_ => "docker",
3334
}
3435
}
3536

0 commit comments

Comments
 (0)