MCP server (openlamt-mcp)
openlamt-mcp lets an AI agent use your OpenLAMT favorites: find devices in the network and manage favorites, read status, hardware, logs, settings and accounts, control power, boot from an ISO, look at the screen, type, use the serial console, and change AMT settings and accounts. It runs on your computer and opens no network port. It also works without the app, for example on a Linux server without a desktop.
What it is
MCP (Model Context Protocol) is a standard way for AI apps to call tools. Claude Desktop, Claude Code and other MCP clients start openlamt-mcp and talk to it over standard input and output. The agent then sees tools such as list_devices or power_action.
Install
openlamt-mcp is a separate program next to the app. Download the archive for your system from the Releases page (opens in a new tab) and unpack it anywhere. It holds a single program without dependencies, with its license files.
| System | Archive |
|---|---|
| macOS (Apple Silicon) | openlamt-mcp-<version>-macos-arm64.tar.gz |
| Windows (x64) | openlamt-mcp-<version>-windows-x64.zip |
| Linux (x64) | openlamt-mcp-<version>-linux-x64.tar.gz |
The program is not code-signed. On macOS, remove the quarantine attribute once:
xattr -d com.apple.quarantine openlamt-mcp
On Windows, SmartScreen may warn on the first start. To build it yourself instead: go build -o openlamt-mcp ./cmd/openlamt-mcp (no C compiler needed). openlamt-mcp --version prints the version.
Then add it to your MCP client:
{"mcpServers": {"openlamt": {"command": "/path/to/openlamt-mcp"}}}
The app’s update check never offers these archives. Update openlamt-mcp by downloading the new archive.
Devices, passwords and TLS
- The agent sees your OpenLAMT favorites by their names. With the group
favoritesit can also scan the network and add, change and delete favorites (see Scan and favorites). It never sees or sets a device password. The app andopenlamt-mcpcan run at the same time and share the favorites safely. openlamt-mcpfinds device passwords itself: in the system keychain (where the app saves them), else through your password command. Passwords never pass through the MCP connection and never appear in answers, questions or logs.- A TLS device works only after a person trusted its certificate: in the app, with
openlamt-mcp trustin a terminal, or in the question ofadd_favorite(withcertificates.pin_fileonly the last two count, see Linux without a keychain). The MCP server never trusts a certificate by itself. list_devicesshows for each favorite whether a password is found (password_found,password_source) and whether its certificate is trusted (certificate_pinned), so the agent can tell you what is missing. It contacts no device.- Devices without TLS work, with a warning in each answer.
- A KVM or serial console session keeps the TLS setting it was opened with. If TLS is switched on or off in the app while the session runs,
kvm_connectandsol_connectsay so; the agent reconnects withkvm_disconnectandkvm_connect(orsol_disconnectandsol_connect). - If a device asks for user consent, the agent has to ask a person at the device for the six-digit code on its screen and pass it as
consent_code(boot_to_bios,kvm_connect,sol_connect,media_mount).
Tools
The tools come in groups. You switch groups on and off in the config file; a tool of a group that is off does not exist for the agent.
| Group | Tools |
|---|---|
| always | list_devices (contacts no device) |
read | device_status, hardware_info, event_log, audit_log, kvm_screenshot, kvm_record_start, kvm_record_stop, sol_read |
read or kvm_input | kvm_connect, kvm_disconnect, sol_connect, sol_disconnect |
read and settings | get_settings |
read and users | list_users |
power_boot | power_action (on, off, reset, cycle, shutdown), boot_to_bios |
media | media_mount, media_unmount, media_status, media_boot_next; with power_boot also boot_from_iso |
kvm_input | kvm_send_keys, kvm_mouse, kvm_type_text, sol_type_text, sol_send_keys |
settings | set_general (host name, domain, ping, Dynamic DNS), set_remote_features (KVM, IDE-R, SOL, user consent), sync_clock, set_tls_certificate |
settings and destructive | set_network, set_environment_detection, disable_amt_network |
users | add_user, update_user, set_user_enabled, delete_user |
users and destructive | set_admin_account |
favorites | scan_network (also with read_only), add_favorite, update_favorite, delete_favorite |
destructive also covers every power action except power on, boot_to_bios on a device that is not off, and boot_from_iso on a device that is not off. Without it these calls are refused. Boot options, One Click Recovery, erasing drives, certificates, Wi-Fi, System Defense, the power policy, wake alarms, event forwarding and the audit log settings are only in the app.
Scan and favorites
scan_networkruns the scan of the app: a network such as192.0.2.0/24, a range such as192.0.2.10-192.0.2.80or one address, up to 4,096 addresses. It sends no password and changes nothing. It returns address, DNS name, AMT version, whether TLS is offered and whether the device is a favorite already. It is not tied to a favorite, soallowed_devicesdoes not limit it; switch the groupfavoritesoff if the agent must not scan.add_favoritesaves a favorite with name, host, user name and TLS, as the app does, never with a password. Names must be unique. It asks only withrequire_client_confirmation. With TLS and an MCP client that can ask, the question shows the certificate fingerprint (SHA-256) of the device, and the certificate is trusted only if you tick it. Otherwise the favorite stays untrusted until a person runsopenlamt-mcp trust.update_favoritechanges name, host, user name or TLS,delete_favoritedeletes a favorite with its password in the keychain and its certificate. Both are orange: they always ask you, and a client that cannot ask gets a refusal. A new host or user name deletes the saved password and the trusted certificate, as in the app; no password follows the favorite to the new host, a person provides it again.- With
allowed_devices, the agent can add and rename favorites only to names in that list.
Power
power_action follows the rules of the Power menu: a running device refuses on, a device that is off takes only on, and shutdown needs the device to offer it (device_status says so). Power off, power cycle and shutdown close an open KVM session first, because AMT refuses them while KVM is open.
Remote screen
kvm_connectopens the KVM session of a device and keeps it for the following calls.kvm_screenshotreturns the screen as an image sized for AI models: by default at most 1280 pixels on the longest side, as JPEG. Withsaveit also saves a PNG file, see Record and document.kvm_record_startandkvm_record_stoprecord the screen as a video, see Record and document.kvm_send_keyspresses keys and combinations such asCtrl+Alt+Delete.kvm_mousemoves, clicks and scrolls at a point of the last screenshot.kvm_type_texttypes text in the keyboard layout of the favorite.- AMT allows one KVM session per device. While the agent holds it, the app cannot connect KVM to that device, and the other way round. The session closes with
kvm_disconnect, after five minutes without a call, or when the MCP client stops the server. - If KVM is off on the device,
kvm_connectturns it on. That is a settings change: it needs the groupsettingsand, withrequire_client_confirmation, your answer to a question. It turns on only what the question names: if the redirection port is turned off while the question is open, the call is refused, and the next call asks about both. Withoutsettings, the call says what to turn on. The wake key thatkvm_connectpresses on a new session needskvm_input.
Record and document
An agent can document its work on a device, so you can check later what it did. When you ask, it records the screen as a video or saves screenshots as files. They go to the folder OpenLAMT in your home folder, or to the folder you set as capture.folder in the config file.
Record every session. For full accountability, the server can record every KVM session itself, whether the agent wants it or not, and write every serial console session to a text file. Turn it on with "capture": {"record_always": true} in the config file. It is off by default. The list below is about the video; the text file follows in Serial console transcript.
- The agent cannot stop this recording, start a second one or choose where it goes.
- No recording, no KVM session. If the recording cannot start, for example because the folder is not writable,
kvm_connectfails and says why. - No recording, no input. The agent cannot type, click or look at the screen before the recording runs. While
kvm_connectis still opening the session, for example after a power action, such a call is refused and nothing is sent. - If the recording fails later, for example because the disk is full, the server closes the session. A call that types or clicks right then sends nothing more, from its next key or click on. Keys or buttons the agent still holds are not released then: that would be input without a video. The agent has to call
kvm_connectagain. - The video goes to the usual folder under the usual file name.
kvm_connecttells the agent that the session is recorded and names the file. - The recording ends with the session: with
kvm_disconnect, after the idle timeout, when the agent changes the host, user name or TLS of the favorite or deletes it, or when the server stops. A new name for the favorite keeps it running.kvm_disconnectlists the files. - At 2 GB the recording goes on in a new file. Starting it takes a moment, and input waits meanwhile, for at most 5 seconds. If the new file cannot start, the server closes the session as above. If the video missed a picture during the switch, the result says so.
- This recording does not keep the session open. The idle timeout closes a session nobody uses, and its video ends with it.
Serial console transcript. With capture.record_always, every serial console session also gets a transcript: a text file of everything that happened on the console. As with the video, the agent cannot stop it. A short session looks like this:
2026-11-29T10:15:02.120Z < login:
2026-11-29T10:15:03.480Z > text: root
2026-11-29T10:15:03.495Z < root
2026-11-29T10:15:03.910Z > keys: Enter
2026-11-29T10:15:04.200Z < Password:
2026-11-29T10:15:05.000Z > secret: *** (7 characters)
2026-11-29T10:15:05.400Z > keys: Enter
2026-11-29T10:15:05.800Z < Welcome
2026-11-29T10:15:09.000Z # session ended: sol_disconnect
- Each session gets its own text file in the same folder as the videos, named like them:
openlamt-<device>-<date>-<time>.log. OpenLAMT never overwrites a file.sol_connecttells the agent the file name. - The file holds every line the device printed, also lines the agent never read, and everything the agent typed or pressed. Each line starts with the time in UTC and a sign:
<is output of the device,>is input of the agent,#is a note of the server, for example why the session ended. Typed text followstext:, with each Enter as ⏎. Pressed keys followkeys:. In the example, the device repeats the typed namerooton its own line. - The file holds only readable text. Colours, cursor moves and other control codes are left out. A BIOS menu therefore appears as pieces of text in the order the device sent them, and characters that cannot be read as text show as �. A prompt the device does not end with a new line, such as
login:, is written after two seconds, or earlier when the agent types. What the device prints on that line afterwards follows as a further<line, and so does the rest of a very long line. - Invisible characters that could hide or change the look of text show as their code, for example
\u200b, and a backslash shows as\\. Every line has its own time and sign, so output of the device can never pass for input of the agent. - Text the agent marks as secret is written as
***with its length, never the text itself: passwords do not go into files. The agent decides what it marks as secret, so a hidden text is not proof of a password. Its length and the device’s answer are in the file. - If the device shows a typed password on the console (echo), it is part of the output, and OpenLAMT cannot hide it there.
- No transcript, no session and no input. If the file cannot be created, for example because the folder is not writable,
sol_connectfails and opens nothing. The file exists before the session opens, so no input goes out without it. - If writing fails later, for example because the disk is full, the server closes the session. A call that types right then stops: text goes out in steps of 1000 bytes, and no further step is sent. The agent no longer gets output either. It has to call
sol_connectagain, which starts a new file. - The transcript ends with the session: with
sol_disconnect, after the idle timeout, when the agent changes the host, user name or TLS of the favorite or deletes it, when the server stops, or when the device closes the console. A new name for the favorite keeps it running. The last line says why the session ended. - The file is completed when the session ends. If the server is killed or the computer loses power, the last line and the end note can be missing. After a write error, the file ends at that error.
- There is no size limit. A console that prints a lot keeps writing. If the idle timeout of
solis0, the session stays open until the server stops and can fill the disk. Even with a timeout, an agent that keeps calling keeps the session open. - Only the screen (KVM) and the serial console are recorded. For the other tools, such as power actions, media or settings, the action log shows what the agent did.
What to expect.
- The video goes on when the agent restarts the device or switches it off and on. AMT refuses power actions while KVM is open. So the recording waits until the power action has finished and then opens KVM again by itself.
- While the screen is gone, the video shows the last picture.
- When a session ends, OpenLAMT first releases held keys and mouse buttons, then ends the video. So the video also shows the end of a drag.
- When the agent opens KVM again, for example right after a restart, its call waits until the video shows the screen again. Only then does it type or click. So the video shows what the agent does.
- If no picture comes within 5 seconds, a recording of every session refuses the call, and nothing is sent. A recording the agent started lets the call go on, and its result says so.
- If the device is unreachable for a while, for example during a restart, the recording keeps trying by itself.
- The result lists each time the screen was gone, with the times in UTC and the reason. For example: “KVM was closed from 2026-11-28 14:02:10 UTC to 14:03:40 UTC (power action); the video shows the last picture meanwhile.” So you see later which parts of the video show a still picture. The list keeps the first 20 such times and counts the rest.
- A recording never turns KVM on and never asks for user consent by itself. So the device never shows a code that nobody asked for.
- If the device asks for consent again, or KVM is off, the recording waits for the agent. It goes on once the agent calls
kvm_connectwith the code from the device screen. - It also waits when the password or the trusted certificate is missing, or when the device rejects the login.
- If you change the favorite in the app during a recording, the open KVM session keeps its settings. The recording looks at the favorite only when the session has closed and it would open KVM again. It never opens KVM with the old settings.
- If TLS was switched on or off, the recording waits for the agent. The next KVM call of the agent opens KVM with the new setting, and the recording goes on.
- If the host or user name changed, or you deleted the favorite, the recording ends and the KVM session closes. The video file is finished properly. The KVM tools then tell the agent that no KVM session is open, or that the favorite no longer exists.
kvm_record_stopfinds no recording. The agent callskvm_connectto open the device as it is saved now. A recording of every session then starts a new video. - OpenLAMT never overwrites a file. If a name is taken, it adds
-2,-3and so on. - However a recording ends, the file is always finished properly.
- Videos are AVI files, as the app makes them. VLC and the players of Windows and macOS play them.
Details for the agent.
- Recording and saving need an open KVM session (
kvm_connect) and the groupread, likekvm_screenshot. kvm_record_startstarts a video. One recording per device at a time.fpssets the pictures per second, 1 to 30 (default 10).qualitysets the picture quality, 1 to 100 (default 75). Higher values make larger files.- A recording of
capture.record_alwaysalways uses the defaults. kvm_record_stopends it. It returns the path, the duration, the size and the number of frames.kvm_record_stoplists the times without a screen inwarnings.kvm_screenshotwithsavealso writes a PNG file and returnssaved_path.- The PNG file has the full screen size, not the smaller image the agent sees.
foldersets the folder. It is an absolute path to a folder that exists already.- Without
folder, the files go tocapture.folder, else to the folderOpenLAMTin your home folder. OpenLAMT creates either folder if it is missing. namesets the file name, without a folder. The tool sets the extension,.avior.png.- Without
name, the file is named like the files of the app:openlamt-<device>-<date>-<time>. - A name longer than 100 bytes is shortened.
- A Windows device name such as
NUL,CONorCOM1gets the prefixopenlamt-on every system, so the files work everywhere. - A recording ends with
kvm_record_stoporkvm_disconnect. - It also ends when the agent changes the host, user name or TLS of the device with
update_favorite, or deletes it withdelete_favorite. - It also ends when the server stops, or at 2 GB.
kvm_disconnect,update_favoriteanddelete_favoritelist the finished video in their result.- If a recording ended by itself (2 GB, a write error),
kvm_record_stopstill returns its result and says why. This works also after the KVM session has closed. - While a recording records, the idle timeout does not close the KVM session. This holds also while the recording opens KVM again by itself, after a power action or a network error.
- While a recording waits for the agent, the idle timeout closes the session as usual. It counts from the start of that wait or the agent’s last call.
- Under
capture.record_always,sol_connectnames the text file of the session intranscriptand says inwarningsthat the session is written to it. sol_type_textwithsecretwrites the text as***and its length into the transcript.- If the transcript failed,
sol_readstill returns the output written until then. Every call that types or presses keys is refused with the reason and the path of the file, untilsol_connectopens a new session with a new file.
Serial console
sol_connectopens the serial console (Serial over LAN) of a device. Its output goes into a buffer of 1 MiB per device.sol_readreturns the output as plain text and goes on where the last read ended.sol_type_textwrites printable ASCII text, with line breaks as Enter.sol_send_keyspresses keys such asCtrl+C,UporF10as xterm sequences. A BIOS setup over the serial console often expects other codes for function keys; KVM works there too.- One serial console session per device: while the agent holds it, the app’s Console view cannot connect, and the other way round. It closes with
sol_disconnect, after five minutes without a call, or when the server stops. - If SOL is off,
sol_connectturns it on under the same rules askvm_connect. - With
capture.record_always, the server writes every session to a text file, see Serial console transcript.
Media
media_mountmounts an.isofile or a folder on a device as a read-only CD drive. The agent gives its absolute path on the computer that runsopenlamt-mcp. A folder becomes a temporary ISO first, as in the app. A big folder takes a while, and the build runs within the tool call, so a client with a short tool timeout may abort it.media_boot_nextmakes the device boot from the image at its next start.boot_from_isorestarts it from the image now; a device that is off is only powered on.media_statusshows what is mounted and how fast the device reads it.- The image stays mounted until
media_unmount, until the device ends the session, or until the client stops the server. The boot option set withmedia_boot_nextis cleared then. If a boot from the image fails halfway,media_unmountclears the boot option as well. - One media session per device: while the agent holds it, the app’s Media menu cannot mount on that device, and the other way round.
- If media redirection (IDE-R) or the redirection port is off,
media_mountturns them on, and they stay on. That needs the groupsettings. Withrequire_client_confirmation, the mount question says that the redirection port and IDE-R will be turned on.
openlamt-mcp therefore refuses some folders, but the list cannot cover every place with secrets. Set media.allowed_paths to the folders with your images.What media_mount does to protect your files:
- It resolves links first and mounts only the resolved path. It checks right before it opens the file that it is still the one it checked, and builds a folder image so that nothing outside the folder can end up in it. Links inside the folder are left out.
- It never mounts your home folder itself, a folder above it, or the folders that hold credentials and settings:
~/.ssh,~/.gnupg,~/.aws,~/.azure,~/.config,~/.local/share,~/.local/state,~/.kube,~/.docker,~/.password-store,~/.mozilla,~/.thunderbird,~/.pki,~/.claude,~/.cargo,~/.m2,~/.gradle,~/.terraform.d,~/.var/app,~/snap, all of~/Libraryon macOS,%APPDATA%and%LOCALAPPDATA%on Windows, and the OpenLAMT configuration folder with the favorites,openlamt-mcp.jsonand the action log. - It recognizes these folders by the file system, not by their spelling: a link, a bind mount, a macOS firmlink or a Windows junction to one of them is refused too, and a folder image stops when one of them turns up inside.
- On Windows,
\\?\and\\.\paths and administrative shares such as\\host\C$are refused.
AMT settings and accounts
get_settings and list_users show what the app’s Settings and Users pages show. A section the account may not read is listed in not_permitted, one the firmware lacks in not_available. The other tools change what those pages change, with the same confirmation levels:
| Level in the app | Changes | What openlamt-mcp does |
|---|---|---|
| none | Ping, switching a feature on (also by kvm_connect, sol_connect or media_mount), raising user consent, the clock, adding, editing or disabling another account | Asks you in the MCP client only with require_client_confirmation. |
| orange | Host name, domain, Dynamic DNS, switching KVM, IDE-R or SOL off, the TLS certificate, the account the favorite signs in with, deleting an account, lowering the user consent policy | Always asks you in the MCP client. A client that cannot ask gets a refusal; make the change in the app then. |
| red | Network settings, environment detection, turning AMT off on the network, the admin account | Needs the group destructive as well, the agent must repeat the device name in confirm, and you are always asked. |
- The question shows what changes and the app’s warning. Your answer counts once, and only for exactly these arguments and this favorite (its name, host and user). If one of them changes, the call is refused.
- Lowering the user consent policy counts as orange because KVM, SOL, IDE-R and boot changes then run without a person at the device confirming them. If the current policy cannot be read, the change counts as lowering.
- When the account the favorite signs in with or its certificate changes, the saved pin (keychain or pin file), the saved password and the favorite follow, as in the app.
Passwords of AMT accounts
Passwords of new or changed accounts are tool arguments: the agent chooses them, so they are part of your conversation with it and of the MCP client’s records. openlamt-mcp never writes them to the action log, a log line, an answer or a question.
Without TLS, the device receives the password as a digest that works like the password itself. Like the app, openlamt-mcp then always asks you before it sends one (add_user, update_user, set_admin_account), whatever require_client_confirmation says. The same holds for kvm_type_text and sol_type_text with secret on a device without TLS. For all KVM and serial console input (keys, mouse and text), openlamt-mcp also checks the session: if it is opened again with another TLS setting while the call waits, nothing is sent, and the agent calls the tool again. In the same way, kvm_mouse sends nothing if a screenshot of another size was taken while the call waited, because x and y would then point somewhere else. A client that cannot ask gets a refusal that names the reason; use TLS, the app, or a client that can ask.
Without the app
openlamt-mcp does not need the app. On a computer without it, for example a Linux server where Claude Code runs in a terminal, the agent finds devices with scan_network and saves them with add_favorite. A Linux server usually has no system keychain: read Linux without a keychain first. Two steps stay with a person, because the agent must never see a password and must never trust a certificate on its own. The agent tells you which one to run:
openlamt-mcp password "Lab Server"
openlamt-mcp trust "Lab Server"
passwordasks for the password twice without showing it and saves it in the system keychain. Ifpasswords.commandis set, it saves nothing and tells you to store the password in your password manager.trustconnects to the device, shows the SHA-256 fingerprint of its certificate and trusts it aftery, the same trust on first use as in the app. If another certificate is trusted already, it warns and replaces it only aftery.- Both need a terminal: the answer cannot come from a pipe or a file. Both take
--config <path>like the server.
Linux without a keychain
On Linux, the system keychain is the Secret Service, which usually runs only in a desktop session. On a server or a VM without a desktop, openlamt-mcp can read and save nothing there. Two settings in the config file replace it:
{
"certificates": {"pin_file": true},
"passwords": {"command": ["/usr/bin/pass", "show", "openlamt/{host}"]}
}
certificates.pin_filekeeps the trusted certificates inopenlamt-pins.jsonnext tofavorites.jsoninstead of the keychain.openlamt-mcp trust, the question ofadd_favorite,set_tls_certificateand changes to favorites then read and write this file.- The file must be readable and writable by you only (mode 0600), or
openlamt-mcpdoes not start. It holds no secret: a fingerprint is a hash of the public certificate. What matters is that nobody else can change it. The agent cannot write a fingerprint into it: every change follows a question you answered or a command you ran. - Nothing switches by itself. Without the setting, only the keychain counts. With it, only the file counts, even where a keychain works.
- The app always uses the keychain and never reads the file. With this setting, a certificate you trusted in the app is not trusted for
openlamt-mcp, and the other way round: runopenlamt-mcp trustonce per device, and again after you changed the host, user or certificate of a device in the app. - Passwords are not affected: they come from
passwords.command, see Where passwords come from. - macOS and Windows always have a system keychain, and it protects the fingerprints better. Leave the setting off there.
Where passwords come from
For each device, openlamt-mcp takes the first password it finds:
- The system keychain: macOS Keychain, Windows Credential Manager, Secret Service on Linux with a desktop. The app and
openlamt-mcp passwordsave passwords there. passwords.command: a program that prints the password on standard output. For password managers such aspass,op,bworkeepassxc-cli, a file encrypted withage, orsystemd-creds. No TPM is needed.- Only with
passwords.allow_plaintext_passwords: an environment variable or the file.envnext to the config file.
The command is a list: the program, then its arguments. It runs without a shell. In each argument, {name}, {host} and {user} become the favorite’s name, host and user name. An argument must contain {host}, or the server does not start: the password is always bound to the host it goes to. {name} and {user} may be added. With pass, one entry per device:
{"passwords": {"command": ["/usr/bin/pass", "show", "openlamt/{host}"]}}
With one file per device, encrypted with age. The key file decrypts them all: keep it readable by you only.
{"passwords": {"command": ["/usr/bin/age", "--decrypt", "-i", "/home/me/.config/openlamt/key.txt",
"/home/me/.config/openlamt/passwords/{host}.age"]}}
- The command gets no input and has 10 seconds. Its output, minus one line break at the end, is the password. It must print one line only: an entry of
passwith more lines does not work. - A command that fails or prints nothing counts as no password. Its error output is never shown or logged, because it may hold secrets. Run the command yourself in a terminal to see it.
- Why
{host}is required: the agent chooses name and host of the favorites it adds. If a password were found by the name alone, a favorite with a known name and another host would receive it. A value with/,\or.., or one that starts with-, never reaches the command. - Give the program with its full path: the MCP client may start
openlamt-mcpwith anotherPATHthan your terminal.
"allow_plaintext_passwords": true, openlamt-mcp also reads the variable OPENLAMT_PASSWORD_<HOST>: the host with letters in capitals and digits as they are, every other character as _ and its hex code (. is _2E, - is _2D), such as OPENLAMT_PASSWORD_192_2E0_2E2_2E10 or OPENLAMT_PASSWORD_LAB_2EEXAMPLE_2ECOM. No two hosts share a name. list_devices shows it as password_variable, and openlamt-mcp password prints it. The same names work as KEY=value lines in .env next to the config file. The file must be readable by you only (mode 0600), or the server does not start. Every start and every answer carries a warning. Use it for a test lab, not for devices that matter.Limit what the agent may do
The config file is openlamt-mcp.json next to favorites.json in your configuration folder, or the file given with --config <path>. These are the defaults:
{
"read_only": false,
"allowed_devices": [],
"tool_groups": {"read": true, "power_boot": true, "media": true, "kvm_input": true,
"settings": true, "users": true, "destructive": true, "favorites": true},
"require_client_confirmation": false,
"action_log": {"enabled": true, "path": ""},
"kvm": {"idle_timeout_seconds": 300, "screenshot_max_width": 1280, "screenshot_max_height": 1280,
"screenshot_format": "jpeg", "screenshot_jpeg_quality": 80},
"capture": {"folder": "", "record_always": false},
"sol": {"idle_timeout_seconds": 300},
"media": {"allowed_paths": []},
"passwords": {"command": [], "allow_plaintext_passwords": false},
"certificates": {"pin_file": false}
}
Each key you leave out keeps its default. An unknown key stops the server, so a typo cannot leave everything open.
read_only- Leaves only the read tools: status, logs, settings and accounts, the screenshot, reading the serial console and
scan_network. It never writes a setting, never turns KVM, SOL or media redirection on, and sends no input to the device. A consent request may still show a code on the device screen; that changes no setting. allowed_devices- Favorite names the agent may use, add or rename to. Empty means all.
tool_groups- Switches the groups of the tool table on and off.
require_client_confirmation- Asks you in the MCP client before each power action, each key, mouse or typing call, each mount and
media_boot_next, each settings or account change and each new favorite. Orange and red changes ask always. The question shows every key, the text to type and the full path to mount after links are resolved. Your answer comes from the MCP client, not from the agent. It counts once, and only for the same tool with exactly these arguments on this device: the next call asks again. It also holds only for the keyboard layout that the question ofkvm_type_textshows, and for the screenshot size that the question ofkvm_mouseshows. An open question expires after 30 minutes: then the call is refused, and the agent calls the tool again. An answer the MCP client sends again, with other arguments, for another tool or for another device is refused. Each line break (an Enter press) shows as ⏎, and invisible or direction-changing characters as their code point. If the agent marks a single line assecret, the question says that the agent chose to hide it. A client that cannot ask gets a refusal. action_log- Writes one line per tool call to
openlamt-mcp-actions.lognext to the config file, or topath. It holds keys and mouse actions, mounted paths and the settings changed, but never text typed over KVM or the serial console, a consent code or a password. The transcript ofcapture.record_alwaysdoes hold what was typed over the serial console, with text marked secret as***. kvm- The idle timeout of a KVM session (
0keeps it open until the server stops) and the default size, format (jpegorpng) and quality of screenshots. The agent may ask for another size or format per call. capture.folder- Where recordings, serial console transcripts and saved screenshots go when the agent names no folder. Give an absolute path. Empty means the folder
OpenLAMTin your home folder. OpenLAMT creates the folder if it is missing. See Record and document. capture.record_always- Records every KVM session as a video and writes every serial console session to a text file (transcript), so you can check later what the agent did. The agent cannot stop either of them. Without a working recording or transcript there is no session and no input. Off by default. See Record every session and Serial console transcript.
sol- The idle timeout of a serial console session.
media.allowed_paths- Limits
media_mountto the folders you list (absolute paths). Empty means anywhere except the protected folders. passwords.command- The program and arguments that print a device password, see Where passwords come from. Empty means none.
passwords.allow_plaintext_passwords- Also reads passwords from environment variables and
.env, with a warning at every start and in every answer. certificates.pin_file- Keeps trusted certificates in
openlamt-pins.jsonnext tofavorites.jsoninstead of the system keychain, for Linux without one. See Linux without a keychain.
A safe start
For a helper agent that only looks:
{"read_only": true, "allowed_devices": ["Lab-Server"]}
For an agent that may act: list the devices in allowed_devices, switch off the groups you do not need (destructive, settings and users first), turn on require_client_confirmation, and set media.allowed_paths:
{
"allowed_devices": ["Lab-Server"],
"tool_groups": {"destructive": false, "settings": false, "users": false},
"require_client_confirmation": true,
"media": {"allowed_paths": ["/home/me/iso"]}
}