A NAT router implementation for ESP32 microcontrollers with DHCP server, HTTP web interface, WiFi management, port forwarding, firewall ACLs, and VPN support.
This is a C firmware library exposed as MCP tools, not a typical MCP server. Tool definitions are inferred from C function signatures rather than explicit MCP tool registration. Most tools lack proper descriptions (under 20 chars or generic), parameter schemas are minimal or missing type information, and there is no documented output schema. The server exposes low-level DHCP, HTTP server, and configuration management functions that are not designed for agentic use. Tools combine multiple responsibilities (e.g., dhcps_new + dhcps_delete in lifecycle management), and descriptions are either missing or cryptic C API documentation strings. No error handling guidance, no composition support (output from one tool cannot be reliably chained to another), and critical parameters like pointers and struct types are exposed directly to agents.
Drive the configured antenna pins from the current antenna_* values (no NVS write). Does nothing when antenna_gpio is negative.
Persist and apply an antenna switch configuration. A negative gpio disables the switch and releases the previously used pins; en_gpio may be negative.
Tries to find IP address corresponding to the supplied MAC
Deletes supplied DHCP server object
Gets the DNS server associated with this DHCP server
Gets the DNS server associated with this DHCP server with a specific type
Sets the DNS server address for the DHCP server
Sets the DNS server address for the DHCP server with a specific type
STDIO transport only, not remotely accessible. Servers using STDIO cannot integrate with hosted MCP clients, cloud orchestration platforms, or any client that does not have local file I/O access.
Tool definitions are inferred from C function signatures, not explicitly registered with MCP schemas. This violates the tool registration pattern and means input/output schemas are not formally declared, making them inaccessible to the MCP client and LLM.
Most descriptions are too short (under 20 characters) or missing context. Examples: 'Creates new DHCP server object' (31 chars, minimal), 'Gets the DHCP server option info' (32 chars, tautological).
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 38 | <=2025-11-25 | v2 |
Creates new DHCP server object
Gets the DHCP server option info
Sets callback on assigning an IP to the connected client
Sets the DHCP server option info
Starts the DHCP server on the specified network interface
Stops the DHCP server on the specified netif
Format boot time into human-readable string
Format uptime seconds into human-readable string
Get blob configuration parameter from NVS
Get integer configuration parameter from NVS
Get string configuration parameter from NVS
Get total bytes received on STA interface
Get total bytes sent on STA interface
Get system uptime in seconds
Initialize AP network interface hooks
Initialize byte counting for STA interface
Register router console commands
Reset STA byte counters to zero
Resynchronize connection count
Set blob configuration parameter in NVS
Set integer configuration parameter in NVS
Set string configuration parameter in NVS
Starts the HTTP web server on the specified port
Starts captive DNS server for web UI
Get current web UI interface access bitmask (RC_BIND_AP, RC_BIND_STA, RC_BIND_VPN)
Set web UI interface access bitmask. Saves to NVS and takes effect immediately.
Pointer parameters (e.g., 'dhcps', 'netif', 'opt_info') are exposed directly to the agent. LLMs cannot generate valid pointers; these parameters require server-side memory management and opaque handles. Exposing raw pointers forces agents to guess at memory addresses, causing crashes or undefined behavior.
No input validation or error handling guidance. Tools like 'dhcps_start' accept arbitrary pointers with no bounds checking described. No error classification (retryable vs fatal), no recovery hints, no actionable error messages.
No documented output schemas. Agents cannot predict what these tools return or what fields to expect. Example: 'dhcps_option_info' returns 'void*' (a pointer), agents cannot use this data. 'get_config_param_str' returns via an output parameter ('char**'), not a structured response.
Tool composition is broken. For example, 'dhcps_new' creates a handle, but agents have no way to store or reference this handle across calls (it is a pointer returned to an opaque memory address). The chain dhcps_new → dhcps_start → dhcps_stop → dhcps_delete requires the agent to track and pass the opaque pointer through multiple calls, which is not feasible in an LLM-driven workflow.
Destructive operations exposed without confirmation. Tools like 'dhcps_delete', 'reset_sta_byte_counts', 'set_config_param_*' modify or erase system state with no dry-run or confirmation step. An agent error could silently reset critical configuration.
Type mismatches and ambiguous parameter types. Parameters use low-level C types (u8_t, u32_t, ip4_addr_t, pointer) that are not self-describing. Descriptions do not clarify ranges, allowed values, or expected formats. Example: 'op_id' (u8_t), is this 0-255? What values are valid?
Parameter descriptions are missing or trivial. Many parameters have no description at all (e.g., 'blob' in 'get_config_param_blob', is this binary data? A serialized object? Size limit?).
No security scoping. Tools like 'set_config_param_*' and 'antenna_switch_set' modify critical hardware/system configuration with no permission checks or scope declarations. No audit trail, no rate limiting, no least-privilege enforcement.
No structured output. Tools return void, void*, or output parameters (C style). LLMs cannot parse void* results or extract data from output parameters. Responses must be structured JSON with typed fields.