Put following to .gemini/settings.json:
{
"mcpServers": {
"appm": {
"httpUrl": "https://HOSTNAME/appm/mcp",
"headers": {
"Authorization": "Bearer MCP_API_KEY"
}
}
}
}
Replace HOSTNAME with hostname where APPM is running and MCP_API_KEY with the key you generated in previous chapter.
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).