Command Line Interface
The CLI module handles command-line argument parsing and application entry points.
CLI Module
CLI entry point for mcpcap.
This module provides the command-line interface for mcpcap, handling argument parsing and server initialization.
- mcpcap.cli.main()[source]
Main function to parse arguments and start the MCP server.
Parses command-line arguments, initializes the configuration and MCP server, and handles graceful shutdown and error conditions.
- Returns:
Exit code (0 for success, 1 for error)
- Return type:
- Raises:
KeyboardInterrupt – If the user interrupts the server
Exception – For any unexpected errors during server operation