Skip to main content
Glama

Karakeep MCP server

by karakeep-app
users.ts1.19 kB
import { extendZodWithOpenApi, OpenAPIRegistry, } from "@asteasolutions/zod-to-openapi"; import { z } from "zod"; import { zUserStatsResponseSchema, zWhoAmIResponseSchema, } from "@karakeep/shared/types/users"; import { BearerAuth } from "./common"; export const registry = new OpenAPIRegistry(); extendZodWithOpenApi(z); registry.registerPath({ method: "get", path: "/users/me", description: "Returns info about the current user", summary: "Get current user info", tags: ["Users"], security: [{ [BearerAuth.name]: [] }], request: {}, responses: { 200: { description: "Object with user data.", content: { "application/json": { schema: zWhoAmIResponseSchema, }, }, }, }, }); registry.registerPath({ method: "get", path: "/users/me/stats", description: "Returns stats about the current user", summary: "Get current user stats", tags: ["Users"], security: [{ [BearerAuth.name]: [] }], request: {}, responses: { 200: { description: "Object with user stats.", content: { "application/json": { schema: zUserStatsResponseSchema, }, }, }, }, });

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/karakeep-app/karakeep'

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