endpoint adjustment
parent
8303ed1dbc
commit
99beca7cfe
|
|
@ -78,7 +78,7 @@ Files created:
|
||||||
- `milestones.json`: One-time events tracker
|
- `milestones.json`: One-time events tracker
|
||||||
|
|
||||||
### Data Transmission
|
### Data Transmission
|
||||||
- **Endpoint**: `https://telemetry.coplay.dev/unity-mcp/anonymous`
|
- **Endpoint**: `https://api-prod.coplay.dev/telemetry/events`
|
||||||
- **Method**: HTTPS POST with JSON payload
|
- **Method**: HTTPS POST with JSON payload
|
||||||
- **Retry**: Background thread with graceful failure
|
- **Retry**: Background thread with graceful failure
|
||||||
- **Timeout**: 10 second timeout, no retries on failure
|
- **Timeout**: 10 second timeout, no retries on failure
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ class ServerConfig:
|
||||||
|
|
||||||
# Telemetry settings
|
# Telemetry settings
|
||||||
telemetry_enabled: bool = True
|
telemetry_enabled: bool = True
|
||||||
telemetry_endpoint: str = "https://telemetry.coplay.dev/unity-mcp/anonymous"
|
telemetry_endpoint: str = "https://api-prod.coplay.dev/telemetry/events"
|
||||||
|
|
||||||
# Create a global config instance
|
# Create a global config instance
|
||||||
config = ServerConfig()
|
config = ServerConfig()
|
||||||
|
|
@ -61,11 +61,8 @@ class TelemetryConfig:
|
||||||
# Check environment variables for opt-out
|
# Check environment variables for opt-out
|
||||||
self.enabled = not self._is_disabled()
|
self.enabled = not self._is_disabled()
|
||||||
|
|
||||||
# Telemetry endpoint - can be configured via environment
|
# Telemetry endpoint - hardcoded to Coplay production API
|
||||||
self.endpoint = os.environ.get(
|
self.endpoint = "https://api-prod.coplay.dev/telemetry/events"
|
||||||
"UNITY_MCP_TELEMETRY_ENDPOINT",
|
|
||||||
"https://telemetry.coplay.dev/unity-mcp/anonymous"
|
|
||||||
)
|
|
||||||
|
|
||||||
# Local storage for UUID and milestones
|
# Local storage for UUID and milestones
|
||||||
self.data_dir = self._get_data_directory()
|
self.data_dir = self._get_data_directory()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue