Use Perception MCP in Visual Studio Code

This article shows you how to add Microsoft Perception MCP tools in Microsoft Visual Studio Code, authenticate, and verify the connection in chat.

Prerequisites

Meet the Perception MCP prerequisites, including organization onboarding and permissions.

Add Microsoft Perception tools

To add Microsoft Perception tools in Visual Studio Code, follow these steps:

  1. Add an MCP server:

    1. Press Ctrl + Shift + P, then type or choose MCP: Add Server.

      Screenshot of the Visual Studio Code command palette with MCP: Add Server highlighted.

    2. Choose HTTP (HTTP or Server-Sent Events).

      Screenshot of the Visual Studio Code MCP server-type picker with HTTP (HTTP or Server-Sent Events) highlighted.

    3. Enter the Perception MCP server URL, https://perception.microsoft.com/mcp, and then press Enter.

    4. Assign a friendly server ID (for example, Microsoft Perception MCP server).

    5. Choose whether to make the server available in all Visual Studio Code workspaces or just the current one.

  2. Allow authentication. When prompted, select Allow to authenticate using an account with required permissions.

    Screenshot of the Visual Studio Code prompt to allow the MCP server to authenticate to Microsoft.

  3. Open Visual Studio Code’s chat. Select View > Chat, select the Toggle Chat icon beside the search bar, or press Ctrl + Alt + I.

  4. Verify connection. Set the chat to Agent mode then confirm by selecting the Configure Tools icon that you see under the MCP server you added.

    Screenshot of Visual Studio Code chat with the mode menu open and Agent selected.

Next step