Use the [API and MCP connection guide](./api-and-mcp-connections.md) for tested app settings, credential locations, examples and results. Verified on 5 October 2026.
Both `.env.local` and `.env.coolify.local` retain the placeholder `N8N_INGEST_SECRET`. Production rejected it. The value in `cooler.env` passed an authenticated production read. No credentials were changed during verification.
- MEGA MCP: `NEXT_PUBLIC_POCKETBASE_URL`, `POCKETBASE_ADMIN_EMAIL`, `POCKETBASE_ADMIN_PASSWORD`; optional `POCKETBASE_ADMIN_TOKEN`. The adapter requires email/password even when a token exists.
- Named-user app API: MEGA login and its `mega_session` cookie in `AUTH_MODE=users`.
- Machine API routes: `x-ingest-secret` matching deployed `N8N_INGEST_SECRET`.
- Posted receipt correction: operational authorization, same-origin request and `RECEIPT_CORRECTION_SECRET` as the correction code.
- Outbound AI: provider-specific credentials; these are not MEGA API keys.
MEGA MCP uses **local stdio**, distinct from the external n8n MCP service at `N8N_MCP_URL`. The n8n bearer token is separate and was not tested here. Do not use the n8n HTTP settings for MEGA's stdio server.
Use your deployment environment manager for actual production variables. Ignored local files do not automatically update Coolify or n8n. When changing an ingest secret, update the app and each calling workflow together; generating a new string alone does not connect a client.
See [COOLIFY.md](../../COOLIFY.md) for deployment, [delivery-note workflow](../n8n/delivery-note-ocr.md) for batch tick integration, and [purchase-order workflow](../n8n/purchase-order-ingest.md) for PO ingestion.
See [remote setup and deployment](./remote-purchasing-mcp.md) for the same-app `/api/mcp` endpoint, dedicated keys, purchasing writes and no-delete policy.