Copilot & IDEs

Copilot & IDEs

GitHub Copilot Chat (VS Code, JetBrains, and CLI) now supports connecting to MCP servers. Configure the Xweather endpoint once per environment to keep weather intelligence beside your code.

VS Code

  1. Update to the latest Copilot Chat extension.
  2. Open the command palette and choose Copilot: Manage MCP Servers.
  3. Select Add Server → HTTP(s) and enter https://mcp.api.xweather.com/mcp.
  4. Provide a label such as xweather for quick identification.
  5. Paste your combined API key (<client_id>_<client_secret>) when prompted.
  6. Optionally add an allowed_tools list to scope responses for the repository you are working in.

JetBrains IDEs

  1. Install or update the GitHub Copilot plugin.
  2. Navigate to Tools → GitHub Copilot → MCP Servers.
  3. Add a new HTTP server with the Xweather endpoint and API key.
  4. Restart the IDE to refresh the connector list.

CLI Workflows

  • Install the latest github-copilot-cli.
  • Run github-copilot-cli mcp servers add and follow the prompts.
  • Export COPILOT_MCP_ALLOWED_TOOLS when you need to lock the connector to specific tools.

Prompt Ideas

  • “Draft a README section explaining the lightning tool output format.”
  • “Update .env.example to include the MCP API key with helpful comments.”
  • “Suggest integration tests for the custom agent that polls xweather_get_weather_forecast.”