Use persistent shares
By default, share tokens are ephemeral — they disappear when the process exits. For production use, create persistent shares that survive restarts and keep a stable token.
-
Create a persistent share by running this once to reserve a named token:
zrok2 create share my-gatewayShare names must be 3–32 characters, lowercase alphanumeric and hyphens (
[a-z0-9-]). If you omit the name, zrok generates a random token. -
Reference the token in your config:
mcp-gateway — set
share_tokenat the top level:share_token: "my-gateway"aggregator:name: "my-dev-tools"version: "1.0.0"mcp-bridge — pass
--share-token:mcp-bridge --share-token my-bridge mcp-filesystem ~/Documents -
When you no longer need the share, delete it:
zrok2 delete share my-gateway