Documentation
¶
Overview ¶
Package mcp exposes the stack use cases as MCP tools over stdio so coding agents can drive git-stack. Stdout belongs to JSON-RPC: everything here logs to stderr and every subprocess is captured.
Index ¶
Constants ¶
const Instructions = `` /* 6435-byte string literal not displayed */
Instructions is sent to clients at initialisation. Codex weighs the start of it most, so the key guidance comes first.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Version string
// Cwd is the fallback repository location.
Cwd string
Git *git.Client
// NewApp builds the use cases for a repository. It must never produce
// an App that prompts or hands over a terminal.
NewApp func(ctx context.Context, repo git.Repo) (*app.App, error)
// NewBareApp builds the use cases outside any repository, for
// stack_doctor; nil means stack_doctor needs a repository too.
NewBareApp func(ctx context.Context) (*app.App, error)
// Doctors are checks stack_doctor adds to the App's own (git-stack's
// aliases and release).
Doctors []doctor.Provider
Log *slog.Logger
}
Options wires the server.