Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class DevTools
- Object
- DevTools
ImplementsMcpServer.Extension
The tools an agent developing a backend uses on the running server.
| Tool | What it does |
|---|---|
backend_routes | every route the build generated |
backend_beans | every bean, its scope and what it was given |
backend_config | the profile and the configured keys, secrets masked |
backend_call | sends the server an HTTP request and returns the response |
backend_requests | the last requests served, and what failed and why |
backend_logs | the last console lines |
backend_sql | runs SQL against the server’s database |
backend_schema | the entities and their tables and columns |
backend_jobs / backend_run_job | the scheduled jobs; run one now |
backend_metrics | every metric’s current value |
backend_managed / backend_invoke | the managed beans; call an operation |
Linked only into a development build – the entry point cn1:backend
runs – and installed only on a development profile, so a production binary
has none of it.
Constructors
public DevTools() |
Methods
public void install(McpServer server, Backend running) | Registers tools, given the running server. |
Inherited methods
Constructor details
DevTools
public DevTools()Method details
install
public void install(McpServer server, Backend running)Registers tools, given the running server.