We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/TeamDay-AI/se-ranking-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
token-store.d.ts•734 B
/**
* Per-request credential isolation using AsyncLocalStorage.
*
* Importing this module sets up a global token provider that reads
* credentials from the current async context. Use `tokenStore.run()`
* to inject per-request tokens:
*
* tokenStore.run({ data: 'xxx', project: 'yyy' }, async () => {
* // all BaseTool.getToken() calls here resolve to the injected tokens
* });
*
* When no async context is active (e.g. stdio mode), the provider
* returns undefined and BaseTool falls back to environment variables.
*/
import { AsyncLocalStorage } from 'node:async_hooks';
export interface TokenContext {
data?: string;
project?: string;
}
export declare const tokenStore: AsyncLocalStorage<TokenContext>;