Skip to main content
Glama

Code Snippet Server

storage_base.ts532 B
import { CodeSnippet } from "../types/snippets.js"; export type SnippetQuery = { tag?: string, title?: string, language?: string }; // StorageBase defines the storage engine that the server could use export interface StorageBase { // Initialize the engine Initialize(): Promise<void> // Reload snippets ReloadSnippets(): Promise<void> ListSnippets(query?: SnippetQuery):Promise<CodeSnippet[]> // Insert a snippet InsertSnippet(snippet: CodeSnippet):Promise<void> DeleteSnippet(id: string):Promise<boolean> };

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/ngeojiajun/mcp-code-snippets'

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