Port registry with ngrok integration and MCP server for AI agents
Yardmaster has well-structured tool definitions with clear, action-verb naming (register_, annotate_, release_, query_, get_). All 5 tools have descriptions (avg 180 chars, within 10-1024 baseline). Input schemas are present with typed properties. However, output schemas are completely undocumented, LLMs cannot predict what fields to expect from responses. Parameter descriptions are adequate but lack format constraints (e.g., port ranges, app_name length limits). Error handling is minimal; no recovery guidance or actionable error messages visible in the code. The 'notes' parameter accepts null but lacks validation rules in the description. Overall solid naming and input structure, but missing output documentation and error patterns that would elevate this to 75+.
Yardmaster port registry: update hostname or exposure notes on an existing active registration without releasing its port. Pass null to clear the notes.
Yardmaster port registry: get the next available/free port in the configured range. Use when asked to find an open port for a new dev server. Useful for checking port availability before registration.
Yardmaster port registry: list all registered ports with their applications, ngrok URLs, and notes. Notes carry hostname/exposure detail, so read them when determining how an app is reachable. Use when asked what ports are in use, what is running where, or to look up the port registry. Optionally filter by app name or port number.
Yardmaster port registry: register a port for an application. Use when asked to register, claim, or reserve a port for a dev server or app. If port is not specified, one will be auto-assigned from the configured range. Does NOT create a public tunnel unless tunnel=true is passed.
Yardmaster port registry: release a registered port and stop its ngrok tunnel if one exists. Use when asked to release, free, or unregister a port. Frees the port for other applications.
Output schemas completely undocumented. LLMs cannot predict response structure (fields, types, pagination). register_port returns what? A port number? An object with {port, tunnel_url, app_name}? Unknown.
No error handling guidance. Code validates notes length (MAX_NOTES_LENGTH=2000) but description lacks this constraint. No recovery hints for common failures (port already in use, ngrok auth missing, app not found).
Parameter constraints missing from descriptions. 'app_name' has no length/format rules. 'desired_port' has no range (1-65535?). 'range_start'/'range_end' in get_available_port lack bounds. LLMs will guess.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 62 | 2026-07-28+ | v2 |
query_ports 'filter' parameter is vague. Does it match substring? Regex? Case-sensitive? Description says 'filter by app name or port number' but no format specified. LLM will guess wrong.
No pagination support documented. query_ports returns 'all registered ports', if 1000 apps are registered, response could be massive. No limit, offset, or cursor parameters visible.