Skip to main content
Glama

Upstash MCP Server

Official
by upstash
index.ts567 B
import type { ZodSchema } from "zod"; import type { CustomTool } from "../tool"; import { redisTools } from "./redis"; import { qstashAllTools } from "./qstash"; export const json = (json: unknown) => typeof json === "string" ? json : JSON.stringify(json, null, 2); export const tools: Record<string, CustomTool> = { ...redisTools, ...qstashAllTools, } as unknown as Record<string, CustomTool>; // Only used for type inference export function tool<TSchema extends ZodSchema>(tool: CustomTool<TSchema>): CustomTool { return tool as unknown as CustomTool; }

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/upstash/mcp-server'

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