Skip to main content
Glama
session-info.ts574 B
/** * Session Info Operation * * Returns current session information and statistics */ import { BaseOperation, type OperationContext, type OperationResult } from '../base.js'; export class SessionInfoOperation extends BaseOperation { name = 'session_info'; category = 'session'; async execute(context: OperationContext): Promise<OperationResult> { const { sessionState } = context; return this.createResult({ sessionId: sessionState.sessionId, stats: sessionState.getStats(), }); } } export default new SessionInfoOperation();

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/waldzellai/clearthought-onepointfive'

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