mcp_registry_client.commands.info
Info command implementation.
InfoCommand
Bases: BaseCommand
Command to get detailed information about a specific server.
Source code in mcp_registry_client/commands/info.py
__init__(args)
Initialize info command.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
args
|
Namespace
|
Parsed command line arguments containing 'server_name' and 'json' |
required |
execute()
async
Execute the info command.
Returns:
| Type | Description |
|---|---|
Server
|
Server information from the registry client |
Raises:
| Type | Description |
|---|---|
RegistryAPIError
|
If API request fails |
RegistryClientError
|
If client processing fails |
RequestError
|
If HTTP request fails |
ValidationError
|
If response validation fails |
ValueError
|
If server is not found |
Source code in mcp_registry_client/commands/info.py
format_output(result)
Format and display server information.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
Server
|
Server object with detailed information |
required |
Source code in mcp_registry_client/commands/info.py
validate_args()
Validate info command arguments.
Raises:
| Type | Description |
|---|---|
ValueError
|
If server name is invalid |