{"id":253501,"date":"2025-06-17T11:24:08","date_gmt":"2025-06-17T18:24:08","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=253501"},"modified":"2025-08-20T08:45:17","modified_gmt":"2025-08-20T15:45:17","slug":"agent-mode-is-now-generally-available-with-mcp-support","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/agent-mode-is-now-generally-available-with-mcp-support\/","title":{"rendered":"Agent mode is now generally available with MCP support"},"content":{"rendered":"<p>Copilot agent mode is the next evolution in AI-assisted development\u2014and it&#8217;s now generally available in the Visual Studio June update.<\/p>\n<p>Agent mode turns GitHub Copilot into an autonomous pair programmer capable of handling multi-step development tasks from end to end. It builds a plan, executes it, adapts along the way, and loops through tasks until completion.<\/p>\n<p>Agent mode can analyze your codebase, propose and apply edits, run commands, respond to build or lint errors, and self-correct. You can integrate additional tools from <a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/ide\/mcp-servers?view=vs-2022\">MCP servers<\/a> to expand the agent&#8217;s capabilities. Ask Mode, on the other hand works <em>with<\/em> you in a conversational way &#8211; you guide it with prompts, give it context, and steer the direction. Where Ask Mode helps you think through a problem, Agent Mode executes the goal.<\/p>\n<p>To try agent mode out, open <strong>Copilot Chat<\/strong>, click the <code><strong>Ask<\/strong><\/code> button, and switch to <code><strong>Agent<\/strong><\/code>.<\/p>\n<p><a href=\"https:\/\/youtu.be\/iqiR7uQJe7A\"><iframe src=\"\/\/www.youtube.com\/embed\/iqiR7uQJe7A\" width=\"560\" height=\"314\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3><strong>From Goals to Working Code<\/strong><\/h3>\n<p>Agent mode is built for real-world scenarios. You can give it high-level tasks like:<\/p>\n<ul>\n<li>\u201cAdd \u2018buy now\u2019 functionality to my product page.\u201d<\/li>\n<li>\u201cAdd a retry mechanism to this API call with exponential backoff and a unit test.\u201d<\/li>\n<li>\u201cCreate a new Blazor web app that does X&#8221;<\/li>\n<\/ul>\n<p>Copilot will try to identify the right files, apply changes, run builds, and fix errors\u2014all while keeping you in control with editable previews, undo, and a live action feed. The more context and detail you provide, the better the results. Agent mode works best when it understands your intent clearly. The more precise your instructions and context, the more effective the outcome.<\/p>\n<h1>Tool calling<\/h1>\n<p>At its core, agent mode uses<strong> tool calling <\/strong>to access a growing set of capabilities inside Visual Studio. When given a goal, it selects and executes the right tools step by step.\u00a0You can explore the available tools via the tool&#8217;s dropdown (icon with two wrenches) in the Copilot Chat Window.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2025\/06\/mcptools.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-253502\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2025\/06\/mcptools.png\" alt=\"mcp tools image\" width=\"624\" height=\"296\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2025\/06\/mcptools.png 624w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2025\/06\/mcptools-300x142.png 300w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><\/a><\/p>\n<p>Want it to be more powerful? You can extend the agent by adding tools from an ecosystem of Model Context Protocol (MCP) extenders.<\/p>\n<h1>Agent mode + MCP<\/h1>\n<p>Model Context Protocol (MCP) is a protocol designed to seamlessly connect AI agents with a variety of external tools and services, similar to how HTTP standardized web communication. The aim is to enable any client to integrate robust tool servers such as databases, code search, and deployment systems, without writing customer connections for each tool. With MCP, the agent can be configured to access rich, real-time context from across your development stack:<\/p>\n<ul>\n<li>GitHub repositories<\/li>\n<li>CI\/CD pipelines<\/li>\n<li>Monitoring and telemetry systems<\/li>\n<li>And more<\/li>\n<\/ul>\n<p>MCP is open source and extensible, so you can connect any compatible server. Common integrations include GitHub, Azure, and external providers like Perplexity. Check out the MCP <a href=\"https:\/\/github.com\/modelcontextprotocol\/servers\">official server repository<\/a> to learn more.<\/p>\n<p>Visual Studio uses the native <code>mcp.json<\/code> file for MCP server configuration, and also detects compatible configurations set up by other development environments, such as <code>.vscode\/mcp.json<\/code>. Learn more <a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/ide\/mcp-servers?view=vs-2022\">here<\/a>.<\/p>\n<p>Once connected, the agent can take smarter actions. For example, if you add tools from the GitHub MCP server, your agent can retrieve and create issues on your behalf, check repo history, search GitHub, etc. A Figma MCP server provides the agent access to your design mockups.<\/p>\n<p>This is what makes agent mode truly extensible: it plugs into your environment and acts with real understanding of your tools, systems, and workflows.<\/p>\n<p>We\u2019re incredibly excited about this new prompt-first experience, and how it empowers developers to move faster while staying in full control. We\u2019re continuously evolving it, and your input plays a big role\u2014please keep the feedback coming <a href=\"https:\/\/developercommunity.visualstudio.com\/home\">here<\/a>. And make sure to include your logs. It helps us get to the root faster and fix the problem.<\/p>\n<h2>Beyond agent mode: more AI updates to try in the June release<\/h2>\n<p>But wait, we\u2019re not done! The team included additional features in this <a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/releases\/2022\/release-notes#github-copilot\">release <\/a>that are intended to improve your experience with Copilot in Visual Studio.<\/p>\n<ul>\n<li><strong>Reuse and Share Prompt Files Easily<\/strong>: Create reusable prompt files in your repository, allowing you and your team to share and run custom prompts with ease. A prompt file is a standalone markdown file containing a prompt that you can run directly in chat, reducing the number of requests you need to type.<\/li>\n<li><strong>Gemini 2.5 Pro and GPT-4.1 are now available<\/strong>: Developers love working with different models with chat and agent mode to get the desired results they are looking for. Now, Gemini 2.5 Pro and GPT-4.1 are available, offering improved reasoning and generation capabilities for your coding workflows.<\/li>\n<li><strong>Reference the Output Window as part of your chat context<\/strong>: Troubleshoot runtime behavior more effectively.<\/li>\n<li><strong>Monitor your usage<\/strong> of GitHub Copilot directly from Visual Studio.<\/li>\n<li><strong>General availability of the Agents Toolkit 17.14 <\/strong>with improvements for building Microsoft 365 apps and intelligent agents.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Copilot agent mode is the next evolution in AI-assisted development\u2014and it&#8217;s now generally available in the Visual Studio June update. Agent mode turns GitHub Copilot into an autonomous pair programmer capable of handling multi-step development tasks from end to end. It builds a plan, executes it, adapts along the way, and loops through tasks until [&hellip;]<\/p>\n","protected":false},"author":142353,"featured_media":253512,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[6888,155],"tags":[237,6986,6883,6924,6988,12],"class_list":["post-253501","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-copilot","category-visual-studio","tag-net","tag-agent-mode","tag-copilot","tag-github-copilot","tag-mcp","tag-visual-studio"],"acf":[],"blog_post_summary":"<p>Copilot agent mode is the next evolution in AI-assisted development\u2014and it&#8217;s now generally available in the Visual Studio June update. Agent mode turns GitHub Copilot into an autonomous pair programmer capable of handling multi-step development tasks from end to end. It builds a plan, executes it, adapts along the way, and loops through tasks until [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/253501","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/142353"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=253501"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/253501\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/253512"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=253501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=253501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=253501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}