Skip to main content
GitHub Copilot extends through MCP servers, custom instructions, and prompt files. Its two surfaces, the in-editor agent (VS Code) and the autonomous coding agent (cloud), use different MCP schemas, covered separately below.

MCP in VS Code

Create .vscode/mcp.json in the workspace; VS Code requires a servers key and a type:
Reload the window; Smithers tools appear in Copilot Chat’s agent mode.

MCP in the Copilot coding agent

Configure the autonomous coding agent at repo Settings → Copilot → Coding agent → MCP configuration, using a different schema: mcpServers, type: "local", and a tools array:
Secrets are Actions/Agents secrets prefixed COPILOT_MCP_, referenced as $VAR in the env block; the tool surface is identical on both. See MCP Server.

Custom instructions

Copilot reads .github/copilot-instructions.md (repo-wide) and, for the coding agent, AGENTS.md; add a section pointing at Smithers:
For a slash command, drop a prompt file at .github/prompts/smithers.prompt.md.

See also