Skip to content

MCP & AI Set up

VS Code

GitHub Copilot's agent mode in VS Code can use MCP servers. Add ours to .vscode/mcp.json:

.vscode/mcp.json
{
  "servers": {
    "optionsprofitcalculator": {
      "type": "http",
      "url": "https://www.optionsprofitcalculator.com/mcp",
      "headers": {"X-API-Key": "opc_live_..."}
    }
  }
}

Replace opc_live_... with your key, then start the server from the file's CodeLens and switch Copilot Chat to agent mode.

Important

Don't commit a key in a shared repository. Use VS Code's inputs to prompt for it, or keep the file out of Git.