MCP configuration

Connect a client with the MCP setup guide. 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)
Note

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. 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. 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; 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.

ToolsetTools it registers
serversServer management: inventory, notes, agent actions, registration tokens
commandsCommand execution
webftpFile transfer
system-infoSystem information tools on the system information & packages page
packagesPackage management tools on the system information & packages page
metricsMetrics tools on the monitoring & alerts page, plus get_alert_rules
alertsAlerts, alert rules, and rule overrides on the monitoring & alerts page
eventsServer events on the events & webhooks page
webhooksEvent subscriptions and webhooks on the events & webhooks page
auditAudit logs
securityCommand, server, and file ACLs on the access control & approvals page
approvalsApproval requests and sudo policies on the access control & approvals page
iamIAM users, groups, memberships, and applications on the IAM & API tokens page
tokensAPI tokens on the IAM & API tokens page
certsCertificates

Workspace tools (list_workspaces, get_current_user, and the workspace settings tools), health_check, the Work Session tools, and the 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.

Warning

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.

Last updated: