Skip to main content
Glama

Karakeep MCP server

by karakeep-app
utils.ts995 B
import type { ClassValue } from "clsx"; import { clsx } from "clsx"; import { twMerge } from "tailwind-merge"; export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)); } /** * Merge props conditionally. * * @example * ``` * <View {...condProps( * { condition: true, props: { className: "foo" } }, * { condition: true, props: { style: { margin: "10px" } } }, * )} /> * ``` * results in: * ``` * <View className="foo" style={ margin: "10px" } /> * ``` * @example * ``` * <View style={condProps( * { condition: true, color: "red" }, * { condition: true, fontWeight: "bold" } * )} /> * ``` * results in: * ``` * <View style={ color: "red", fontWeight: "bold" } /> * ``` */ export function condProps( ...condProps: { condition: boolean; props: Record<string, unknown>; }[] ): Record<string, unknown> { return condProps.reduce((acc, { condition, props }) => { return condition ? { ...acc, ...props } : acc; }, {}); }

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