Skip to main content
Glama
custom-state.ts697 B
import Router from '@koa/router'; import Koa from 'koa'; import { AuthToken, Workspace } from '@prisma/client'; import { UserWithTosStatus } from "./services/users.service"; import { AuthTokenData } from './services/auth.service'; // types for the things we add to our koa ctx export type CustomAppContext = { }; export type CustomAppState = { clientIp: string, token?: AuthTokenData, authUser?: UserWithTosStatus, authWorkspace?: Workspace, // For automation tokens, we look this up so we can check if they're revoked authToken?: AuthToken, }; export type CustomRouteContext = Koa.ParameterizedContext< CustomAppState, Router.RouterParamContext<CustomAppState, CustomAppContext> >;

Latest Blog Posts

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/systeminit/si'

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