Using Centrex from GitHub Copilot (MCP)
GitHub Copilot Chat in VS Code, in Agent mode, uses the same MCP server as Claude Code. With the file below, the first time the server starts VS Code asks for the region, the client ID and the client secret, and keeps them in its secret storage, never in the file.
This setup follows the documentation of VS Code and GitHub Copilot and is still being tested against a real Copilot.
With a Copilot Business or Copilot Enterprise seat, an admin of the GitHub organization or enterprise must first turn on the MCP servers in Copilot policy, which is off by default; until then Copilot uses no MCP server.
Install Centrex (npm install -g centrex) and put a .vscode/mcp.json in your project:
{
"inputs": [
{ "type": "promptString", "id": "genesyscloud-region", "description": "Region domain of the org" },
{ "type": "promptString", "id": "genesyscloud-oauthclient-id", "description": "OAuth client ID" },
{
"type": "promptString",
"id": "genesyscloud-oauthclient-secret",
"description": "OAuth client secret",
"password": true
}
],
"servers": {
"centrex": {
"type": "stdio",
"command": "centrex",
"args": ["mcp"],
"env": {
"GENESYSCLOUD_REGION": "${input:genesyscloud-region}",
"GENESYSCLOUD_OAUTHCLIENT_ID": "${input:genesyscloud-oauthclient-id}",
"GENESYSCLOUD_OAUTHCLIENT_SECRET": "${input:genesyscloud-oauthclient-secret}"
}
}
}
}
On native Windows, where centrex is an npm .cmd shim, use "command": "cmd" and
"args": ["/c", "centrex", "mcp"].
Approve every apply one call at a time. VS Code asks before each MCP tool call; the read-only tools can be
allowed for the session or always, but apply must never be: not for the session, not for the project, not
always, and not through the setting that approves every tool, which would include it. For a session that should
only read, add "CENTREX_READ_ONLY": "1" to env.
Other Copilot clients:
- A client that calls tools with no person to answer its prompts, like the Copilot coding agent on GitHub, must
get Centrex only with
CENTREX_READ_ONLY=1. - Microsoft 365 Copilot and Copilot Studio connect only to remote MCP servers over HTTP. Centrex’s MCP server speaks stdio only, so they cannot use it.