Vetta
User guide

03 / USER GUIDE

Configure MCP connectors

Connect external tools and data through MCP while keeping commands, hosts, credentials, and approvals bounded.

MCP connects Vetta to external tools and data sources through a declared server. It is useful when the same structured capability should be available across sessions, but it also creates an external process or network boundary that must be reviewed.

Choose a transport

TransportUse whenCheck
STDIOThe server is a local executable or scriptCommand, arguments, environment, and executable PATH
HTTPThe server is a reachable remote endpointURL, authentication, TLS, and organization network policy
SSEThe server still exposes only a legacy HTTP+SSE endpoint (prefer HTTP when available)Same as HTTP; managed runtimes are not supported

Add a connector from Capabilities → Add capability → Add MCP manually, or install one from a trusted capability source.

Global MCP connections are prewarmed after application startup and reused across sessions. Servers from a project's .vetta/mcp.json, global servers that reference ${PROJECT_ROOT}, and global servers with "resourceScope": "workspace" stay isolated per workspace and can use that workspace's MCP roots. If a global server depends on roots/list without referencing ${PROJECT_ROOT} in its configuration, set resourceScope to workspace in the advanced JSON configuration.

Project .mcp.json compatibility

A .mcp.json at the project root (the format used by Claude Code and other tools) is merged into the project layer when read, on equal footing with .vetta/mcp.json. For a server defined in both, .vetta/mcp.json wins. Vetta never rewrites .mcp.json. Both ${VAR} and ${VAR:-default} are supported.

Entries with type set to sse (the legacy HTTP+SSE transport) are read as well; entries Vetta cannot recognize are skipped and logged, without affecting the other servers in the file.

A stdio server in a project file runs a local command when that project is opened. Use it only in repositories you trust.

Ask the Agent to install: global or project

When you ask the Agent to install an MCP server, it first confirms where to put it:

  • Global: written to ~/.vetta/agent/mcp.json; available in all your projects and affects only you.
  • Project: written to that project's .vetta/mcp.json; active in this project only. The file lives in the repository and can be committed, so teammates who pull it will start the server too.

It does not ask when you have already said "only this project" or "all projects". The approval dialog shows the config location. Because project files end up in the repository, secrets in a project-level server should be written as ${ENV_VAR} references with the real value kept in the environment, never as plaintext.

Configure the smallest useful server

Keep the command, URL, and environment explicit. Credential references should point to protected configuration or environment variables; never paste a token into a task, project file, or committed MCP configuration.

After saving, verify that the server starts and that the expected tools are listed. A healthy connection with no tools usually means the server configuration or exposed tool set is wrong.

Approvals and permissions

MCP tool availability does not mean that every action is safe to run automatically. Review whether a tool reads sensitive data, writes files, calls an external service, or creates an irreversible change. Prefer read-only tools for the first validation and require confirmation for high-risk actions.

Minimal verification task

Use the configured MCP server only to list its available tools, then call one read-only tool with a harmless input.
Report the server name, the tool name, the input, and the returned result. Do not write files, send messages, or call a mutating tool.
If the server is unavailable or exposes no tools, report the original error and stop.

Run this from a short session before including the connector in a larger workflow. Refresh capabilities after changing the MCP configuration.

Troubleshooting

  1. Check Capabilities → My capabilities and confirm that the connector is enabled.
  2. Inspect ~/.vetta/agent/mcp.json for the command or URL, without exposing credentials.
  3. For STDIO, confirm the command is executable from the configured environment.
  4. For HTTP, confirm the URL is reachable from the current network and the authentication has not expired.
  5. Reload MCP capabilities or start a new session after configuration changes.

MCP request data may include tool arguments, retrieved values, and OAuth or token metadata. See Security and data boundaries before connecting sensitive services.

On this page