register_port
Claim a local port for a dev server or app, auto-assigning one from the configured range when no port is given. Optionally expose it publicly via an ngrok tunnel.
Instructions
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_name": "<app_name>"
},
"name": "register_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Optional hostname or exposure details. Pass null to leave the registration explicitly unannotated. | |
| tunnel | No | Set true to also expose the port publicly via an ngrok tunnel (requires ngrok auth token). Default false: registry entry only, no tunnel. Only enable when the user explicitly asks for a public/ngrok URL. | |
| app_name | Yes | Name of the application (e.g., "frontend", "api") | |
| desired_port | No | Optional specific port number. If not provided, will auto-assign from range. |