Files
hikari/server/src/routes/mcp.ts
T
naomi 0fd4218e31
Node.js CI / Lint and Test (push) Successful in 1m22s
fix: make it regular ts
2025-07-14 14:23:51 -07:00

22 lines
603 B
TypeScript

/**
* @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);
});
};