nat.plugins.fastmcp.cli.commands#

FastMCP CLI commands for NeMo Agent Toolkit.

Functions#

fastmcp_command()

FastMCP-related commands.

fastmcp_server_command()

FastMCP server commands.

_run_fastmcp_cli(→ None)

Run the upstream fastmcp CLI with passthrough arguments.

_resolve_nat_cli_command(→ list[str])

_stop_process(→ None)

fastmcp_server_dev(→ None)

Developer-focused FastMCP server runner with reload support.

fastmcp_server_install(→ None)

Generate client config snippets for a FastMCP server.

_mcp_server_entry(→ dict[str, object])

_emit_mcp_json(→ None)

fastmcp_server_install_cursor(→ None)

Generate Cursor MCP config.

fastmcp_server_install_nat_workflow(→ None)

Generate a NAT MCP client config snippet for a FastMCP server.

Module Contents#

fastmcp_command()#

FastMCP-related commands.

fastmcp_server_command()#

FastMCP server commands.

_run_fastmcp_cli(subcommand: list[str], extra_args: list[str]) None#

Run the upstream fastmcp CLI with passthrough arguments.

Args:

subcommand: The fastmcp subcommand chain to invoke. extra_args: Additional CLI arguments to forward.

_resolve_nat_cli_command() list[str]#
_stop_process(proc: subprocess.Popen) None#
fastmcp_server_dev(
ctx: click.Context,
config_file: pathlib.Path,
override: tuple[tuple[str, str], Ellipsis],
reload: bool,
watch_path: tuple[pathlib.Path, Ellipsis],
reload_debounce: int,
reload_cooldown: float,
reload_include_glob: tuple[str, Ellipsis],
reload_exclude_glob: tuple[str, Ellipsis],
) None#

Developer-focused FastMCP server runner with reload support.

fastmcp_server_install(ctx: click.Context) None#

Generate client config snippets for a FastMCP server.

_mcp_server_entry(name: str, url: str) dict[str, object]#
_emit_mcp_json(name: str, url: str, wrap_servers: bool) None#
fastmcp_server_install_cursor(name: str, url: str) None#

Generate Cursor MCP config.

fastmcp_server_install_nat_workflow(
name: str,
url: str,
per_user: bool,
auth_provider: bool,
auth_provider_name: str | None,
) None#

Generate a NAT MCP client config snippet for a FastMCP server.