Documentation
¶
Overview ¶
Package mcpserver exposes the Gnar engine as an MCP server over stdio so any agent or IDE that speaks the Model Context Protocol can share one memory.
IMPORTANT: the stdio transport owns stdout for JSON-RPC framing. Never write to stdout here — log to stderr only.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Version = "0.1.0"
Version is the reported server version (overridable via -ldflags -X).
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server bundles the engine with a default working directory used for project auto-detection when a tool call omits an explicit project.
func New ¶
New creates an MCP server over the given engine. dir is the default directory for project detection (typically the process working directory).