We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/TheLunarCompany/lunar'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { userRoleSchema } from "@mcpx/shared-model/api";
import z from "zod/v4";
const spaceIdentitySchema = z.object({
entityType: z.literal("space"),
});
const userIdentitySchema = z.object({
entityType: z.literal("user"),
role: userRoleSchema,
displayName: z.string().optional(),
});
export const setIdentityPayloadSchema = z.discriminatedUnion("entityType", [
spaceIdentitySchema,
userIdentitySchema,
]);
export type UserRole = z.infer<typeof userRoleSchema>;
export type SetIdentityPayload = z.infer<typeof setIdentityPayloadSchema>;