vscodeTerminal Setup VS Code

Terminal Setup Guide for VS Code

Purpose

The Opsera DevOps Agent for VS Code extends the capabilities of GitHub Copilot Chat by integrating specialized DevOps automation tools directly into your editor. By the end of this guide, you will have configured your Opsera authentication and successfully linked the MCP server to VS Code's agent mode.

Prerequisites

  • VS Code 1.102+

  • GitHub Copilot extension enabled

Workspace Configuration

  1. Open your project in VS Code

  2. Create or edit:

    .vscode/mcp.json
  3. Add:

    {
      "servers": {
        "opsera": {
          "type": "http",
          "url": "https://agent.opsera.ai/mcp"
        }
      }
    }
  4. Save the file

  5. Reload VS Code

User Profile (Global)

  1. Open Command Palette (Cmd/Ctrl + Shift + P)

  2. Select MCP: Open User Configuration

  3. Add:

  4. Save and reload VS Code

Verify & Use Actions

  1. Open the GitHub Copilot Chat view.

  2. Type “View my Tools”. You should see the Opsera DevOps Agent listed with its available tools.

  3. Try a natural language prompt or a direct tool reference:

  4. "Run a security scan for this project."

  5. "Generate a Salesforce package.xml for the ./src directory."

Troubleshooting (FAQs)

1. I don't see the "Agent" option in Copilot Chat. Fix: Ensure you are using the latest version of VS Code and the Copilot extension. Verify that "chat.agent.enabled" is set to true in your settings.

2. The tools are listed but fail to run. Fix: Open the mcp.json file and check the CodeLens (small text above the JSON) to see if it says "Start" or "Restart". Clicking this ensures the connection is active.

3. Permissions errors when running tools. Fix: Copilot will often prompt for permission before running an MCP tool. Click "Allow" to proceed with the specific execution.

Last updated