/** * @copyright nhcarrigan * @license Naomi's Public License * @author Naomi Carrigan */ import { documentationData } from "../data/docs.js"; import type { FastifyPluginAsync } from "fastify"; /** * Mounts the Model Context Protocol routes for the application. These routes * should not require CORS, as they are used by external services * such as ChatGPT. * @param server - The Fastify server instance. */ export const mcpRoutes: FastifyPluginAsync = async(server) => { server.get("/mcp", async(_request, reply) => { return await reply.status(200).send(documentationData); }); };