Skip to main content
Glama
auth-internal.ts389 B
import { createContext, useContext } from "react"; import { AuthContextValue } from "./auth-types"; export const AuthContext = createContext<AuthContextValue | undefined>( undefined, ); export function useAuth(): AuthContextValue { const context = useContext(AuthContext); if (!context) { throw new Error("useAuth must be used within an AuthProvider"); } return context; }

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/TheLunarCompany/lunar'

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