-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration
jake-chromatir edited this page Aug 9, 2026
·
4 revisions
magmascript loads config from (highest priority first):
- Environment variables
- Config file:
~/.config/magmascript/config.toml - Defaults
[mcp]
url = "https://magmacrunch.duckdns.org/mcp"
api_key = "your-mcp-api-key"
[pi]
host = "192.168.1.16"
user = "jake"
[gh]
token = "ghp_..."
owner = "magmacrunchmedia"
repo = "magmacrunch.com"
[media]
pexels_key = "your-pexels-key"
pixabay_key = "your-pixabay-key"
[cache]
enabled = true
ttl_media = 86400 # 24h
ttl_scores = 3600 # 1h
ttl_gh = 300 # 5min| Variable | Fallback | Default |
|---|---|---|
MAGMA_API_KEY |
MCP_API_KEY |
(none) |
MAGMA_URL |
— | https://magmacrunch.duckdns.org/mcp |
| Variable | Default |
|---|---|
MAGMA_PI_HOST |
192.168.1.16 |
MAGMA_PI_USER |
jake |
| Variable | Fallback | Default |
|---|---|---|
MAGMA_GH_TOKEN |
GITHUB_TOKEN |
(none) |
MAGMA_GH_OWNER |
— | magmacrunchmedia |
MAGMA_GH_REPO |
— | magmacrunch.com |
| Variable | Default |
|---|---|
MAGMA_PEXELS_KEY |
(none — free key from pexels.com/api) |
MAGMA_PIXABAY_KEY |
(none — free key from pixabay.com/api) |
| Variable | Default |
|---|---|
MAGMA_CACHE_DISABLED |
(none — set to "1" to disable) |
Add to ~/.zshrc:
export MAGMA_API_KEY="your-key"
export GITHUB_TOKEN=$(gh auth token)