Configuration

One strict TOML file. No secrets stored in it.

Complete v0.1 example

~/.icy/icy.toml
listen = "127.0.0.1:8737"

[upstreams.github]              # remote streamable-HTTP MCP server
url = "https://example-mcp.invalid/mcp"
token_env = "ICY_UPSTREAM_GITHUB_TOKEN"
timeout_seconds = 300

[upstreams.files]               # local stdio MCP server spawned by icy
command = "npx"
args = ["-y", "@modelcontextprotocol/server-filesystem", "/projects"]
env_allow = []

[agents.claude-code.tools]
"files__read_*" = "allow"
"github__list_*" = "allow"
"*__delete*" = "deny"
"*" = "ask"

[approvals]
adapters = ["ntfy"]
timeout_seconds = 120           # 1..=3600; timeout means deny

[adapters.ntfy]
server = "https://ntfy.sh"
topic_env = "ICY_NTFY_TOPIC"

Validation & security rules

  • listen must be a loopback address (127.0.0.1 or ::1). Public binds are rejected.
  • Upstream and agent names use lowercase letters, digits, - and _. Double underscores (__) are reserved for upstream__tool namespacing.
  • Secrets are never stored in icy.toml; reference them via token_env and topic_env.
  • Spawned local servers receive only the environment variables listed in env_allow.
  • Unknown keys are rejected at startup so typos never fail silently. Restart icy daemon after edits.