Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
generate-openapi.ts910 B
import { generateFiles } from "fumadocs-openapi"; import { openapi } from "@/lib/openapi"; import { readFileSync, writeFileSync } from "fs"; import { parse } from "yaml"; // Generate the API documentation files void generateFiles({ input: openapi, output: "./content/docs/api", per: "operation", groupBy: "tag", includeDescription: true, frontmatter: (title, description) => ({ title, description, full: false, }), }); // Parse the OpenAPI spec to get tag ordering const openapiSpec = parse(readFileSync("../api/openapi.yaml", "utf-8")); const tags = openapiSpec.tags?.map((tag: { name: string }) => tag.name) || []; // Generate meta.json with the tag order const meta = { root: true, title: "API Reference", description: "The Storyden RESTful API.", pages: ["index", ...tags], }; writeFileSync( "./content/docs/api/meta.json", JSON.stringify(meta, null, 2) + "\n" );

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Southclaws/storyden'

If you have feedback or need assistance with the MCP directory API, please join our Discord server