Skip to main content

Overview

VS Code supports MCP servers through GitHub Copilot’s agent mode. You can connect your Logic MCP server to make Logic agents available while you code.

Prerequisites

Adding Logic MCP Server

Using the Command Palette

  1. Open the Command Palette (⇧⌘P)
  2. Run MCP: Add Server
  3. Choose HTTP as the server type and paste your Logic Server URL
  4. Select Workspace (this project only) or Global (all projects)

Editing the config directly

VS Code stores workspace MCP servers in .vscode/mcp.json. You can add Logic under servers:
{
  "servers": {
    "logic": {
      "type": "http",
      "url": "[MCP_SERVER_URL]"
    }
  }
}
Parameters:
  • "logic" - A name to identify this server
  • "type": "http" - Required for HTTP-based MCP servers like Logic
  • "url" - Your Logic MCP server URL from organization settings

Using Logic Agents

Logic agents are available in Copilot Chat’s agent mode.

Verifying Your Connection

  1. Open the Chat view (⌃⌘I) and switch the mode to Agent
  2. Select the Configure Tools button in the chat input
  3. Confirm your Logic server and its tools appear in the list
If the server appears and its tools are listed, Logic agents are available for use. You can toggle individual tools on or off from the same menu.

Accessing Logic Agents

Copilot can automatically access your Logic agents based on the conversation context. You can:
  • Ask Copilot to use specific Logic agents by name
  • Let Copilot discover and suggest relevant Logic agents
  • Execute Logic agents with parameters as needed
Example usage:
Can you run the "code-review" Logic agent on the current branch?
Copilot will execute the Logic agent and incorporate the results into its response.
Long-running Logic agents are handled asynchronously. Learn more about async task execution.

Next Steps