go.bigb.es/curator

v1.5.0
Doc Versions Source

Documentation

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.

Functions

f func HTTPHandler

src
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.

f func New

src
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.

Source Files