available_servers
CLI command for viewing available MCP servers.
This module defines the AvailableServersCmd class, which implements a
command-line interface (CLI) command for viewing the available MCP servers.
The output will include both built-in servers and plugin servers.
AvailableServersCmd
Bases: BaseCmd
CLI command for viewing available MCP servers.
This class adds the "available-servers" command to the main argument parser, allowing users to view available built-in and plugin MCP servers for MADA.
Methods:
| Name | Description |
|---|---|
add_parser |
Adds the "available-servers" subcommand and its arguments to the CLI parser. |
process_command |
Executes the logic for retrieving available servers using the parsed CLI arguments. |
Source code in src/mada_tools/cli/commands/available_servers.py
add_parser(subparsers)
Add the parser for this command to the main ArgumentParser.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
subparsers
|
ArgumentParser
|
A subparser object to add this command to. |
required |
Source code in src/mada_tools/cli/commands/available_servers.py
process_command(args)
Execute the logic for this CLI command.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
args
|
Namespace
|
Parsed CLI arguments from the user. |
required |