惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 司徒正美
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
罗磊的独立博客
The GitHub Blog
The GitHub Blog
L
LangChain Blog
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
DataBreaches.Net
宝玉的分享
宝玉的分享
U
Unit 42
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
N
Netflix TechBlog - Medium
The Cloudflare Blog
Microsoft Azure Blog
Microsoft Azure Blog
H
Help Net Security
美团技术团队
大猫的无限游戏
大猫的无限游戏
雷峰网
雷峰网
爱范儿
爱范儿
酷 壳 – CoolShell
酷 壳 – CoolShell
MongoDB | Blog
MongoDB | Blog

Visual Studio Code - Code Editing. Redefined.

Visual Studio Code 1.138 (Insiders) Visual Studio Code 1.137 (Insiders) Visual Studio Code 1.136 (Insiders) Introducing the Agent Host for persistent, portable agent sessions Visual Studio Code 1.135 (Insiders) Visual Studio Code 1.134 (Insiders) Visual Studio Code 1.133 (Insiders) Visual Studio Code 1.132 (Insiders) MAI-Code-1-Flash: early results from real developer workflows Visual Studio Code 1.130 (Insiders) Visual Studio Code 1.131 (Insiders) Visual Studio Code 1.129 (Insiders) How Prompt Tuning Improved GPT-5.5 in VS Code Visual Studio Code 1.127 Visual Studio Code 1.128 Iterating faster with TypeScript 7 Visual Studio Code 1.126 What 50,000 Runs of a 5-Line Eval Taught Us Use your own language model key in VS Code Improving token efficiency for GitHub Copilot in VS Code December 2025 (version 1.108) November 2025 (version 1.107) October 2025 (version 1.106) September 2025 (version 1.105) August 2025 (version 1.104) July 2025 (version 1.103) June 2025 (version 1.102) May 2025 (version 1.101) April 2025 (version 1.100) March 2025 (version 1.99)
Beyond the tools, adding MCP in VS Code
Microsoft · 2021-11-03 · via Visual Studio Code - Code Editing. Redefined.

May 14th, 2025 by Harald Kirschner

When we first introduced agent mode in VS Code, it opened new ways of interacting with your code and workspace through chat. You could ask the agent to inspect files, run builds, and even debug tests. But you were limited by what the model was trained on and the contents of your workspace. So, the next step was clear: we needed a way for agents to reach beyond those boundaries and interact with real, external services in a secure, user-controlled way.

Our first attempt followed the familiar VS Code pattern: extensibility through the Tools and Chat participants APIs. This made sense given the thousands of extensions already in the ecosystem, but the industry was moving quickly toward a new standard: the Model Context Protocol (MCP). MCP is best understood as a protocol for connecting AI agents to a wide range of external tools and services in a consistent way, much like how HTTP standardized communication for the web. The goal is to let any client, not just VS Code, plug in powerful tool servers like databases, code search, and deployment systems, and have them “just work.”

This shift to MCP unlocked a wider ecosystem almost overnight. Now, VS Code users can take advantage of servers like Playwright MCP Server for frontend verification, GitHub MCP Server for repository insights and pull requests, or Context7 for smarter API usage. The list of servers continues to grow, and MCP has quickly become a foundation for bringing additional capabilities across AI agents.

Making MCP work for everyone: applying VS Code's design principles

VS Code's design philosophy was always focused on making powerful features easy to use, safe by default, and giving users clear control. Those same principles guided our MCP integration.

Getting started with MCP servers previously meant copying JSON blocks into a config file and managing command-line flags. We wanted to simplify this: with the MCP: Add Server command, you can set up a server from a package manager (NPM, PyPI, Docker) and have VS Code handle the rest. Websites can even offer an 'Install in VS Code' button to streamline onboarding further, and VS Code auto-discovers configurations from other clients like Claude Desktop when possible.

Add MCP Server commands in VS Code

Security was another major focus. Managing secrets for MCP servers should not mean checking passwords into source control. We added support for input variables that prompt you once, then encrypt and store secrets securely, and for referencing existing .env files you already trust for local development. This makes it easier for teams to share and review configurations safely.

GitHub MCP Server with safely stored PAT using input variables

User control is central to the experience. With the tool picker, you decide which tools an agent can access in a given session and see clear descriptions and controls. For those developing or debugging servers, VS Code surfaces logs and makes it simple to start, stop, and restart servers. These touches make MCP not just powerful, but approachable for both end users and server developers.

Beyond the basics: richer MCP capabilities

The journey didn’t stop at implementing baseline compatibility for tools. Much of the value of MCP comes from the deeper features in its specification. Capabilities that, when fully supported, make tools more contextual, adaptive, and robust.

For example, roots support lets MCP servers understand the structure of your workspace. Instead of having to ask the user for folder paths or rely on configuration, servers receive a list of workspace folders up front, allowing them to tailor tools to the project at hand. This enables use cases like finding all TODOs across a monorepo, or activating deployment tools based on detected infrastructure files.

Dynamic tool discovery allows servers to change the set of available tools on the fly. Instead of a static list, servers can adapt tools based on context or project state—such as showing different actions as a workflow progresses, or surfacing tools relevant to the frameworks detected in your codebase. This keeps the agent’s capabilities relevant and avoids clutter. For real-live usage check the dynamic servers example from the TypeScript SDK or the dynamic toolset discovery feature in the GitHub MCP Server.

The last VS Code update also added support for tool annotations, which help servers provide helpful metadata for tools, such as human-readable names or hints about whether a tool should be run in read-only mode. These details improve both the agent’s behavior and the user’s understanding.

Finally, streamable HTTP is now supported as the latest transport in the MCP spec. This makes remote server integration smoother and more scalable, especially for cloud-hosted or serverless tool providers.

Our goal is to support the latest MCP features in VS Code, so users can benefit from a rich AI experience and server developers can implement those features with confidence.

Growing the ecosystem: collaboration and what's next

MCP is now powering official servers from GitHub, Playwright, Azure, and Perplexity, and the ecosystem is only getting larger. What sets VS Code apart is not just early adoption, but a commitment to spec-first engineering. By following the MCP spec closely and contributing back improvements on authorization, discovery, and security, we’re helping shape the protocol as it matures, making sure that innovation in the ecosystem benefits everyone, not just VS Code users.

Looking ahead, we’re actively working to land support in VS Code for upcoming MCP features already in the spec, including Authorization, Prompts, Resources, and Sampling. These additions will bring even richer and more flexible agent integrations as they arrive in the product.

If you’re building developer tools or infrastructure, MCP is now a practical and open way to make them accessible to AI agents in VS Code and beyond. Whether you want to use servers off the shelf or create your own, the experience should be both robust and straightforward.

To get started, check out ModelContextProtocol.io, VS Code MCP Docs, or reference servers on GitHub.

We’re excited to see what you’ll build—and how agent workflows will evolve as the ecosystem expands.

Happy Coding!