Codex
Let Codex reach your servers through K2Shell.
Add K2Shell to ~/.codex/config.toml and Codex gets the same tools, scoped and logged.
[mcp_servers.k2shell]
url = "https://your-k2shell-host/mcp"
http_headers = { Authorization = "Bearer k2shell_..." }What you get
One block of config
Copy it from the API keys page with your key filled in.
Scoped
Pick the servers and policy for this key.
Watched
Sessions show up live; recording depends on your settings.