Documentation
¶
Overview ¶
Package mcpserver exposes the preview lifecycle as MCP tools over a transport. It is the only package that imports the MCP SDK and holds no lifecycle logic: handlers decode, call one preview.Service method and encode.
Index ¶
Constants ¶
const Name = "provr"
Name is the MCP server name clients see.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the provr MCP server.
func (*Server) Serve ¶
Serve speaks the protocol over in and out (newline-delimited JSON-RPC). Nothing but protocol frames is written to out.
func (*Server) WithWorkdir ¶
WithWorkdir sets the directory preview_up uses when no worktree is given (default: the working directory at New). It returns s.