Documentation menu

jdx serve

IDE equivalent: Local HTTP/JSON API

Serve the HTTP/JSON API: GET /v1/<command>?query=…&<param>=… for each jdx query, POST /v1/batch for NDJSON batches, GET /v1/health as a liveness probe. Answers are the exact --json envelopes over one stored workspace (default: default), bound to localhost by default. Blocks until interrupted.

Usage#

jdx serve [<options>]

Options#

OptionDescription
-w, --workspace=<text>Stored workspace the server answers from (default: default). Individual requests may override it per call with ?workspace=.
--port=<int>Port to listen on (default 7070).
--bind=<text>Address to bind (default 127.0.0.1; localhost only unless changed).
-h, --helpShow this message and exit

Full help text#

Show jdx serve --help
jdx serve --help
Usage: jdx serve [<options>]

  Serve the HTTP/JSON API: GET /v1/<command>?query=…&<param>=… for each jdx query, POST /v1/batch for NDJSON batches, GET /v1/health as a liveness probe. Answers are the exact --json envelopes over one stored workspace (default: default), bound to localhost by default. Blocks until interrupted.

Options:
  -w, --workspace=<text>  Stored workspace the server answers from (default: default). Individual requests may override it per call with ?workspace=.
  --port=<int>            Port to listen on (default 7070).
  --bind=<text>           Address to bind (default 127.0.0.1; localhost only unless changed).
  -h, --help              Show this message and exit

Real output — this example ran against the current jdx when the page was built.

Learn more#

Guide: MCP, daemon, HTTP & batch · All commands

View as Markdown · Updated