namespace io.github.hatayama.uLoopMCP
{
///
/// A class for managing settings related to the Unity MCP Server.
///
public static class McpServerConfig
{
///
/// Default port number.
///
public const int DEFAULT_PORT = 8700;
///
/// Buffer size for TCP/IP communication.
///
public const int BUFFER_SIZE = 4096;
///
/// Wait timeout in seconds when stopping the server.
///
public const int SHUTDOWN_TIMEOUT_SECONDS = 5;
///
/// Version string for JSON-RPC 2.0.
///
public const string JSONRPC_VERSION = "2.0";
///
/// Internal error code.
///
public const int INTERNAL_ERROR_CODE = -32603;
///
/// Minimum port number.
///
public const int MIN_PORT_NUMBER = 1024;
///
/// Maximum port number.
///
public const int MAX_PORT_NUMBER = 65535;
///
/// Unknown client endpoint.
///
public const string UNKNOWN_CLIENT_ENDPOINT = "Unknown";
///
/// Default log type.
///
public const string DEFAULT_LOG_TYPE = "All";
///
/// Default maximum number of logs.
///
public const int DEFAULT_MAX_LOG_COUNT = 100;
///
/// Default search text.
///
public const string DEFAULT_SEARCH_TEXT = "";
///
/// Whether to include stack traces by default.
///
public const bool DEFAULT_INCLUDE_STACK_TRACE = true;
///
/// Default line number.
///
public const int DEFAULT_LINE_NUMBER = 0;
///
/// Date and time format string.
///
public const string TIMESTAMP_FORMAT = "yyyy-MM-dd HH:mm:ss";
///
/// ISO format date and time string.
///
public const string ISO_DATETIME_FORMAT = "yyyy-MM-ddTHH:mm:ss.fffZ";
///
/// Default maximum depth for JSON serialization.
/// Set to int.MaxValue to effectively disable depth limiting while preventing infinite loops.
///
public const int DEFAULT_JSON_MAX_DEPTH = int.MaxValue;
}
}