go.bigb.es/curator
Documentation
Index
Functions
func HTTPHandler(st *store.Store, version string) http.Handler
HTTPHandler returns an http.Handler serving the MCP server over the streamable-HTTP transport. Mount it behind the admin auth middleware — it performs no authentication of its own.
func New(st *store.Store, version string) *mcp.Server
New builds an MCP server exposing module, pattern and credential management tools backed by the given store.
Package mcpserver exposes Curator's module management operations over the Model Context Protocol (MCP), so agents can add/delete modules, patterns and credentials without going through the REST API or admin UI by hand.
The tools operate directly on the *store.Store — the same writer the running server uses — and reuse the store's repository verification and validation logic, mirroring the REST handlers in internal/admin/api.go.