Terminal 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
Open your project in VS Code
Create or edit:
.vscode/mcp.jsonAdd:
{ "servers": { "opsera": { "type": "http", "url": "https://agent.opsera.ai/mcp" } } }Save the file
Reload VS Code
User Profile (Global)
Open Command Palette (
Cmd/Ctrl + Shift + P)Select MCP: Open User Configuration
Add:
Save and reload VS Code
Verify & Use Actions
Open the GitHub Copilot Chat view.
Type “View my Tools”. You should see the Opsera DevOps Agent listed with its available tools.

Try a natural language prompt or a direct tool reference:
"Run a security scan for this project."
"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

