Skip to main content
Glama
createPlugin.js521 B
function createPlugin(plugin, config) { return { handler: plugin, config, } } createPlugin.withOptions = (pluginFunction, configFunction = () => ({})) => { const optionsFunction = (options) => ({ __options: options, handler: pluginFunction(options), config: configFunction(options), }) optionsFunction.__isOptionsFunction = true optionsFunction.__pluginFunction = pluginFunction optionsFunction.__configFunction = configFunction return optionsFunction } module.exports = createPlugin

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/MatheusgVentura/Project-One'

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