Skip to main content
Glama
mcp-related-apps.ts765 B
import { z } from "zod"; import { publicProcedure, router } from "../../trpc"; import { relatedAppDataAccess } from "@repo/db/database/admin"; export const mcpRelatedAppsRouter = router({ // 获取相关应用 getRelatedApps: publicProcedure .input( z.object({ type: z.enum(["client", "server", "application"]), appId: z.string(), }) ) .query(async ({ input }) => { return await relatedAppDataAccess.getRelatedApps(input); }), getRecommendedApps: publicProcedure .input( z.object({ type: z.enum(["client", "server", "application"]), appId: z.string(), }) ) .query(async ({ input }) => { return await relatedAppDataAccess.getRecommendedApps(input); }), });

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