Skip to main content
Glama

CentralMind/Gateway

plugin.go762 B
package lrucache import ( _ "embed" "github.com/centralmind/gateway/connectors" "github.com/centralmind/gateway/plugins" "github.com/hashicorp/golang-lru/v2/expirable" ) //go:embed README.md var docString string func init() { plugins.Register(New) } type PluginBundle interface { plugins.Wrapper } func New(cfg Config) (PluginBundle, error) { return &Plugin{ config: cfg, }, nil } type Plugin struct { config Config } func (p Plugin) Doc() string { return docString } func (p Plugin) Wrap(connector connectors.Connector) (connectors.Connector, error) { cache := expirable.NewLRU[string, []map[string]any](p.config.MaxSize, nil, p.config.TTL) return &Connector{ Connector: connector, config: p.config, lru: cache, }, nil }

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/centralmind/gateway'

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