Put following to .gemini/settings.json:
{
"mcpServers": {
"appm": {
"httpUrl": "https://HOSTNAME/appm/mcp",
"headers": {
"Authorization": "Bearer ${APPM_API_KEY}"
}
}
}
}
Replace HOSTNAME with the hostname where APPM is running. To avoid storing the MCP API key in .gemini/settings.json, set APPM_API_KEY in the environment before starting Gemini CLI; Gemini CLI expands ${APPM_API_KEY} when loading the settings.
Self-signed certificates
If you’re using self-signed certificates for GUI (which is the default), you’ll need to set this before running gemini:
export NODE_TLS_REJECT_UNAUTHORIZED=0
You can refer to the APPM installation manual regarding how to setup proper certificates (under “Change SSL Certificate” title).