豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit d082ca4

Browse files
docs: add troubleshooting for Claude Code plugin HTTPS clone failures (#1195)
## Summary When installing `chrome-devtools-mcp` as a Claude Code plugin (from the official Anthropic marketplace or via `/plugin marketplace add`), the plugin system clones the repository using HTTPS (`https://github.com/ChromeDevTools/chrome-devtools-mcp.git`). In environments where outbound HTTPS connectivity to GitHub is restricted — such as servers behind corporate firewalls, restrictive proxy configurations, or hosts with port 443 blocked — this clone operation fails with a timeout: ``` chrome-devtools-mcp@claude-plugins-official: Failed to download/cache plugin chrome-devtools-mcp: Failed to clone repository: Cloning into '...'... fatal: unable to access 'https://github.com/ChromeDevTools/chrome-devtools-mcp.git/': Failed to connect to github.com port 443 after 136078 ms: Couldn't connect to server ``` This is a real-world scenario encountered on production Linux servers where SSH to GitHub (port 22) works but HTTPS (port 443) is blocked or unreliable. The Claude Code plugin marketplace (`anthropics/claude-plugins-official`) specifies the HTTPS URL as the plugin source, and users have no way to override this URL within the plugin system itself. ## Changes ### `docs/troubleshooting.md` Added a new troubleshooting section **Claude Code plugin installation fails with `Failed to clone repository`** under Specific problems that documents: - **The exact error message** users encounter, making it searchable - **Root cause explanation**: restricted HTTPS connectivity, firewalls, proxy configs - **Workaround 1 — SSH redirect**: Using `git config --global url."git@github.com:".insteadOf "https://github.com/"` to transparently redirect all GitHub HTTPS git operations to use SSH - **Workaround 2 — CLI installation**: Using `claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest` to install the MCP server via npm/npx instead of git clone ### `README.md` Added a `[!TIP]` callout in the Claude Code **Install as a Plugin** section that cross-references the troubleshooting guide. ## Motivation The HTTPS clone URL for this plugin is defined in the Anthropic official plugin marketplace, not in this repository. Since users cannot change the marketplace URL configuration, the most actionable fix from this repository's side is to document the issue and provide clear workarounds. ## Test plan - [x] `npm run check-format` passes (eslint + prettier) - [x] `npm run gen` produces no unexpected diff (auto-generated docs unchanged) - [x] Documentation-only change — no code, tool, or schema modifications - [x] Markdown anchor link in README TIP callout correctly references the troubleshooting section heading - [x] Both workaround commands verified in the environment where this issue was encountered
1 parent e237bad commit d082ca4

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ Then, install the plugin:
156156

157157
Restart Claude Code to have the MCP server and skills load (check with `/skills`).
158158

159+
> [!TIP]
160+
> If the plugin installation fails with a `Failed to clone repository` error (e.g., HTTPS connectivity issues behind a corporate firewall), see the [troubleshooting guide](./docs/troubleshooting.md#claude-code-plugin-installation-fails-with-failed-to-clone-repository) for workarounds, or use the CLI installation method above instead.
161+
159162
</details>
160163

161164
<details>

docs/troubleshooting.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,47 @@ Possible workarounds include:
126126
}
127127
```
128128

129+
### Claude Code plugin installation fails with `Failed to clone repository`
130+
131+
When installing `chrome-devtools-mcp` as a Claude Code plugin (either from the
132+
official marketplace or via `/plugin marketplace add`), the installation may fail
133+
with a timeout error if your environment cannot reach `github.com` on port 443
134+
(HTTPS):
135+
136+
```
137+
Failed to download/cache plugin chrome-devtools-mcp: Failed to clone repository:
138+
Cloning into '...'...
139+
fatal: unable to access 'https://github.com/ChromeDevTools/chrome-devtools-mcp.git/':
140+
Failed to connect to github.com port 443
141+
```
142+
143+
This can happen in environments with restricted outbound HTTPS connectivity,
144+
corporate firewalls, or proxy configurations that block HTTPS git operations.
145+
146+
**Workaround 1: Use SSH instead of HTTPS**
147+
148+
If you have SSH access to GitHub configured, you can redirect all GitHub HTTPS
149+
URLs to use SSH by running:
150+
151+
```sh
152+
git config --global url."git@github.com:".insteadOf "https://github.com/"
153+
```
154+
155+
Then retry the plugin installation. This tells git to use your SSH key for all
156+
GitHub operations instead of HTTPS.
157+
158+
**Workaround 2: Install via CLI instead**
159+
160+
If the plugin marketplace approach fails, you can install `chrome-devtools-mcp`
161+
as an MCP server directly without cloning the repository:
162+
163+
```sh
164+
claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest
165+
```
166+
167+
This bypasses the git clone entirely and uses npm/npx to fetch the package. Note
168+
that this method installs only the MCP server without the bundled skills.
169+
129170
### Connection timeouts with `--autoConnect`
130171

131172
If you are using the `--autoConnect` flag and tools like `list_pages`, `new_page`, or `navigate_page` fail with a timeout (e.g., `ProtocolError: Network.enable timed out` or `The socket connection was closed unexpectedly`), this usually means the MCP server cannot handshake with the running Chrome instance correctly. Ensure:

0 commit comments

Comments
 (0)