We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mcp-fe/mcp-fereact-tools'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
useSessionManager.ts•443 B
import { useContext } from 'react';
import { SessionContext } from '../contexts/SessionContext';
/**
* Hook for managing session user and JWT token
* Uses global SessionContext to share state across the application
*/
export function useSessionManager() {
const context = useContext(SessionContext);
if (context === undefined) {
throw new Error('useSessionManager must be used within a SessionProvider');
}
return context;
}