def METHOD_NAME() -> None:
    """Run a server for handling pcommands."""
    from efro.error import CleanError
    from efrotools import extract_arg
    import efrotools.pcommandbatch as pcb
    pcommand.disallow_in_batch()
    args = pcommand.get_args()
    idle_timeout_secs = int(extract_arg(args, '--timeout', required=True))
    project_dir = extract_arg(args, '--project-dir', required=True)
    instance = extract_arg(args, '--instance', required=True)
    if args:
        raise CleanError(f'Unexpected args: {args}.')
    pcb.METHOD_NAME(
        idle_timeout_secs=idle_timeout_secs,
        project_dir=project_dir,
        instance=instance,
    )