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 = `` /* 1690-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)
Log *slog.Logger
}
Options wires the server.