vscodeVS Code

Terminal Setup Guide for VS Code

What you'll build

Get Opsera Agents integrated with GitHub Copilot in VS Code to automate DevSecOps workflows directly in your editor.

You'll be able to:

  • Run security scans while reviewing code

  • Generate CI/CD pipelines from Copilot Chat

  • Create Salesforce packages automatically

  • Analyze architecture without switching contexts

⏱️ Time: 5 minutes


What you need


Installation

Choose your setup method:

Sets up Opsera for the current project only.

Step 1: Create config file in your project:

bash

Step 2: Add this configuration:

json

Step 3: Save and reload VS Code (⌘/Ctrl + Shift + P → "Reload Window")


Option 2: Global (all projects)

Sets up Opsera for all your VS Code projects.

Step 1: Open Command Palette (⌘/Ctrl + Shift + P)

Step 2: Select "MCP: Open User Configuration"

Step 3: Add this configuration:

json

Step 4: Save and reload VS Code


Verify

Open GitHub Copilot Chat and type:

You should see Opsera DevOps Agent listed with available tools.

If you see it, you're ready! 🎉

Try it

Open Copilot Chat (⌘/Ctrl + Shift + I) and try:

Run a security scan:

Create Salesforce package:

Analyze architecture:

Note: Copilot may ask for permission before running tools—click "Allow" to proceed.

Troubleshooting

"Agent" option not showing in Copilot Chat?

  • Update VS Code to latest version (1.102+)

  • Update GitHub Copilot extension

  • Enable in settings: "chat.agent.enabled": true

  • Restart VS Code

Tools listed but not running?

  • Open mcp.json file

  • Look for CodeLens text above the JSON (says "Start" or "Restart")

  • Click it to activate the connection

  • If still not working, reload VS Code

Permission errors when running tools?

  • Copilot will prompt for permission before running MCP tools

  • Click "Allow" to proceed

  • Check "Always allow" if you want to skip future prompts

MCP server not connecting?

  • Verify mcp.json saved correctly

  • Check JSON syntax (no trailing commas)

  • Ensure internet connection

  • Restart VS Code completely

Tools not appearing in "View my Tools"?

  • Wait 10-15 seconds after reload for MCP to initialize

  • Check Output panel: View → Output → MCP

  • Look for connection errors

  • Try restarting VS Code

Tips

💡 For team projects: Use workspace configuration (.vscode/mcp.json) and commit it to your repo so the whole team gets Opsera Agents automatically.

💡 Permission prompts: You can configure Copilot to always allow specific tools in Settings → Extensions → GitHub Copilot.

💡 Check connection status: Open Command Palette → "MCP: Show Status" to see if Opsera is connected.

Last updated