Pixola / Docs / MCP Server / VS Code / Copilot

Pixola for VS Code / GitHub Copilot

Connect Pixola to VS Code with GitHub Copilot. VS Code Copilot supports interactive app UIs for image generation and gallery browsing.

Prerequisites

  1. Create a Pixola account (free tier includes 1,000 credits)
  2. Go to Settings → API Keys and create a key — it starts with pxk_
  3. GitHub Copilot extension installed in VS Code

Setup

Add to .vscode/mcp.json in your project root:

{
  "servers": {
    "pixola": {
      "type": "http",
      "url": "https://www.pixola.ai/mcp",
      "headers": {
        "Authorization": "Bearer pxk_YOUR_API_KEY"
      }
    }
  }
}

Note: VS Code uses servers (not mcpServers) and requires "type": "http". Reload the window after saving.

Interactive apps

VS Code Copilot supports MCP Apps. When you ask Copilot to generate images or show your gallery, it renders an interactive UI in the chat panel — not just a text response.

Test it

In Copilot Chat, try:

Generate a social media image for a new product launch

Show me available image generation models and their pricing

How many Pixola credits do I have remaining?