local-server-hub
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOCAL_SERVER_HUB_DIR | No | Directory where port reservations are stored. Leases are stored in `~/.local-server-hub/reservations.json`; override the directory with `LOCAL_SERVER_HUB_DIR`. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_serversA | List TCP listeners owned by the current user, with process, project directory, stack, URL, and HTTP status. |
| get_port_infoB | Return listeners, reservation, HTTP probe, and platform warnings for one port. |
| find_free_portA | Return a port that is not listening, not reserved, and can be bound on IPv4 and IPv6. |
| reserve_portB | Lease a port for a project or worktree so parallel agents do not collide. Default lease is 8 hours. |
| release_portA | Release a port reservation. This does not stop a process. |
| list_reservationsA | List port reservations that have not expired. |
| suggest_portA | Return the framework default port when it is free, otherwise the next free port. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Most tools map to a distinct resource+action: list listeners, inspect one port, reserve, release, list reservations. The only real overlap is find_free_port vs suggest_port, which both return a usable free port; the descriptions differentiate them (strictly free vs framework-default-first), but an agent could still hesitate between the two.
All seven tools follow a consistent snake_case verb_noun pattern (list_servers, get_port_info, find_free_port, reserve_port, release_port, list_reservations, suggest_port). The list_/get_/find_/reserve_/release_/suggest_ prefixes are used predictably across the set.
Seven tools is well within the ideal 3-15 range and each one covers a distinct step in the port discovery/reservation workflow. No tool appears redundant or filler.
The surface covers discovery (list_servers, get_port_info), allocation (find_free_port, suggest_port), and the full reservation lifecycle (reserve_port, release_port, list_reservations). Minor gaps: no way to renew or extend an expiring lease, and no tool to stop/inspect the process holding a port beyond the read-only listing.