install

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clients

func Clients() []string

Clients returns the supported client names in stable display order.

Types

type Options

type Options struct {
	Clients   string
	Workspace bool
	Scope     string
}

Options controls non-interactive MCP client configuration. Clients accepts "auto", "all", or a comma-separated client list. Scope applies only to the Claude client: "user" invokes "claude mcp add --scope user" to register in ~/.claude.json; any other value writes a project-local .mcp.json.

type Result

type Result struct {
	Client string
	Path   string
}

Result records one client configuration file updated by the installer.

func Apply

func Apply(root string, opts Options) ([]Result, error)

Apply writes DocGraph MCP configuration for the selected clients. The installer is intentionally non-interactive so it can be used from scripted setup flows and tested without terminal prompts.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL