---
title: "MCP configuration"
description: "Compare MCP transports, authentication options, token settings, and toolsets. Choose the options that fit your client before connecting it to a workspace."
---

> Full documentation index: https://docs.alpacax.com/llms.txt

# MCP configuration

Connect a client with the [MCP setup guide](/integrate/mcp/). Use these options when selecting a transport, token configuration or toolset.

## Token configuration

Tokens are stored as JSON, keyed by region and then workspace:

```json
{
  "ap1": {
    "production": "alpat-xxxxxxxxxxxxxxxxxx",
    "staging": "alpat-xxxxxxxxxxxxxxxxxx"
  }
}
```

**Default location**: `~/.alpacon-mcp/token.json` (falls back to `./config/token.json` if the global file doesn't exist).

**Resolution order** when the server looks up a token:

1. `ALPACON_MCP_CONFIG_FILE` environment variable, if set—points at a specific file
2. The global config, if it exists
3. The local config (`./config/token.json`)

  A single token can also be supplied per region and workspace via an environment variable named `ALPACON_MCP_<REGION>_<WORKSPACE>_TOKEN` (for example, `ALPACON_MCP_AP1_PRODUCTION_TOKEN`). An environment variable takes priority over the token file.

## Transports

`uvx alpacon-mcp` runs the **stdio** transport, the default for local clients in the [MCP setup guide](/integrate/mcp/). Two other transports are available for different deployment shapes:

- **SSE** (`alpacon-mcp-sse` console script): Server-Sent Events over HTTP, for local network integrations that need an HTTP endpoint instead of a spawned process.
- **Streamable HTTP** (`alpacon-mcp-http` console script): this is the transport behind the hosted server described in the [MCP setup guide](/integrate/mcp/). It authenticates callers through Auth0 (OAuth) instead of a static token file, so a client signs in through the browser instead of storing an API token locally.

Most individual users only need the default stdio setup in the [MCP setup guide](/integrate/mcp/); the other transports matter mainly if your organization self-hosts a shared MCP endpoint.

## Choose toolsets

A local server registers every tool by default. Some clients cap how many tools they expose, and each registered tool adds to the cost of every request, so you can register only the toolsets your workflows use. Pass `--toolsets` with a comma-separated list:

```bash
uvx alpacon-mcp --toolsets servers,commands,webftp
```

In a client config, add the flag to `args`:

```json
{
  "mcpServers": {
    "alpacon": {
      "command": "uvx",
      "args": ["alpacon-mcp", "--toolsets", "servers,commands,webftp,metrics"]
    }
  }
}
```

The `ALPACON_MCP_TOOLSETS` environment variable takes the same list; when both are set, `--toolsets` wins. With neither set, the server registers everything (`all`). The SSE transport (`alpacon-mcp-sse`) accepts the same flag. The hosted server always registers every tool and ignores this setting.

| Toolset | Tools it registers |
|---------|--------------------|
| `servers` | [Server management](/reference/mcp/tools/servers/): inventory, notes, agent actions, registration tokens |
| `commands` | [Command execution](/reference/mcp/tools/execution/) |
| `webftp` | [File transfer](/reference/mcp/tools/files/) |
| `system-info` | System information tools on the [system information & packages](/reference/mcp/tools/system/) page |
| `packages` | Package management tools on the [system information & packages](/reference/mcp/tools/system/) page |
| `metrics` | Metrics tools on the [monitoring & alerts](/reference/mcp/tools/monitoring/) page, plus `get_alert_rules` |
| `alerts` | Alerts, alert rules, and rule overrides on the [monitoring & alerts](/reference/mcp/tools/monitoring/) page |
| `events` | Server events on the [events & webhooks](/reference/mcp/tools/events/) page |
| `webhooks` | Event subscriptions and webhooks on the [events & webhooks](/reference/mcp/tools/events/) page |
| `audit` | [Audit logs](/reference/mcp/tools/audit/) |
| `security` | Command, server, and file ACLs on the [access control & approvals](/reference/mcp/tools/security/) page |
| `approvals` | Approval requests and sudo policies on the [access control & approvals](/reference/mcp/tools/security/) page |
| `iam` | IAM users, groups, memberships, and applications on the [IAM & API tokens](/reference/mcp/tools/iam/) page |
| `tokens` | API tokens on the [IAM & API tokens](/reference/mcp/tools/iam/) page |
| `certs` | [Certificates](/reference/mcp/tools/certificates/) |

Workspace tools (`list_workspaces`, `get_current_user`, and the [workspace settings](/reference/mcp/tools/workspace-settings/) tools), `health_check`, the [Work Session](/reference/mcp/tools/work-sessions/) tools, and the [prompts](/reference/mcp/prompts/) are always registered. Their names (`workspace`, `health`, `work-sessions`, `prompts`) are accepted in the list but change nothing. Names are case-insensitive; any other name stops the server at startup with an error that lists the valid ones.

  A narrow selection removes real capability. The prompts still point the agent at tools such as `execute_command` and `webftp_upload_file`, so leaving out `commands` or `webftp` makes those steps fail with "tool not found." A resource is only available when its toolset is, and `alpacon://servers/.../overview` comes from `system-info`, not `servers`.

Source: https://docs.alpacax.com/reference/mcp/configuration/
