Skip to main content
Glama

SQL MCP Server

by polarisxb
MIT License
1
5
  • Apple
  • Linux
plugin.ts974 B
import { BasePlugin, PluginConstructor } from '../core/plugins/interface.js' export function makeTestPluginClass( id: string, options?: { dependencies?: string[]; autoEnable?: boolean; on?: Partial<{ init: () => void | Promise<void>; enable: () => void | Promise<void>; disable: () => void | Promise<void>; uninstall: () => void | Promise<void>; }> } ): PluginConstructor { const deps = options?.dependencies ?? [] const autoEnable = options?.autoEnable ?? true const hooks = options?.on ?? {} return class extends BasePlugin { constructor() { super({ id, name: `Test Plugin ${id}`, version: '1.0.0', dependencies: deps, autoEnable }) } protected async onInitialize(): Promise<void> { await hooks.init?.() } protected async onEnable(): Promise<void> { await hooks.enable?.() } protected async onDisable(): Promise<void> { await hooks.disable?.() } protected async onUninstall(): Promise<void> { await hooks.uninstall?.() } } }

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/polarisxb/sql-mcp'

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