Skip to main content
Glama
apiKeys.ts470 B
import { protectedProcedure, publicProcedure, router } from "../trpc"; export const apiKeysAppRouter = router({ createApiKey: protectedProcedure.mutation(async ({ ctx }) => { const { user } = ctx; console.log("createApiKey", user); return user; }), getApiKeys: publicProcedure.query(async ({ ctx }) => { const { user } = ctx; console.log("getApiKeys", user); return user; }), }); export type ApiKeysAppRouter = typeof apiKeysAppRouter;

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