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.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
topic | string | no | A topic id, such as start. Default: the index |
| Topic | Contents |
|---|---|
start | What to do on arriving at a controller, before the first change |
editing | Changing flows safely: create, update, move, delete, change the scope of state, restart, verify |
conventions | How a flow should look: tabs, groups, agent comments, names, layout, state, messages |
git | Checkpoints, one commit per verified step, other people's changes, remotes, working without a project |
testing | Proving that a change works, and what to warn about before tests with side effects |
troubleshooting | Finding why something does not work, including failures that leave no error |
standard-tabs | Rosepetal's standard dashboard tabs (Monitor, Log, Capture): dependencies, importing, input contract, sessions |
rosepetal-nodes | Using Rosepetal's own modules: cameras, inference, Firebase and datasets, debug, files, audit |
tools | How 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.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
instructions | boolean | no | Also 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:
| Part | Contents |
|---|---|
controller | The 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 |
accessUrls | The 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 |
mcpHost | The machine this server runs on: host name, operating system and kernel, CPU, memory, uptime, time and time zone |
mcpServer | Name 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.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
scope | global, flow or node | yes | |
scopeId | string | for flow and node | The tab id for flow, the node id for node |
key | string | no | One key, with dot notation such as config.database.host. Default: every key of the scope |
store | string | no | One 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.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
scope | global, flow or node | yes | |
scopeId | string | for flow and node | The tab id or the node id |
store | string | no | One 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.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
module | string | yes | Module 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.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
module | string | yes | Package name as installed, or node-red for the core nodes |
query | string | no | Text to find, not a regular expression. Leave it out to list the files |
glob | string | no | Only paths matching this glob, such as **/*.js or nodes/*.html |
caseSensitive | boolean | no | Default false |
dependencies | boolean | no | Also search the module's own node_modules |
limit | integer, 1 to 500 | no | Maximum 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.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
module | string | yes | Package name as installed, or node-red for the core nodes |
path | string | yes | Path inside the package, as search-module-files lists it, such as nodes/camera.js |
from | integer, from 1 | no | First line. Default 1 |
to | integer, from 1 | no | Last line. Default: the end of the file |