Skip to main content
Glama

Karakeep MCP server

by karakeep-app
trpc.ts1.01 kB
import { getGlobalOptions } from "@/lib/globals"; import { createTRPCClient, httpBatchLink } from "@trpc/client"; import superjson from "superjson"; import type { AppRouter } from "@karakeep/trpc/routers/_app"; export function getAPIClient() { const globals = getGlobalOptions(); return createTRPCClient<AppRouter>({ links: [ httpBatchLink({ url: `${globals.serverAddr}/api/trpc`, maxURLLength: 14000, transformer: superjson, headers() { return { authorization: `Bearer ${globals.apiKey}`, }; }, }), ], }); } export function getAPIClientFor(opts: { serverAddr: string; apiKey: string }) { return createTRPCClient<AppRouter>({ links: [ httpBatchLink({ url: `${opts.serverAddr}/api/trpc`, maxURLLength: 14000, transformer: superjson, headers() { return { authorization: `Bearer ${opts.apiKey}`, }; }, }), ], }); }

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