Configure VS Code with GitHub Copilot

Add the Okta Managed MCP Server connection parameters to VS Code with GitHub Copilot and complete authentication to enable natural language interactions.

About this task

Early Access release

This task guides you through integrating the Okta Managed MCP Server into VS Code with GitHub Copilot, allowing you to query and manage your Okta org using conversational language.

Tasks

  1. Install the GitHub Copilot extension
  2. Open the Copilot chat view in VS Code.
  3. Enable agent mode by following the steps in the VS Code documentation
  4. Update your VS Code settings to include the Okta Managed MCP Server configuration:
    1. Press Command + Shift + P (macOS) or Ctrl + Shift + P (Windows) to open the command palette.
    2. Type Preferences: Open User Settings (JSON) and press Enter
    3. Define the connection parameters for the Okta Managed MCP Server:
    4. Create a folder named .vscode in your project directory.
    5. Create a file named mcp.json in the .vscode folder.
    6. Add the following configuration to your mcp.json file and save it.
      {
              "servers": {
                      "okta-managed-mcp": {
                              "type": "http",
                              "url":"https://yourorg.okta.com/mcp"
                      }
              }
      }
  5. After the MCP client connects, you receive a prompt indicating that dynamic client registration isn't supported. Confirm that you want to enter the client ID manually.
  6. Enter the client ID that you copied earlier.
  7. Authenticate with your org.
  8. After successful authentication, you're directed back to your LLM host using the redirect URI you configured in OpenID Connect (OIDC) with Proof Key for Code Exchange (PKCE).
  9. The Okta Managed MCP Server loads all available tools and actions based on the scopes in your access token. You can now submit natural language prompts. Here are some examples:
    • "What is the current status of user alice@example.com?"
    • "Show me all groups in my org."
    • "List all apps I have access to."