We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mercurialsolo/counsel-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
context.ts•402 B
import { AsyncLocalStorage } from 'async_hooks';
const tokenStorage = new AsyncLocalStorage();
/**
* Run a function with the given auth token in context
*/
export function runWithToken<T>(token: string, fn: () => T): T {
return tokenStorage.run(token, fn);
}
/**
* Get the current auth token from context
*/
export function getToken(): string | undefined {
return tokenStorage.getStore();
}