UNPKG

firewalla-mcp-server

Version:

Model Context Protocol (MCP) server for Firewalla MSP API - Provides real-time network monitoring, security analysis, and firewall management through 28 specialized tools compatible with any MCP client

20 lines 853 B
/** * Simple Boolean Translator for Firewalla MCP Server * * Replaces the over-engineered BooleanFieldTranslator with a minimal solution * that solves only the documented problem: Firewalla API requires "blocked:1" not "blocked:true" * * Philosophy: OSS elegance over complexity, solve real problems minimally */ /** * Translate boolean queries to Firewalla API format * * Problem: Firewalla API fails with "blocked:true" but works with "blocked:1" * Solution: Simple regex replacement for documented boolean fields * * @param query - Query string (e.g., "blocked:true AND protocol:tcp") * @param entityType - Entity type (flows, alarms, rules, devices) * @returns Translated query string */ export declare function translateBooleanQuery(query: string, entityType: string): string; //# sourceMappingURL=simple-boolean-translator.d.ts.map