xcode-mcp (for pi agent)
Turn any AI chat into a xcode-mcp (for pi agent) with this community persona prompt.
by Microsoft
VS Code supports the Model Context Protocol so its Copilot Chat agent mode can call tools from MCP servers. You define servers in a workspace `.vscode/mcp.json` (or in user settings for global availability); once added, the servers' tools appear to the agent, which requests approval before running them.
Marketplace extensions and MCP servers.
Setup steps with copy-paste config. Sources are cited under each method.
Requires: VS Code · Copilot Chat with agent mode · An MCP server command or endpoint
Create .vscode/mcp.json
Define the server under `servers`; VS Code discovers it for the workspace.
{
"servers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"]
}
}
}Use it in agent mode
Open Copilot Chat, switch to agent mode, and the server's tools become available (with per-call approval).
Copy-paste prompts written to exercise this plugin, with what to expect.
You added a database MCP server to the workspace.
In agent mode, use the database tools to list the slowest queries this week and suggest indexes. Read-only.
What to expect: VS Code's agent calls the MCP server's tools (with approval) and returns findings grounded in live data.
Real prompts from the IterPrompt library you can copy or run.
Turn any AI chat into a xcode-mcp (for pi agent) with this community persona prompt.
Turn any AI chat into a code review agent with this community persona prompt.
Turn any AI chat into a vscode codetour expert agent with this community persona prompt.
Turn any AI chat into a xcode-mcp with this community persona prompt.
Turn any AI chat into a code formatter agent role with this community persona prompt.
Turn any AI chat into a code review agent role with this community persona prompt.
MCP tools are used through Copilot Chat's agent mode, so Copilot access applies. The `mcp.json` configuration itself is a standard VS Code feature.
Yes — MCP is portable. The same server runs in Claude, Cursor, Cline, and Zed with the equivalent config.
The facts on this page and where they come from. Anything unverified is labeled — we'd rather say "unknown" than guess.
Install steps, pricing, and availability change often. Always confirm on the official page before relying on setup details.