swag-mcp
by jmagar
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SWAG_MCP_HOST | No | Bind address for the MCP server | 127.0.0.1 |
| SWAG_MCP_PORT | No | Host-side port (Docker only; container always uses 8000) | 49152 |
| SWAG_MCP_TOKEN | No | Bearer token enforced by FastMCP for direct MCP server access | |
| SWAG_MCP_NO_AUTH | No | Set true only for loopback/proxy-isolated deployments without server auth | false |
| SWAG_MCP_LOG_LEVEL | No | DEBUG / INFO / WARNING / ERROR / CRITICAL | INFO |
| SWAG_MCP_MAX_RETRIES | No | Max retry attempts | 3 |
| SWAG_MCP_BIND_ADDRESS | No | Docker host bind address for the published MCP port | 127.0.0.1 |
| SWAG_MCP_LOG_PAYLOADS | No | Include request/response bodies in logs | false |
| SWAG_MCP_LOG_DIRECTORY | No | Directory for rotating log files | /app/.swag-mcp/logs |
| SWAG_MCP_SSH_HOST_PATH | No | Path to SSH directory for remote SWAG host access | |
| SWAG_MCP_TEMPLATE_PATH | No | Path to Jinja2 templates directory | templates |
| SWAG_MCP_RATE_LIMIT_RPS | No | Sustained requests per second | 10.0 |
| SWAG_MCP_PROXY_CONFS_URI | No | Overrides PROXY_CONFS_PATH when set. Accepts a local path or SSH URI. | |
| SWAG_MCP_LOG_FILE_ENABLED | No | Write logs to files in addition to stdout | true |
| SWAG_MCP_PROXY_CONFS_PATH | No | Local path to SWAG proxy confs directory | /swag/nginx/proxy-confs |
| SWAG_MCP_RATE_LIMIT_BURST | No | Burst capacity above the RPS limit | 20 |
| SWAG_MCP_LOG_FILE_MAX_BYTES | No | Max log file size before rotation (10 MB) | 10485760 |
| SWAG_MCP_RATE_LIMIT_ENABLED | No | Enable the rate-limiting middleware | false |
| SWAG_MCP_SWAG_LOG_BASE_PATH | No | Base path for SWAG log files (local or remote) | /swag/log |
| SWAG_MCP_DEFAULT_QUIC_ENABLED | No | QUIC default for new configs | false |
| SWAG_MCP_BACKUP_RETENTION_DAYS | No | Days to keep backup files. Cleanup runs at startup and on backups action=cleanup. | 30 |
| SWAG_MCP_HEALTH_CHECK_INSECURE | No | Skip SSL verification for health probes. Not recommended for production. | false |
| SWAG_MCP_LOG_PAYLOAD_MAX_LENGTH | No | Max payload length when LOG_PAYLOADS=true | 1000 |
| SWAG_MCP_DEFAULT_WEB_AUTH_METHOD | No | Web endpoint auth method used when create omits auth_method; this is not MCP server auth | authelia |
| SWAG_MCP_ENABLE_RETRY_MIDDLEWARE | No | Automatically retry failed operations | true |
| SWAG_MCP_ENABLE_STRUCTURED_LOGGING | No | Emit JSON structured logs | false |
| SWAG_MCP_SLOW_OPERATION_THRESHOLD_MS | No | Log a warning when any operation exceeds this threshold | 1000 |
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
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo issues