demo / tree

tree - cli-mcp examples/skip-paths

NAME

tree - command group with leaves

SYNOPSIS

tree

DESCRIPTION

A group (non-leaf) with two subcommand leaves. In default mode, the group itself is NOT an MCP tool; only its leaves (tree_leaf-a, tree_leaf-b) are. In include-groups mode, tree also projects as a tool that returns the group's --help when called.

Examples:

# default: 3 tools projected (hello, tree_leaf-a, tree_leaf-b)
# secret-debug also present unless skipped

# include-groups: 4 tools projected, adding `tree` itself
# `tree` returns the help text listing its leaves

Use group projection when an agent benefits from discovering the subtree at runtime. Skip it when the group's --help adds no value beyond what the leaves already advertise.

Usage:

tree [GLOBAL OPTIONS] [command [COMMAND OPTIONS]] [ARGUMENTS...]

COMMANDS

leaf-a

leaf A

leaf-b

leaf B