Skip to main content
Glama

Vercel MCP Adapter

auth-context.ts406 B
import { AuthInfo } from "@modelcontextprotocol/sdk/server/auth/types.js"; import { AsyncLocalStorage } from "node:async_hooks"; const authContext = new AsyncLocalStorage<AuthInfo>(); export function getAuthContext(): AuthInfo | undefined { return authContext.getStore(); } export function withAuthContext<T>(authInfo: AuthInfo, callback: () => T): T { return authContext.run(authInfo, callback); }

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/brunobenavent/mcp-vercel'

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