Skip to content

MCP Developer Guide #8499

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Jun 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
dcca77b
First draft
ntrogh Jun 19, 2025
c799750
Merge branch 'main' into mcp-dev-guide
ntrogh Jun 19, 2025
f7a5c48
Update ToC and sitemap
ntrogh Jun 19, 2025
ff1d567
Fix link to MCP for beginners
ntrogh Jun 19, 2025
5ba0f4a
Update docs/copilot/guides/mcp-developer-guide.md
ntrogh Jun 20, 2025
38108d7
Update docs/copilot/guides/mcp-developer-guide.md
ntrogh Jun 20, 2025
38e9ed4
Fix URL handler
ntrogh Jun 20, 2025
f46e3ab
Finalize content
ntrogh Jun 20, 2025
c59ab65
Edit pass
ntrogh Jun 20, 2025
ed59272
Update docs/copilot/guides/mcp-developer-guide.md
ntrogh Jun 22, 2025
983f48b
Update docs/copilot/guides/mcp-developer-guide.md
ntrogh Jun 22, 2025
8344f3b
Update docs/copilot/guides/mcp-developer-guide.md
ntrogh Jun 22, 2025
70ee955
Update docs/copilot/guides/mcp-developer-guide.md
ntrogh Jun 22, 2025
16a1ec6
Update docs/copilot/guides/mcp-developer-guide.md
ntrogh Jun 22, 2025
cccab02
Update after review
ntrogh Jun 22, 2025
d3651d6
Update docs/copilot/guides/mcp-developer-guide.md
ntrogh Jun 23, 2025
c6318cf
Update docs/copilot/guides/mcp-developer-guide.md
ntrogh Jun 23, 2025
e850c56
Update docs/copilot/guides/mcp-developer-guide.md
ntrogh Jun 23, 2025
8ab2f2c
Update docs/copilot/guides/mcp-developer-guide.md
ntrogh Jun 23, 2025
f845637
Update docs/copilot/guides/mcp-developer-guide.md
ntrogh Jun 23, 2025
ab8233a
Fix typo
ntrogh Jun 23, 2025
fc76ce9
Update docs/copilot/guides/mcp-developer-guide.md
ntrogh Jun 24, 2025
21864a9
Update auth section after review
ntrogh Jun 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions build/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,11 @@
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://code.visualstudio.com/docs/copilot/guides/mcp-developer-guide</loc>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://code.visualstudio.com/docs/copilot/reference/copilot-vscode-features</loc>
<changefreq>weekly</changefreq>
Expand Down
12 changes: 1 addition & 11 deletions docs/copilot/chat/mcp-servers.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ VS Code also includes a URL handler that you can use to install an MCP server. T

```typescript
// For Insiders, use `vscode-insiders` instead of `code`
const link = `vscode:mcp/install?${encodeURIComponent(JSON.stringify(obj))`;
const link = `vscode:mcp/install?${encodeURIComponent(JSON.stringify(obj))}`;
```

This link can be used in a browser, or opened on the command line, for example via `xdg-open $LINK` on Linux.
Expand Down Expand Up @@ -398,16 +398,6 @@ You can enable _development mode_ for MCP servers by adding a `dev` key to the M
> [!NOTE]
> We currently only support debugging Node.js and Python servers launched with `node` and `python` respectively.

## Create an MCP server

VS Code has all the tools you need to develop your own MCP server. While MCP servers can be written in any language that can handle `stdout`, the MCP's official SDKs are a good place to start:

* [TypeScript SDK](https://github.com/modelcontextprotocol/typescript-sdk)
* [Python SDK](https://github.com/modelcontextprotocol/python-sdk)
* [Java SDK](https://github.com/modelcontextprotocol/java-sdk)
* [Kotlin SDK](https://github.com/modelcontextprotocol/kotlin-sdk)
* [C# SDK](https://github.com/modelcontextprotocol/csharp-sdk)

## Frequently asked questions

### Can I control which MCP tools are used?
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
256 changes: 256 additions & 0 deletions docs/copilot/guides/mcp-developer-guide.md

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions docs/toc.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,10 @@
"area": "copilot/guides",
"noCollapse": true,
"topics": [
["Edit notebooks with AI", "/docs/copilot/guides/notebooks-with-ai"],
["Edit Notebooks with AI", "/docs/copilot/guides/notebooks-with-ai"],
["Test with AI", "/docs/copilot/guides/test-with-copilot"],
["Debug with AI", "/docs/copilot/guides/debug-with-copilot"]
["Debug with AI", "/docs/copilot/guides/debug-with-copilot"],
["MCP Dev Guide", "/docs/copilot/guides/mcp-developer-guide"]
]
}
],
Expand Down