|
| 1 | +# Copy this file to ``.env`` and fill in values for your environment. |
| 2 | +# ``python-dotenv`` is loaded by ``gee_mcp.server.auth`` on import, so any |
| 3 | +# variables set here will be picked up automatically when the server |
| 4 | +# starts. |
| 5 | + |
| 6 | +# ---------------------------------------------------------------------- |
| 7 | +# Gemini (pick ONE of the two paths below) |
| 8 | +# ---------------------------------------------------------------------- |
| 9 | + |
| 10 | +# Path A — Gemini Developer API key |
| 11 | +# GEMINI_API_KEY= |
| 12 | +# GOOGLE_API_KEY= |
| 13 | + |
| 14 | +# Path B — Vertex AI project (requires ``gcloud auth |
| 15 | +# application-default login`` to have been run) |
| 16 | +# VERTEXAI_PROJECT=your-vertexai-project |
| 17 | +# VERTEXAI_LOCATION=global |
| 18 | + |
| 19 | +# ---------------------------------------------------------------------- |
| 20 | +# Google Earth Engine |
| 21 | +# ---------------------------------------------------------------------- |
| 22 | +# |
| 23 | +# Auth is delegated to ``ee.Initialize`` which walks the standard |
| 24 | +# Google Cloud credential chain (GOOGLE_APPLICATION_CREDENTIALS, |
| 25 | +# gcloud ADC, the ``earthengine authenticate`` cache, GCE metadata). |
| 26 | +# You typically just need GEE_PROJECT after running |
| 27 | +# ``earthengine authenticate`` or ``gcloud auth application-default login``. |
| 28 | + |
| 29 | +# Required: GEE project id used for ``ee.Initialize(project=...)``. |
| 30 | +GEE_PROJECT=your-gee-project |
| 31 | + |
| 32 | +# Optional: path to a service-account JSON key file. Set this when |
| 33 | +# running headlessly (CI, Cloud Run, etc.) without interactive |
| 34 | +# authentication. |
| 35 | +# GOOGLE_APPLICATION_CREDENTIALS=/absolute/path/to/service-account.json |
| 36 | + |
| 37 | +# ---------------------------------------------------------------------- |
| 38 | +# Test / CI escape hatch |
| 39 | +# ---------------------------------------------------------------------- |
| 40 | + |
| 41 | +# Set to ``1`` to skip GEE auth entirely on import. Used by the test |
| 42 | +# suite to avoid hitting the auth chain in CI. Do not set for normal |
| 43 | +# use. |
| 44 | +# GEE_SKIP_AUTH=1 |
0 commit comments