Mistral Vibe
Mistral Vibe CLI:vibe mcp add 從環境變數讀取金鑰;或將伺服器附加到 config.toml。
- API 金鑰(Bearer)
- OAuth 登入
一行指令
推薦vibe mcp add aicharged --url https://aicharged.io/api/v1/mcp --api-key-env AICHARGED_API_KEY
設定檔
config.toml
[[mcp_servers]]
name = "aicharged"
transport = "streamable-http"
url = "https://aicharged.io/api/v1/mcp"
[mcp_servers.auth]
type = "static"
api_key_env = "AICHARGED_API_KEY"
api_key_header = "Authorization"
api_key_format = "Bearer {token}"
將它附加到 Vibe 的使用者 config.toml 中;api_key_env 指定存放金鑰的環境變數名稱。
將金鑰存放在環境變數中
· macOS / Linuxexport AICHARGED_API_KEY="<API_KEY>"
將 export 這一行加入 shell 設定檔(例如 ~/.zshrc),這樣新開的終端機也能讀取到金鑰。