Skip to content

Commit 9c311c7

Browse files
theletterfclaudecursoragent
committed
fix(docs/mcp): correct VS Code deep link URL encoding
The / characters inside the JSON value were not percent-encoded (%2F), which would cause VS Code's protocol handler to misparse the config. Use full encodeURIComponent-style encoding (safe='') so the link matches what the VS Code MCP install handler expects. Co-authored-by: Claude <claude@anthropic.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent da09ee1 commit 9c311c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/mcp/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Or add it manually to your project's `.mcp.json` file:
109109
One-click installation (requires VS Code 1.99+):
110110

111111
:::{button}
112-
[Install in VS Code](vscode:mcp/install?%7B%22name%22%3A%22elastic-docs%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A//www.elastic.co/docs/_mcp/%22%7D)
112+
[Install in VS Code](vscode:mcp/install?%7B%22name%22%3A%22elastic-docs%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fwww.elastic.co%2Fdocs%2F_mcp%2F%22%7D)
113113
:::
114114

115115
Or configure manually. Create or edit `.vscode/mcp.json` in your workspace:

0 commit comments

Comments
 (0)