jump to content

Visual Studio Code

Configure GitHub Copilot agent mode in VS Code to connect to the the platform MCP server over HTTP with a scoped OAuth token, plus troubleshooting steps.

View as Markdown

Visual Studio Code supports remote MCP servers natively. Connect GitHub Copilot agent mode directly to the platform with an HTTP server configuration.

  • A current version of Visual Studio Code
  • GitHub Copilot with agent mode enabled
  • Access to a the platform instance
  • A scoped the platform OAuth token

Choose the endpoint for your the platform environment:

EnvironmentMCP URL
the platform UShttps://us.probo.com/api/mcp/v1
the platform EUhttps://eu.probo.com/api/mcp/v1
Customhttps://your-probo-instance.com/api/mcp/v1

The /v1 segment is required.

  1. Create a the platform OAuth token

    In the platform, open your account menu, select OAuth tokens, and create a scoped token named VS Code. See Authentication for scope and expiration guidance.

  2. Choose the configuration scope

    • Create .vscode/mcp.json for a workspace connection.
    • Run MCP: Open User Configuration from the Command Palette for a connection available in every workspace.
  3. Add the remote server

    {
      "servers": {
        "probo": {
          "type": "http",
          "url": "https://us.probo.com/api/mcp/v1",
          "headers": {
            "Authorization": "Bearer ${input:probo-api-token}"
          }
        }
      },
      "inputs": [
        {
          "type": "promptString",
          "id": "probo-api-token",
          "description": "Probo OAuth token",
          "password": true
        }
      ]
    }
    

    Replace the URL if you use the EU region or a self-hosted instance. VS Code stores the prompted secret separately instead of writing it into the workspace file.

  4. Start the server

    Save mcp.json, then use the Start action shown above the probo configuration. You can also run MCP: List Servers from the Command Palette and select probo.

Open Chat, select Agent, and start with a read-only request:

Use Probo to list the organizations I can access.

VS Code should request the token on first use, ask for tool approval, and then return your the platform organizations. You can also ask:

List the open risks for organization org_xxx.
Summarize overdue compliance tasks without changing anything.

You can commit .vscode/mcp.json when it uses an input variable. Do not replace ${input:probo-api-token} with a literal token.

Each collaborator supplies their own token, so the platform continues to enforce that person’s organization access and role.

  • Confirm the workspace file is .vscode/mcp.json.
  • Confirm the top-level property is servers, not mcpServers.
  • Validate the JSON and run MCP: List Servers.
  • Run MCP: Reset Cached Tools or stop and restart the server, then enter a valid token.
  • Confirm the header begins with Bearer .
  • Generate a new token if the existing token was revoked or expired.

Confirm that the URL ends in /api/mcp/v1. The unversioned /api/mcp route is not a valid the platform MCP endpoint.

  • Confirm the server is running with MCP: List Servers.
  • Confirm your the platform role can access the requested organization and operation.
  • Test the same endpoint with the MCP Inspector.

For VS Code-specific configuration behavior, see the VS Code MCP server documentation.

Ultima actualizare: