Skip to main content
Glama
storage.d.ts1.14 kB
import { PersistentStore } from './types'; export declare const resetSubDomainCache: () => void; /** * Browsers don't offer a way to check if something is a public suffix * e.g. `.com.au`, `.io`, `.org.uk` * * But they do reject cookies set on public suffixes * Setting a cookie on `.co.uk` would mean it was sent for every `.co.uk` site visited * * So, we can use this to check if a domain is a public suffix * by trying to set a cookie on a subdomain of the provided hostname * until the browser accepts it * * inspired by https://github.com/AngusFu/browser-root-domain */ export declare function seekFirstNonPublicSubDomain(hostname: string, cookieJar?: Document | undefined): string; export declare function chooseCookieDomain(hostname: string, cross_subdomain: boolean | undefined): string; export declare const cookieStore: PersistentStore; export declare const localStore: PersistentStore; export declare const localPlusCookieStore: PersistentStore; export declare const memoryStore: PersistentStore; export declare const resetSessionStorageSupported: () => void; export declare const sessionStore: PersistentStore;

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/sadiuysal/mem0-mcp-server-ts'

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