Skip to main content
Glama
danohn

mcpacket

by danohn
config.py791 B
"""Configuration management for mcpcap.""" class Config: """Configuration management for mcpcap server.""" def __init__( self, modules: list[str] | None = None, max_packets: int | None = None, ): """Initialize configuration. Args: modules: List of modules to load max_packets: Maximum number of packets to analyze per file """ self.modules = modules or ["dns", "dhcp", "icmp"] self.max_packets = max_packets self._validate_configuration() def _validate_configuration(self) -> None: """Validate the configuration parameters.""" if self.max_packets is not None and self.max_packets <= 0: raise ValueError("max_packets must be a positive integer")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/danohn/mcpacket'

If you have feedback or need assistance with the MCP directory API, please join our Discord server