30 lines
726 B
Python
30 lines
726 B
Python
"""
|
|
Configuration settings for the Unity MCP Server.
|
|
This file contains all configurable parameters for the server.
|
|
"""
|
|
|
|
from dataclasses import dataclass
|
|
|
|
@dataclass
|
|
class ServerConfig:
|
|
"""Main configuration class for the MCP server."""
|
|
|
|
# Network settings
|
|
unity_host: str = "localhost"
|
|
unity_port: int = 6400
|
|
mcp_port: int = 6500
|
|
|
|
# Connection settings
|
|
connection_timeout: float = 15.0
|
|
buffer_size: int = 32768
|
|
|
|
# Logging settings
|
|
log_level: str = "INFO"
|
|
log_format: str = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
|
|
|
# Server settings
|
|
max_retries: int = 3
|
|
retry_delay: float = 1.0
|
|
|
|
# Create a global config instance
|
|
config = ServerConfig() |