Documentation
¶
Overview ¶
Package mcpserver exposes a SupaCraft project to AI agents over MCP (stdio). Every write goes through the same validate → save → apply path, and a change that fails validation is not saved: the agent gets the issues back and supacraft.json stays as it was.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Dir string
APIURL string // base URL of the running API, used by call_endpoint
Version string
// Reload is called after a successful apply so an in-process API server
// sees the new config immediately. May be nil.
Reload func(context.Context)
// Started starts the API once init_project created the project (the
// server was started in a directory without one) and returns its
// Reload. May be nil.
Started func(context.Context) (func(context.Context), error)
}
Options configures the MCP server.