Skip to main content
Glama

Appwrite Docs MCP Server

Official
by appwrite
create-table-of-contents.ts932 B
import path from "path"; import { contentRoot, getContent } from "../src/lib/utils/content"; import fs from "fs"; export async function createTableOfContents() { const excludedPaths = [ "/docs/references" ] console.log(`Creating table of contents for docs`, { excludedPaths }); const result = getContent(); // Create docs/toc.json const toc = result .sort((a, b) => a.webPath.localeCompare(b.webPath)) .map((item) => ({ path: `/${item.webPath}`, title: item.attributes.title, })) // .filter((item) => excludedPaths.some((path) => !item.path.startsWith(path))); console.log(`Found ${toc.length} Table of Contents items`); console.log("Writing docs/toc.json"); // console.log("Writing docs/toc.json"); fs.writeFileSync( path.join(contentRoot, "docs", "toc.json"), JSON.stringify(toc, null, 2) ); } // await createTableOfContents();

Latest Blog Posts

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/appwrite/mcp-for-docs'

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