|
| 1 | +# Mapbox MCP DevKit Server Configuration |
| 2 | +# Copy this file to .env and configure as needed |
| 3 | + |
| 4 | +# ============================================================================= |
| 5 | +# Required Configuration |
| 6 | +# ============================================================================= |
| 7 | + |
| 8 | +# Mapbox API Access Token (required) |
| 9 | +# Get your token at: https://account.mapbox.com/access-tokens |
| 10 | +MAPBOX_ACCESS_TOKEN=your-mapbox-token-here |
| 11 | + |
| 12 | +# ============================================================================= |
| 13 | +# Optional MCP Configuration |
| 14 | +# ============================================================================= |
| 15 | + |
| 16 | +# Disable console logging (recommended when using stdio transport) |
| 17 | +# Uncomment to enable: |
| 18 | +# MCP_DISABLE_LOGGING=true |
| 19 | + |
| 20 | +# ============================================================================= |
| 21 | +# OpenTelemetry Tracing (Optional) |
| 22 | +# ============================================================================= |
| 23 | + |
| 24 | +# Enable tracing by setting an OTLP endpoint |
| 25 | +# For local development with Jaeger: |
| 26 | +# 1. Start Jaeger: npm run tracing:jaeger:start |
| 27 | +# 2. Uncomment the line below |
| 28 | +# 3. View traces at: http://localhost:16686 |
| 29 | +OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 |
| 30 | + |
| 31 | +# Service identification |
| 32 | +OTEL_SERVICE_NAME=mapbox-mcp-devkit-server |
| 33 | +# OTEL_SERVICE_VERSION=0.4.5 |
| 34 | + |
| 35 | +# Resource attributes (customize as needed) |
| 36 | +OTEL_RESOURCE_ATTRIBUTES=service.name=mapbox-mcp-devkit-server,service.version=0.4.5 |
| 37 | + |
| 38 | +# Optional: Console tracing for development (SSE transport only) |
| 39 | +# ⚠️ Do NOT enable with stdio transport - it breaks JSON-RPC communication |
| 40 | +# OTEL_EXPORTER_CONSOLE_ENABLED=true |
| 41 | + |
| 42 | +# Optional: OTLP authentication headers (for production backends) |
| 43 | +# OTEL_EXPORTER_OTLP_HEADERS={"Authorization": "Bearer your-token"} |
| 44 | + |
| 45 | +# Optional: Sampling (useful for high-volume production environments) |
| 46 | +# OTEL_TRACES_SAMPLER=traceidratio |
| 47 | +# OTEL_TRACES_SAMPLER_ARG=0.1 |
| 48 | + |
| 49 | +# ============================================================================= |
| 50 | +# AWS X-Ray Configuration (Optional) |
| 51 | +# ============================================================================= |
| 52 | +# Uncomment these settings if using AWS X-Ray instead of Jaeger |
| 53 | + |
| 54 | +# AWS region (required for X-Ray) |
| 55 | +# AWS_REGION=us-east-1 |
| 56 | + |
| 57 | +# X-Ray specific resource attributes |
| 58 | +# OTEL_RESOURCE_ATTRIBUTES=service.name=mapbox-mcp-devkit-server,service.version=0.4.5,aws.region=us-east-1 |
| 59 | + |
| 60 | +# X-Ray trace headers (example format) |
| 61 | +# OTEL_EXPORTER_OTLP_HEADERS={"x-amzn-trace-id": "Root=1-5e2b3c4d-5f6a7b8c9d0e1f2a3b4c5d6e;Parent=7f8a9b0c1d2e3f4a;Sampled=1"} |
| 62 | + |
| 63 | +# Note: AWS credentials should be configured separately via: |
| 64 | +# - IAM role (recommended for EC2/ECS/Lambda) |
| 65 | +# - AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables |
| 66 | +# - AWS CLI profile (~/.aws/credentials) |
| 67 | + |
| 68 | +# ============================================================================= |
| 69 | +# Azure Monitor Configuration (Optional) |
| 70 | +# ============================================================================= |
| 71 | +# Uncomment these settings if using Azure Monitor Application Insights |
| 72 | + |
| 73 | +# Azure Monitor OTLP endpoint (replace with your ingestion endpoint) |
| 74 | +# OTEL_EXPORTER_OTLP_ENDPOINT=https://<your-region>.livediagnostics.monitor.azure.com/v1/traces |
| 75 | + |
| 76 | +# Azure Monitor authentication (use your connection string or AAD token) |
| 77 | +# OTEL_EXPORTER_OTLP_HEADERS={"x-ms-client-principal-id": "your-connection-string"} |
| 78 | + |
| 79 | +# Azure-specific resource attributes |
| 80 | +# OTEL_RESOURCE_ATTRIBUTES=service.name=mapbox-mcp-devkit-server,service.version=0.4.5,cloud.provider=azure,cloud.region=eastus |
| 81 | + |
| 82 | +# Note: Set up Azure Application Insights first |
| 83 | +# See: https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-enable |
| 84 | + |
| 85 | +# ============================================================================= |
| 86 | +# Google Cloud Trace Configuration (Optional) |
| 87 | +# ============================================================================= |
| 88 | +# Uncomment these settings if using Google Cloud Trace |
| 89 | + |
| 90 | +# GCP Trace OTLP endpoint |
| 91 | +# OTEL_EXPORTER_OTLP_ENDPOINT=https://cloudtrace.googleapis.com/v2/projects/<project-id>/traces |
| 92 | + |
| 93 | +# GCP-specific resource attributes |
| 94 | +# OTEL_RESOURCE_ATTRIBUTES=service.name=mapbox-mcp-devkit-server,service.version=0.4.5,cloud.provider=gcp,gcp.project.id=your-project-id |
| 95 | + |
| 96 | +# Note: Ensure you have Application Default Credentials configured |
| 97 | +# gcloud auth application-default login |
| 98 | +# Or use a service account with Cloud Trace Agent role |
| 99 | + |
| 100 | +# ============================================================================= |
| 101 | +# Datadog Configuration (Optional) |
| 102 | +# ============================================================================= |
| 103 | +# Uncomment these settings if using Datadog APM |
| 104 | + |
| 105 | +# Datadog OTLP endpoint (use your Datadog site) |
| 106 | +# OTEL_EXPORTER_OTLP_ENDPOINT=https://api.datadoghq.com/api/v2/traces |
| 107 | + |
| 108 | +# Datadog API key authentication |
| 109 | +# OTEL_EXPORTER_OTLP_HEADERS={"dd-api-key": "your-datadog-api-key"} |
| 110 | + |
| 111 | +# Datadog-specific resource attributes |
| 112 | +# OTEL_RESOURCE_ATTRIBUTES=service.name=mapbox-mcp-devkit-server,service.version=0.4.5,deployment.environment=production |
| 113 | + |
| 114 | +# Note: Datadog also supports agent-based collection via localhost:4318 |
| 115 | +# See: https://docs.datadoghq.com/tracing/trace_collection/opentelemetry/ |
| 116 | + |
| 117 | +# ============================================================================= |
| 118 | +# New Relic Configuration (Optional) |
| 119 | +# ============================================================================= |
| 120 | +# Uncomment these settings if using New Relic |
| 121 | + |
| 122 | +# New Relic OTLP endpoint |
| 123 | +# OTEL_EXPORTER_OTLP_ENDPOINT=https://otlp.nr-data.net:4318 |
| 124 | + |
| 125 | +# New Relic license key authentication |
| 126 | +# OTEL_EXPORTER_OTLP_HEADERS={"api-key": "your-new-relic-license-key"} |
| 127 | + |
| 128 | +# New Relic-specific resource attributes |
| 129 | +# OTEL_RESOURCE_ATTRIBUTES=service.name=mapbox-mcp-devkit-server,service.version=0.4.5 |
| 130 | + |
| 131 | +# Note: Use your specific New Relic data center endpoint: |
| 132 | +# US: https://otlp.nr-data.net:4318 |
| 133 | +# EU: https://otlp.eu01.nr-data.net:4318 |
| 134 | +# See: https://docs.newrelic.com/docs/more-integrations/open-source-telemetry-integrations/opentelemetry/opentelemetry-setup/ |
| 135 | + |
| 136 | +# ============================================================================= |
| 137 | +# Honeycomb Configuration (Optional) |
| 138 | +# ============================================================================= |
| 139 | +# Uncomment these settings if using Honeycomb |
| 140 | + |
| 141 | +# Honeycomb OTLP endpoint |
| 142 | +# OTEL_EXPORTER_OTLP_ENDPOINT=https://api.honeycomb.io:443 |
| 143 | + |
| 144 | +# Honeycomb API key and dataset |
| 145 | +# OTEL_EXPORTER_OTLP_HEADERS={"x-honeycomb-team": "your-api-key", "x-honeycomb-dataset": "mapbox-mcp-devkit-server"} |
| 146 | + |
| 147 | +# Honeycomb-specific resource attributes |
| 148 | +# OTEL_RESOURCE_ATTRIBUTES=service.name=mapbox-mcp-devkit-server,service.version=0.4.5 |
| 149 | + |
| 150 | +# Note: Get your API key from: https://ui.honeycomb.io/account |
| 151 | +# See: https://docs.honeycomb.io/getting-data-in/opentelemetry-overview/ |
| 152 | + |
| 153 | +# ============================================================================= |
| 154 | +# Custom API Endpoint (Optional) |
| 155 | +# ============================================================================= |
| 156 | +# Override the default Mapbox API endpoint if needed |
| 157 | +# MAPBOX_API_ENDPOINT=https://api.mapbox.com/ |
0 commit comments