Repository navigation
Control what assistants can do
Every tool only reads. These settings narrow what's offered, protect your servers and record what's asked.
-
MCP_TOOLS_DENYturns tools off, for exampleconfig_backup,config_diff,recent_config_changes,what_changedfor everything that can return something from Unimus. -
MCP_TOOLS_ALLOWoffers only the tools you list. -
MCP_TOOLS_ALLOW=dashynms_helpoffers help with DashyNMS alone, and needs no LibreNMS.
Deny wins over allow. A tool that's off isn't listed and can't be called. A name that isn't a tool stops the server when it starts, so a typing mistake can't leave one on. Tools has the names.
-
MCP_MAX_CONCURRENT_REQUESTSis the most requests in progress to each of LibreNMS, Unimus and Graylog, 8 unless you change it (1 to 256). The rest wait their turn, and waiting doesn't count towardsLIBRENMS_TIMEOUT. -
MCP_RATE_LIMIT_PER_MINUTEis the most calls each person or client may make in a minute (up to 10000). It's off unless you set it. Over HTTP each token is counted separately. A call over the limit is refused and told how long to wait. -
MCP_MAX_RESULT_BYTESis the most JSON one answer can hold, 16384 bytes by default (at least 1024). Longer ones say what was left out.
Every call leaves one line of JSON on the server's error output: when, which transport, which client, whose token label over HTTP, which tool, the declared arguments and how it went. Secrets are hidden and answers are never recorded. The arguments still name your devices, so treat it as you would any log of your network.
To send it to Graylog as well, set AUDIT_GELF_URL to a GELF input, such as https://graylog.example.net:12201/gelf (HTTP defaults to /gelf) or udp://graylog.example.net:12201 (UDP defaults to port 12201).
A question asked before is answered with its last good answer, marked as stale with its time. Up to 500 answers are kept for 24 hours in memory. Answers about configuration, logs and graphs are never kept, and neither is anything incomplete or redacted.
- Set
MCP_LAST_KNOWN_GOODtofalseto turn this off. - Set
MCP_LAST_KNOWN_GOOD_HOURSto change how old an answer may be (1 to 168 hours). - Set
MCP_LAST_KNOWN_GOOD_DIRto a full folder path to keep answers after a restart, encrypted with a key derived from the LibreNMS token and server settings. In Docker, mount a volume at/dataand set it to/data.
A refused token forgets every kept answer.
These pages are copied from docs/guide in the DashyNMS repository each time the guide changes, so edit the guide there rather than here.
Start here
Everyday tasks
Run it for your team
Help and reference