connector.json
The connector starts only when connector.json exists in the plugin’s folder: plugins/Minekube/ on Paper, and the Minekube plugin’s folder on Velocity. It needs Java 22 or newer. Paths in the file are relative to the plugin’s folder.
{ "directory": { "api": "https://api.staging.minekube.com" }, "relays": ["https://relay.staging.minekube.net/"], "join": { "network": "my-network", "token": "network-invite" }, "labels": { "stage": "lobby" }}Fields
Section titled “Fields”| Field | Type | Required | What |
|---|---|---|---|
directory |
{ "api": url } or { "file": path } |
Yes | Where the connector looks up networks and instances. api keeps a signed control channel to the Minekube API at that URL. file reads a recorded directory from a JSON file, for tests and offline development. |
relays |
array of URLs | Yes | The relays to pick the home relay from. The connector measures them and takes the nearest. |
labels |
object of strings | No | The server’s own labels, such as stage=lobby. Labels under minekube.com/ are dropped, except minekube.com/entry. See Labels and selectors. |
join |
{ "network": name, "token": path } |
No | Joins network with the token in the file at path: a one-time invite (mk network invite), or a token from the server’s environment that a trust rule covers (mk trust add). The connector reads the file again on every attempt, because such tokens rotate. |
network |
string | No | The network this instance belongs to, with a file directory. With api, the Minekube API knows it. |
key |
path | No | The instance’s key file, made on first start. Default instance.key. |
servers |
object of selectors | No | On a proxy: the names it knows its backends by, each with the label selector that picks the backend. Each name gets a loopback port. |
bundles |
path | No | Where the connector writes the bundles the network’s deployments give this instance (mk deploy). The plugin sets it unless the file does. |
The platform and its version are not fields you set. The plugin reports them, and the registry turns them into the system labels minekube.com/platform and minekube.com/version.
Related
Section titled “Related”- Let servers in: invites, trust rules and your dev server.
- How servers get their bundles: what the connector does with
bundles.
Was this helpful?
Thanks for the feedback.