Krosoft Wiki
Auto Light Dark
Auto Light Dark

Get started with VS Code

Connect Copilot to your company’s Confluence. Have your Confluence site address ready.

Use confluence as the connection name. Check existing entries before installing; do not overwrite a connection to another site. For an older alias, follow connection naming and migration. Existing screenshots may show an older local alias.

Connect using OAuth

1. Open Copilot Chat

Select Local → Agent.

2. Send the setup prompt

Copy and send this prompt.

Connect this workspace to Confluence. Ask for the base URL first.

Once the URL is known, complete setup and verify my account in the same turn. I’ll approve prompts, sign in and consent.

Install an HTTP MCP connection named "confluence" using code --add-mcp, with URL <CONFLUENCE_BASE_URL>/rest/native-mcp/1.0/mcp. Use this running instance’s active profile/user-data directory; reuse a matching connection. Check existing entries first: do not overwrite a connection to another site. Preserve URL/authentication settings when renaming an older alias; sign-in and tool approvals may be required again. Multiple sites need separate scopes or distinct aliases. No OAuth configuration or client ID.

Start it using Create and Run Task: temporarily merge a command input calling workbench.mcp.startServer with args "mcp.config.usrlocal.confluence" into .vscode/tasks.json, referenced by GLOBAL options.env.MCP_START="${input:startConfluence}". Use terminal commands for edits and preserve existing tasks/settings.

Wait up to five minutes in one foreground process, polling the entire connection log for "Discovered <number> tools" before checking terminal errors; ignore metadata fallback warnings. Then use Search Tools (tool_search / vscode/toolSearch) to load confluence_get_current_user and call it with {} in this same turn.

Report the discovered tool count and executedAs from the actual response. Restore temporary task changes; keep the connection. If blocked, report the specific failure.

3. Enter your Confluence address

When Copilot asks, enter your company’s Confluence site address, for example https://wiki.example.com/confluence.

4. Approve and sign in

Review the setup prompts and allow VS Code to authenticate. Sign in to Confluence if asked. Check Visual Studio Code, vscode.dev and the requested access before choosing Allow.

5. Confirm your account

Return to Copilot. It shows the available tools and your connected Confluence account. Check that the account is yours.

Have an administrator-provided setup link?
  1. Open the Add to VS Code link in your existing window, review the address and choose Install.

  2. Allow authentication, sign in if asked, review the registered client’s name and access, then choose Allow.

  3. Ask Copilot: Which Confluence account am I connected as? Check using confluence_get_current_user.

For administrators: choose Register VS Code client, then Connect with VS Code → Copy setup link. The preset creates a Public client with the exact callback http://127.0.0.1:33418/. This alternative supports proxy-only internet access; see OAuth requirements.

Connect using a PAT

Use this alternative if your company asks you to connect with a personal access token.

1. Create your token

In Confluence, open your avatar → Settings → Personal access tokens and create a token.

2. Add the configuration

Merge this into .vscode/mcp.json, preserving existing servers and inputs. Replace https://confluence.example.com/confluence with your Confluence site address.

JSON
{
  "inputs": [
    {
      "type": "promptString",
      "id": "confluence-pat",
      "description": "Your Confluence personal access token",
      "password": true
    }
  ],
  "servers": {
    "confluence": {
      "type": "http",
      "url": "https://confluence.example.com/confluence/rest/native-mcp/1.0/mcp",
      "headers": {
        "Authorization": "Bearer ${input:confluence-pat}"
      }
    }
  }
}

Keep ${input:confluence-pat} unchanged. Enter your PAT only in the masked prompt.

Configuration example
VS Code MCP configuration using a secure PAT input reference

3. Start and check the account

  1. Save the file. In the Command Palette, choose MCP: List Servers → confluence → Start Server.

  2. Paste only the PAT when prompted and press Enter.

VS Code secure prompt asking for a Confluence personal access token

In Chat, enable confluence under Configure Tools. Ask: Which Confluence account am I connected as? Check using confluence_get_current_user. Confirm the account is yours.

Example prompts · Troubleshooting

For administrators: OAuth requirements.