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
- Update to the latest Copilot Chat extension.
- Open the command palette and choose Copilot: Manage MCP Servers.
- Select Add Server → HTTP(s) and enter
https://mcp.api.xweather.com/mcp
. - Provide a label such as
xweather
for quick identification. - Paste your combined API key (
<client_id>_<client_secret>
) when prompted. - Optionally add an
allowed_tools
list to scope responses for the repository you are working in.
JetBrains IDEs
- Install or update the GitHub Copilot plugin.
- Navigate to Tools → GitHub Copilot → MCP Servers.
- Add a new HTTP server with the Xweather endpoint and API key.
- 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
.”