Skip to main content
Glama
default.ts831 B
/** * Default Workspace Loader - Pure Functional Implementation * Always ready, no special initialization needed */ import { WorkspaceLoader, WorkspaceLoaderState } from '../types.js'; /** * Pure function: Initialize default workspace (always ready) */ const initialize = async (): Promise<WorkspaceLoaderState> => { // Await a resolved promise to satisfy eslint require-await await Promise.resolve(); return { type: 'default' as const, ready: true, }; }; /** * Pure function: Check if default workspace is ready (always true) */ const isReady = (): boolean => true; /** * Factory function to create default workspace loader */ export const createDefaultLoader = (): WorkspaceLoader => ({ initialize, isReady, // No handleNotification needed - default workspace doesn't handle notifications });

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/p1va/symbols-mcp'

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