Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.17 KB

cli.md

File metadata and controls

38 lines (27 loc) · 1.17 KB

contextjsx CLI

Serve a definition file as an MCP server, or write its docs and skills

serve <file> [--http] [--port <port>]

Serve a definition file as an MCP server

With --http, prints the URL and token as JSON; send Authorization: Bearer <token> to the URL.

  • <file> module whose default export is a defineApp
  • --http serve on loopback HTTP instead of stdio
  • --port <port> port, default any free
contextjsx serve ./app.ts
contextjsx serve ./dist/app.js --http

emit <file> [--out <out>] [--markdown] [--skills] [--all] [--index <index>] [--no-note]

Write Markdown docs and SKILL.md files from a definition file

  • <file> module whose default export is a defineApp
  • --out <out> writes <out>/docs and <out>/skills; without it, lists
  • --markdown write Markdown docs
  • --skills write SKILL.md files
  • --all write both
  • --index <index> main docs page, default index.md
  • --no-note generated marker, on by default
contextjsx emit ./app.ts --all
contextjsx emit ./app.ts --out . --all --index cli.md
contextjsx emit ./app.ts --out . --skills --no-note