We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gergelyszerovay/mcp-id-date'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
getAppState.ts•383 B
import type { AppState } from './AppState';
import { currentAppState } from './internal/currentAppState';
/**
* Gets the current application state
*
* @returns The current application state
*/
export function getAppState(): AppState {
if (!currentAppState.appState) {
throw new Error('Application state has not been initialized');
}
return currentAppState.appState;
}