You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ide/mcp-servers.md
+50-2Lines changed: 50 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,55 @@ You have multiple options to add an MCP server in Visual Studio:
84
84
85
85
With the latest servicing release of 17.14, Visual Studio now supports direct installation of MCP Servers. You can click the **Install** button on an MCP server to automatically add it to your Visual Studio instance.
86
86
87
-
To add a one-click install button to your MCP server repo, or if you notice one missing from a public server repo, you can create one using the protocol handler template
87
+
To enable a one-click install button for any MCP server in Visual Studio:
1. Insert the URL-encoded JSON into the MCP URI format to form a Visual Studio install link.
120
+
121
+
Format:
122
+
123
+
```bash
124
+
vsweb+mcp:/install?<ENCODED_JSON>
125
+
```
126
+
127
+
1. Add the markdown badge to your GitHub repo/docs.
128
+
129
+
Example:
130
+
131
+
```markdown
132
+
[](vsweb+mcp:/install?<ENCODED_JSON>)
133
+
```
134
+
135
+
When a user clicks the badge, Visual Studio will launch (or prompt to open), and the MCP install dialog will appear, pre-filled with your server details.
88
136
89
137
### Add from chat view
90
138
@@ -97,7 +145,7 @@ To add an MCP server in Visual Studio:
97
145
98
146
### Create a file to manage configuration of MCP servers
99
147
100
-
If you do not already have an `mcp.json` file, you can create it in various locations depending on the repos, users, and IDEs you would like the servers to be available/used for.
148
+
If you do not already have an `mcp.json` file, create oneinany of the supported locations based on your repository, user, or IDE requirements. To add an MCP server, locate the server’s JSON configuration online (for example, from the GitHub MCP servers repository) and paste it into your `mcp.json` file.
101
149
102
150
### File locations for automatic discovery of MCP configuration
0 commit comments