Skip to main content
Glama

MCP Prompts Server

prompt.event.ts663 B
export class PromptEvent { constructor( public readonly type: 'prompt_created' | 'prompt_updated' | 'prompt_deleted' | 'prompt_accessed', public readonly promptId: string, public readonly timestamp: Date = new Date(), public readonly metadata: Record<string, any> = {} ) {} public toJSON(): any { return { type: this.type, promptId: this.promptId, timestamp: this.timestamp.toISOString(), metadata: this.metadata }; } public static fromJSON(data: any): PromptEvent { return new PromptEvent( data.type, data.promptId, new Date(data.timestamp), data.metadata || {} ); } }

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/sparesparrow/mcp-prompts'

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