MCP servers
MCP (Model Context Protocol) servers give agents extra tools and data: an issue tracker, a design tool, an internal API. IZ Code passes the MCP servers you configure to every agent, next to its own built-in tools server.
Where servers come from#
Every agent session receives MCP servers from these places, in this order:
| Source | File | Scope |
|---|---|---|
| Your user configuration | ~/.izcode/mcp.json | Every project on this machine |
| The workspace | .vscode/mcp.json in the project folder | This project; commit it to share it with your team |
| Other folders of a multi-root workspace | Each folder's .vscode/mcp.json | Added unless a server with the same name already exists |
| Enabled agent plugins | Inside the plugin | Named plugin-server after the plugin and its server |
| IZ Code | Built in | Always |
If two sources define a server with the same name, the earlier one wins.
flowchart TD
A[Agent session] <--> B[IZ Code tools server]
A <--> cfg
subgraph cfg["Your MCP servers"]
U["User: ~/.izcode/mcp.json"]
W["Workspace: .vscode/mcp.json"]
P[Enabled agent plugins]
endAdd a server#
- Create the file
For one project, create
.vscode/mcp.jsonin the project folder. For all projects, create~/.izcode/mcp.jsonin your home folder. - Describe the server
Add an entry under
servers. Each entry needs atype:stdiofor a local command,httporssefor a remote server. - Start a new chat MCP servers are given to a session when it starts. Open a new chat to pick up the change.
- Check it is there
Open Agent Customizations from the chat menu and choose MCP Servers, or type
@mcpin the chat to see the configured servers.
{
"servers": {
"issues": {
"type": "stdio",
"command": "npx",
"args": ["-y", "my-issues-mcp"],
"env": { "ISSUES_URL": "https://issues.example.com" }
},
"docs": {
"type": "http",
"url": "https://mcp.example.com/mcp",
"headers": { "Authorization": "Bearer YOUR_TOKEN" }
}
}
}| Field | For | Meaning |
|---|---|---|
type | all | stdio, http or sse. Required. |
command, args | stdio | The program to start and its arguments. |
env | stdio | Environment variables for the program. |
url | http, sse | The server's address. |
headers | http, sse | HTTP headers, for example an authorization token. |
The file uses the same servers format as VS Code's mcp.json, so an existing VS Code configuration works as is. It must be plain JSON: comments are not allowed. A malformed entry is skipped; the other servers still load.
Install servers from Extensions#
The Extensions view lists agent plugins, which can bring MCP servers along with skills, commands and hooks. Type @mcp in the Extensions search to find them. When you enable a plugin, its MCP servers join every agent session. The Claude agent receives the whole plugin directly instead.
IZ Code's built-in tools#
Every agent also gets IZ Code's own tools server. You do not configure it. It offers:
| Group | Example tools |
|---|---|
| Files and terminal | readFile, writeFile, editFile, runCommand, commandOutput, commandStop |
| Code Intelligence | codeSearch, codeExplore, codeCallers, codeCallees, codeImpact, codeRipgrep |
| Git | gitStatus, gitDiff, gitCommitLog, gitCommit, gitPush and more |
| Agent Memory | memorySearch, conversationSearch, skillSearch, skillView, wikiSearch, wikiRead |
| Specs | specList, specReadDocument, specWriteDocument, specRunTask and more |
| Tasks and workflows | taskListTasks, taskCreate, workflowRun, workflowGetRun |
| Browser | browserOpen, browserRead, browserClick, browserScreenshot and more |
| Run and Debug | debugStart, debugSetBreakpoints, debugGetVariables, listBuildTasks, runBuildTask |
| Sessions | sessionSpawnSubAgent, sessionFork, sessionGetUsage, sessionReadTranscript, sessionNewSession |
| Database | Schema and query tools, when the Database is turned on |
Tools that extensions register for language models are listed by the same server, so every agent can call them too. The code review tools are an example. See Code review.
Which groups are available depends on your switches. See Permissions and tools.
Security#
- In a folder you have not trusted, the servers in its
.vscode/mcp.jsonare not started. Your user configuration still applies. See Workspace Trust. @mcpshows only each server's name, transport and target. It never attaches environment variables, headers or arguments.- After a session reads untrusted content, calls to third-party MCP tools always ask for approval.
Settings#
MCP servers have no switch in Settings. You manage them in the two files above. Settings → Context Builder shows the servers a session receives, but you cannot switch them off there, because the agent's tools would break.
| File | Scope | Default |
|---|---|---|
~/.izcode/mcp.json | User | Not created |
.vscode/mcp.json | Workspace | Not created |