Skip to main content
Glama

list_sessions

Retrieve active session details and metadata to monitor and manage mock server configurations for development and testing workflows.

Instructions

List all active sessions with metadata

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler implementation for the list_sessions tool, which invokes sessionManager.listSessions().
    list_sessions: async () => {
      try {
        const sessions = sessionManager.listSessions();
        return { success: true, data: sessions };
      } catch (error: any) {
        return {
          success: false,
          error: `Failed to list sessions: ${error.message}`
        };
      }
    },

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/aj-bartocci/SpyNet'

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