# MCP servers and skills

> The MCP servers and skills each AI tool has, listed by name, transport and address or command, never with their arguments, environment, headers or bodies.

An AI tool is only as safe as what it's connected to. For every tool it finds, the AI tools agent lists the Model
Context Protocol (MCP) servers configured in it and the skills it can use, so you can see which tools reach your code
host, your ticketing system, or a server nobody approved.

## Before you begin

- **Approved devices** in your realm's AI fleet; see [Get started with AI Governance](../../get-started/).
- **To read them:** any privilege that reads your realm's configuration, such as `RealmViewer` or `RealmOwner`,
  through the API.

## How it works

| For each | What's listed | What's never sent |
|---|---|---|
| MCP server | `name`; `transport` (`stdio`, `http` or `sse`); for a local server the `command` it runs, for a remote one the `url` it reaches; whether it's `enabled`; and the settings file it came from (`source`) | Its arguments, environment variables and headers |
| Skill | Its `path`, and its whole front matter in `frontMatter` (`name`, `description` and every other key, with their values) | The skill's body |

A server set up with `streamable-http` is listed as `http`. A server is listed as `enabled: false` when its settings
turn it off.

### The address and the command are sent as written

The `url` is sent in full: scheme, host, path, query, and any user name or password written into it. The `command` is
sent as the tool's settings give it. Most MCP servers keep their credentials in arguments, environment or headers,
which never leave the device. A token written into an address or a command does reach your realm's fleet, and every
administrator who can read it.

Check your users' settings for addresses that carry a key in their query, and move it into a header or the
environment.

## Set it up

Nothing to turn on: it comes with [AI tool discovery](../ai-tool-discovery/). Read it in `mcp_servers` and `skills`
on each tool, in the device's fleet record ([Call the API](../../../develop/api/)):

```sh
curl https://foobar.cvyuh.com/api/v0/endpoint/aig/v1/api/v1/devices/<fleet device id> \
  -H "Cookie: x-cvyuh-token=$CVYUH_SESSION"
```

```json
{
  "kind": "claude-code",
  "mcp_servers": [
    { "name": "github", "transport": "http", "url": "<server address>", "enabled": true, "source": "<settings file>" },
    { "name": "tickets", "transport": "stdio", "command": "<command>", "enabled": true, "source": "<settings file>" }
  ],
  "skills": [
    { "path": "<skill folder>/SKILL.md", "frontMatter": { "name": "deploy", "description": "Deploy safely" } }
  ]
}
```

## Limits and defaults

| What | Value |
|---|---|
| Transports | `stdio`, `http`, `sse` |
| Tools with MCP servers listed | All [supported tools](../supported-tools/) but OpenCode and GitHub Copilot CLI (whose servers are listed under VS Code) |
| Tools with skills listed | All but Claude Desktop, OpenCode and GitHub Copilot CLI (listed under VS Code) |

## Good to know

- **Names, places and kinds.** The inventory shows what is connected, not what was sent to it.
- **Where a tool keeps them.** Each tool's MCP servers and skills are read from that tool's own settings, in every
  user's home on the device and in the system-wide managed settings; `source` and `path` say which file.
- **`frontMatter` is spelled in camelCase**, unlike the rest of the fleet record.

## Troubleshooting

| Symptom | Cause | Fix |
|---|---|---|
| A server you added isn't listed | Its tool isn't one whose servers are read, or the agent hasn't looked again yet | See [Supported tools](../supported-tools/); a change shows within 15 minutes |
| A server shows a key in its `url` | The key is written into the address in the tool's settings | Move it into a header or the environment, and have the user edit the file named in `source` |

## Audit record

Listing writes no record to the audit trail. Reading the fleet is recorded as a `TOKEN_EXCHANGED` in your own trail
each time the realm issues you a token for it.

## Related

- [AI tool discovery](../ai-tool-discovery/): the tools these belong to.
- [Find the MCP servers on your devices](../../guides/find-mcp-servers/): every server across the realm.
- [MCP tool calls](../../../gateway/mcp-servers/mcp-tool-calls/): how the gateway decides each call to your own MCP servers.
