Documentation
¶
Overview ¶
Package mcp exposes Oku over the Model Context Protocol (stdio) using the official Go SDK. Tools call the same in-process services as the CLI; the server never shells out to the oku binary. stdout carries only protocol frames; diagnostics go to the configured log writer (stderr).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend interface {
Commands() []Command
Call(ctx context.Context, path string, g Globals, opts map[string]any, args []string) (any, error)
}
Backend is the shared application service (implemented by cli.Service).
type Config ¶
type Config struct {
Version string
// AllowMutations exposes prepare/submit/cancel/reconcile tools.
// Authenticated mutations still require a valid Oku session.
AllowMutations bool
Docs docs.Store
Skills fs.FS // skills root, one directory per skill
}
Config controls what the server exposes.
type DraftInput ¶
type DraftInput struct {
Draft string `json:"draft" jsonschema:"malformed order draft JSON text, at most 16 KiB"`
}
DraftInput is the drafts_repair tool input.
Click to show internal directories.
Click to hide internal directories.