Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public final class DevTools

  1. Object
  2. DevTools

ImplementsMcpServer.Extension

The tools an agent developing a backend uses on the running server.

ToolWhat it does
backend_routesevery route the build generated
backend_beansevery bean, its scope and what it was given
backend_configthe profile and the configured keys, secrets masked
backend_callsends the server an HTTP request and returns the response
backend_requeststhe last requests served, and what failed and why
backend_logsthe last console lines
backend_sqlruns SQL against the server’s database
backend_schemathe entities and their tables and columns
backend_jobs / backend_run_jobthe scheduled jobs; run one now
backend_metricsevery metric’s current value
backend_managed / backend_invokethe 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.