def __init__(self, command: str, args: list, env: dict | None = None, name: str = "default") -> None:
        """Initialize a server with connection parameters.
        
        Args:
            command: The command to execute.
            args: Arguments for the command.
            env: Environment variables for the command.
            name: A name for this server instance.
        """
        self.name: str = name
        self.command: str = command
        self.args: list = args
        
        if env is None:
            self.env = get_default_environment()
        else:
            default_env = get_default_environment()
            default_env.update(env)
            self.env = default_env
            
        self.session: ClientSession | None = None
        self._cleanup_lock: asyncio.Lock = asyncio.Lock()
        self.exit_stack: AsyncExitStack = AsyncExitStack()
Initialize a server with connection parameters.
        
        Args:
            command: The command to execute.
            args: Arguments for the command.
            env: Environment variables for the command.
            name: A name for this server instance.
        
src/upsonic/tools_server/server/tools.py