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:
{
"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:
ALPACON_MCP_CONFIG_FILEenvironment variable, if set—points at a specific file- The global config, if it exists
- 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. Two other transports are available for different deployment shapes:
- SSE (
alpacon-mcp-sseconsole script): Server-Sent Events over HTTP, for local network integrations that need an HTTP endpoint instead of a spawned process. - Streamable HTTP (
alpacon-mcp-httpconsole 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:
uvx alpacon-mcp --toolsets servers,commands,webftpIn a client config, add the flag to args:
{
"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: inventory, notes, agent actions, registration tokens |
commands | Command execution |
webftp | File transfer |
system-info | System information tools on the system information & packages page |
packages | Package management tools on the system information & packages page |
metrics | Metrics tools on the monitoring & alerts page, plus get_alert_rules |
alerts | Alerts, alert rules, and rule overrides on the monitoring & alerts page |
events | Server events on the events & webhooks page |
webhooks | Event subscriptions and webhooks on the events & webhooks page |
audit | Audit logs |
security | Command, server, and file ACLs on the access control & approvals page |
approvals | Approval requests and sudo policies on the access control & approvals page |
iam | IAM users, groups, memberships, and applications on the IAM & API tokens page |
tokens | API tokens on the IAM & API tokens page |
certs | Certificates |
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.
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.