Skip to main content
Glama
mcp-categories.ts621 B
import { categoriesDataAccess } from "@repo/db/database/admin"; import { z } from "zod"; import { publicProcedure, router } from "../../trpc"; export const mcpCategoriesRouter = router({ // 获取分类 getById: publicProcedure .input(z.object({ id: z.string() })) .query(async ({ input }) => { return categoriesDataAccess.getById(input.id); }), // 获取分类 getCategories: publicProcedure .input(z.object({ type: z.enum(["client", "server", "application"]), })) .query(async ({ input }) => { return categoriesDataAccess.getCategoriesByType(input.type); }), });

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/metacode0602/open-mcp'

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