jevstrudel.git / website / src / pages / jev / reference.json.js

The reference tab's functions as the MCP's api_reference reads them (worker/src/reference.ts): name, synonyms, tags, the description and each parameter as text, and the examples, from jsdoc's doc.json (built before the site: package.json's prebuild and prestart).

5import docs from '../../../../doc.json';
6import { referenceData } from '../../jev/reference.mjs';
8export function GET() {
9  return new Response(JSON.stringify({ functions: referenceData(docs.docs) }), {
10    headers: { 'Content-Type': 'application/json' },
11  });
12}