Skip to main content
Glama

Karakeep MCP server

by karakeep-app
admin.ts669 B
import { zValidator } from "@hono/zod-validator"; import { Hono } from "hono"; import { updateUserSchema } from "@karakeep/shared/types/admin"; import { adminAuthMiddleware } from "../middlewares/auth"; const app = new Hono() .use(adminAuthMiddleware) // PUT /admin/users/:userId .put("/users/:userId", zValidator("json", updateUserSchema), async (c) => { const userId = c.req.param("userId"); const body = c.req.valid("json"); // Ensure the userId from the URL matches the one in the body const input = { ...body, userId }; await c.var.api.admin.updateUser(input); return c.json({ success: true }, 200); }); export default app;

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