Skip to content

Controller and runtime tools of the Flows MCP server ​

The 12 tools that describe where the assistant is working: the server itself and its guide, the controller, the Node-RED runtime, its context storage and the code of its installed modules. All of them are read-only. How to connect, and how results and errors come back, is in Flows MCP server.

Guide and server ​

guide ​

The working guide for agents that the server carries: how to work on a Rosepetal controller, how a flow should look, how to change, test and commit safely. Without a topic it returns the index, one line per topic.

ParameterTypeRequiredMeaning
topicstringnoA topic id, such as start. Default: the index
TopicContents
startWhat to do on arriving at a controller, before the first change
editingChanging flows safely: create, update, move, delete, change the scope of state, restart, verify
conventionsHow a flow should look: tabs, groups, agent comments, names, layout, state, messages
gitCheckpoints, one commit per verified step, other people's changes, remotes, working without a project
testingProving that a change works, and what to warn about before tests with side effects
troubleshootingFinding why something does not work, including failures that leave no error
standard-tabsRosepetal's standard dashboard tabs (Monitor, Log, Capture): dependencies, importing, input contract, sessions
rosepetal-nodesUsing Rosepetal's own modules: cameras, inference, Firebase and datasets, debug, files, audit
toolsHow the tools behave, and which tools a controller registers

Each topic is also a resource, guide://<topic>, of type text/markdown. An unknown topic is an error that lists the topics.

get-MCP-node-red ​

The configuration of this server: its name and version with the commit and build it runs, the address of Node-RED it works with, whether it has a Node-RED token, the transport and whether verbose logging is on. Use it to check which runtime the session works on.

ParameterTypeRequiredMeaning
instructionsbooleannoAlso return the session instructions the server sent on connect, with their length. Default false

Controller ​

get-controller-info ​

Who and where: use it first, and to give people a link to the editor or a dashboard. Takes no parameters. Returns JSON with four parts:

PartContents
controllerThe machine Node-RED runs on: its host, whether this server runs on the same machine (colocatedWithMcpServer), and Node-RED's address, whether it answers, its version, httpNodeRoot, whether Projects is enabled and the active project
accessUrlsThe addresses at which people reach the editor and each dashboard, not only the local one, each with where it came from. editor lists those where Node-RED answers, tried those that did not answer, and a hint says how the controller can declare its public addresses when it has not
mcpHostThe machine this server runs on: host name, operating system and kernel, CPU, memory, uptime, time and time zone
mcpServerName and version of the server, with the commit, ref and build time of the running build, the Node.js version and the uptime of the process

get-controller-resources ​

A live snapshot of the controller's resources: CPU use (measured over about half a second) and load average, memory and swap, the use of the disk that holds the containers, and hardware temperatures where the machine exposes them. The figures are for the whole host, not per container. Takes no parameters. For the history over time, use the metrics tools.

Node-RED runtime ​

get-settings ​

The runtime settings Node-RED publishes: version, httpNodeRoot (the base path of http in endpoints and dashboards), context storage, editor settings (code editor, theme, projects), runtime state, diagnostics flags and libraries. Takes no parameters.

get-diagnostics ​

Node-RED's diagnostics report (Node.js, operating system, memory, installed modules, runtime state), followed by the addresses of the editor and the dashboards. Takes no parameters.

Context ​

Context is read-only through this server: these tools read it, and no tool writes or deletes it. Objects and arrays come back as JSON text in value, with their format (Object for an object); parse the text before using it.

get-context ​

Values of the context storage.

ParameterTypeRequiredMeaning
scopeglobal, flow or nodeyes
scopeIdstringfor flow and nodeThe tab id for flow, the node id for node
keystringnoOne key, with dot notation such as config.database.host. Default: every key of the scope
storestringnoOne context store, such as memory or file. Default: all stores

With key it returns scope, key, value and format. Without it, the keys and values of each store.

list-context-keys ​

The keys of a scope, without their values.

ParameterTypeRequiredMeaning
scopeglobal, flow or nodeyes
scopeIdstringfor flow and nodeThe tab id or the node id
storestringnoOne context store. Default: all stores

Returns the stores, the number of keys and the keys, per store.

get-context-stores ​

The context stores configured in Node-RED and which one is the default. Takes no parameters.

Installed modules ​

get-module-info ​

An installed Node-RED module: its name and version, whether it is installed locally, and the node sets it registers with their node types.

ParameterTypeRequiredMeaning
modulestringyesModule name, such as node-red-contrib-example or @scope/package

search-module-files ​

Searches the code of an installed module for plain text, with file:line: text results; without query, lists its files with their sizes. Use it to see what a node really does, or to find where an error message or a status text comes from. Binary files are skipped, and the module's own node_modules too unless dependencies is true. Needs Message Control 1.3.0 or later.

ParameterTypeRequiredMeaning
modulestringyesPackage name as installed, or node-red for the core nodes
querystringnoText to find, not a regular expression. Leave it out to list the files
globstringnoOnly paths matching this glob, such as **/*.js or nodes/*.html
caseSensitivebooleannoDefault false
dependenciesbooleannoAlso search the module's own node_modules
limitinteger, 1 to 500noMaximum matches. Default 100

read-module-file ​

Reads a file of an installed module, with numbered lines, or a range of lines around a match. Only files inside the package can be read; text files up to 4 MB, and about 200 KB per answer: read the rest with from and to. Needs Message Control 1.3.0 or later.

ParameterTypeRequiredMeaning
modulestringyesPackage name as installed, or node-red for the core nodes
pathstringyesPath inside the package, as search-module-files lists it, such as nodes/camera.js
frominteger, from 1noFirst line. Default 1
tointeger, from 1noLast line. Default: the end of the file