[← Todas as Integrações](/docs)

# VS Code

GitHub Copilot in VS Code supports MCP servers via the chat agent mode. Connect Bipa Agents through workspace or user settings.

### Pré-requisitos

-   A **Bipa account** with an active registration.
-   **VS Code** 1.99+ for local MCP, or **1.101+** for remote MCP with OAuth.
-   **GitHub Copilot** extension with an active subscription.
-   **bipa CLI** installed (for local mode).
-   For organizations: the **"MCP servers in Copilot"** policy must be enabled by an admin.

## Configuração Local (stdio)

### Create the MCP config file

Create a `.vscode/mcp.json` file in your workspace root:

```
{
  "servers": {
    "bipa": {
      "type": "stdio",
      "command": "bipa",
      "args": ["mcp", "serve", "--stdio"]
    }
  }
}
```

### Enable MCP in Copilot settings

Open VS Code settings (`Cmd+,`) and search for **"mcp"**. Ensure `chat.mcp.enabled` is checked. Alternatively, add to your `settings.json`:

```
{
  "chat.mcp.enabled": true
}
```

### Use in Copilot Chat

Open **Copilot Chat** and switch to **Agent mode** (look for the agent icon or select it from the mode dropdown). The Bipa Agents tools will be available in agent conversations.

MCP tools are available in Agent mode, not in standard inline completions.

## Configuração Remota (HTTP + OAuth)

Conecte-se diretamente ao servidor MCP remoto do Bipa Agents. Nenhuma instalação local é necessária. A autenticação é feita via OAuth 2.1 com PKCE.

### Create the MCP config file

Create `.vscode/mcp.json` in your workspace with the remote URL:

```
{
  "servers": {
    "bipa": {
      "type": "http",
      "url": "https://mcp.bipa.app/mcp"
    }
  }
}
```

### Enable MCP and authenticate

Ensure `chat.mcp.enabled` is true in settings. When you first use Bipa Agents tools, VS Code will prompt you to complete the OAuth flow with Bipa.

## Ferramentas MCP Disponíveis

Uma vez conectado, as seguintes ferramentas ficam disponíveis para o assistente de IA:

#### bipa_whoami

Current session info

#### bipa_account

Account profile

#### bipa_balance

Check all wallet balances

#### bipa_limits

Check spending limits

#### bipa_deposit

Get deposit addresses

#### bipa_pay

Send a PIX transfer (supports scheduling)

#### bipa_pix_pay_key

Pay via Pix key

#### bipa_pix_pay_brcode

Pay via BR Code

#### bipa_pix_pay_tag

Pay a Bipa user by tag

#### bipa_pix_pay_trusted_contact

Pay a trusted contact

#### bipa_pix_pay_recipient

Pay a saved recipient

#### bipa_pix_brcode_decode

Decode a Pix BR Code

#### bipa_pix_brcode_preview

Preview a BR Code payment before paying

#### bipa_pix_tag_preview

Look up a Bipa user by tag

#### bipa_pix_keys

List Pix keys

#### bipa_pix_trusted_contacts

List trusted contacts

#### bipa_pix_recipient_suggestions

Suggest recent recipients

#### bipa_history

Transaction history

#### bipa_transactions

Multi-asset transaction list

#### bipa_transaction_detail

Detail of a specific transaction

#### bipa_timeline

Unified activity timeline

#### bipa_tickers

Current BTC/USDT prices

#### bipa_btc_prices

BTC/BRL price history

#### bipa_usdt_prices

USDT/BRL price history

#### bipa_portfolio

Portfolio summary by asset and period

### Como a Autenticação Funciona

**Modo local:** O CLI autentica abrindo seu navegador. Você faz login pelo app Bipa e o token de sessão é armazenado localmente.  
  
**Modo remoto:** O cliente MCP lida com o OAuth 2.1 automaticamente. Ele descobre os endpoints via `/.well-known/oauth-authorization-server`, redireciona você ao app Bipa para autorização e troca o código por um token de acesso usando PKCE.
