Skip to content

Quickstart

Give a server its token ​

In this quickstart you give an MCP server the token it needs, without the assistant ever seeing it. You need a running daemon with NOCTURN_MASTER_PASSPHRASE set, a phone on the home network, and an MCP server installed (MCP servers). The same steps work for a plugin's key.

1. Open the server ​

In the app, open Extensions and tap the server, here portainer. Under Left to do it says portainer needs a token to connect, and under Server the Token line reads missing.

2. Paste the token ​

Tap Set token. The sheet Token for portainer names the one host the token will go to.

The sheet Token for portainer: Paste the token, kept in nocturn's vault and sent only to portainer.home.example, Or use one you keep, and Save token.The sheet Token for portainer: Paste the token, kept in nocturn's vault and sent only to portainer.home.example, Or use one you keep, and Save token.

Paste the value into Paste the token and tap Save token. A plugin names its own credential, so the key may read Set key instead.

Already in your Vaultwarden?

Pick the item under Or use one you keep instead of pasting. nocturn keeps a reference, not a copy. It lists only items that may go to this server's host.

3. Check the line ​

The Token line now reads set and nocturn's vault. The value is never shown again, here or to the model. The server reconnects and lists its tools.

4. Use it ​

Ask for something the server does. The call carries the token to portainer.home.example, and the model sees only the answer.

From the terminal instead ​

On the daemon's machine, in the folder it runs from:

sh
printf %s "$TOKEN" | nocturn secret set portainer          # an MCP server
printf %s "$TOKEN" | nocturn secret set weather/apikey     # a plugin's credential
nocturn reload

The value is read from stdin, so it stays out of your shell history and the process list.

Not on the home network?

A value travels to the daemon only from its own machine, the home network or over TLS. Elsewhere the field is disabled, and the sheet shows the command to run on the machine instead.

Next steps ​

nocturn is open source. Example hosts and people on these pages are made up.