Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoLocal listening port; also update the tunnel origin if changed.8787
TZ_NAMENoTime zone for date grouping and daily quota.Asia/Shanghai
CPA_BASENoBase URL of CPA on the same VPS; adjust the port as needed.http://127.0.0.1:8317/v1
IMAGE_DIRNoData directory, used with systemd's StateDirectory./var/lib/cpa-image-mcp/images
MCP_TOKENNoRequest-header authentication; at least 24 characters using letters, digits, `_`, or `-`. Randomly generated by the installer.
MCP_SECRETNoOptional secret path segment; usually unnecessary.
PREVIEW_PXNoMaximum preview side length.512
CPA_API_KEYYesAPI credential for your own CPA instance (Required).
DAILY_LIMITNoMaximum daily generation/editing calls; deleting images does not restore quota.40
IMAGE_MODELNoBackend image model.gpt-image-2
PUBLIC_HOSTYesPublic HTTPS hostname, without a scheme or path. Replace the example.
DOWNLOAD_TTL_HOURSNoLink validity in hours; a positive integer.72
DOWNLOAD_SIGNING_KEYNoHMAC signing key, at least 32 characters; changing it invalidates existing links. Independently generated by the installer.
IMAGE_RETENTION_DAYSNoImage retention in days; a positive integer.3

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources