20 Generated interface documentation🔗ℹ

raco mcp docs module.rkt generates Markdown from the static manifest. manifest->markdown, exported by mcp/cli, accepts an already read manifest and optional #:title and #:examples arguments. The result includes known descriptions and metadata, argument requirements/defaults/codecs, input/output and reusable schemas, completion targets, resource references, workflow stages, adapter policies, and runtime requirements. Schema examples remain present in the emitted schema JSON.

Dynamic descriptions, schemas, and other expressions are identified as dynamic and displayed without evaluation. Reading the manifest does not instantiate the application. Names and source references use code spans; descriptions are escaped as text; schema code fences expand when necessary to preserve literal backticks. Generated documentation describes what the static manifest establishes, including its documented limits on helper analysis and dynamic composition.

The manifest submodule separately exports manifest-examples, a list of locally authored scenario source records in declaration order. Each record contains name, code, and source coordinates. Renamed and macro-generated scenario forms use the same compiler collector. These records contain printed syntax; collecting or reading them does not evaluate configuration expressions, start process scenarios, or execute assertions. They do not enter the published interface declaration list or change wire-compatibility reports.

read-manifest-examples from mcp/cli reads this export without instantiating the parent application. Older manifest modules without the export return an empty list. Pass its result as #:examples to manifest->markdown; raco mcp docs does this automatically. The resulting section labels the scenarios as source examples, not test-run results. Code fences are extended when source contains backticks. These local examples are not rewritten through mounted views: run the source module’s scenarios to exercise their actual configuration. Compiling the module still executes trusted Racket transformers.