> ## Documentation Index
> Fetch the complete documentation index at: https://docs.logic.inc/llms.txt
> Use this file to discover all available pages before exploring further.

# VS Code Integration

> Connect Logic MCP servers to VS Code with GitHub Copilot

## 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

* **VS Code** with **GitHub Copilot** ([download here](https://code.visualstudio.com))
* **Logic MCP server** created ([Quick Start guide](/mcp/quick-start))
* **Server URL** from Logic organization settings

## 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`:

```json theme={null}
{
  "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](https://app.logic.inc/settings/organization-settings/mcp-servers)

## 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.

<Info>
  Long-running Logic agents are handled asynchronously. Learn more about [async
  task execution](/mcp/async-tasks).
</Info>

## Next Steps

* [Learn about async tasks](/mcp/async-tasks) - Handle long-running Logic agents
* [Explore agent scope](/mcp/agent-scope) - Control tool availability
