setup

package
v0.7.114 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package setup renders and writes the MCP server entry for each supported agent client.

Index

Constants

View Source
const AgyRule = "mcp(" + ServerName + "/*)"

AgyRule lets Antigravity CLI run the advisor's MCP tools without asking; the same text as ask.AgyRule (the packages do not import each other). A test keeps them equal.

View Source
const ServerName = "wowc-advisor"

ServerName is the key the advisor is registered under in every client.

Variables

View Source
var Clients = []string{"claude-desktop", "claude-code", "codex", "agy", "gemini"}

Clients lists the accepted client names.

Functions

func Path

func Path(client string, e Env) (string, error)

Path is the config file the client reads. Claude Code gets the project .mcp.json in the current directory, since its user config (~/.claude.json) also holds unrelated state.

func Snippet

func Snippet(client string, e Entry) (string, error)

Snippet is the text a user adds to the client's config file.

func Write

func Write(client string, e Entry, env Env) (path, backup string, err error)

Write adds the entry to the client's config file, keeping every other entry, and returns the file path and the backup path ("" when the file did not exist). It refuses a file it cannot merge into safely.

Types

type Entry

type Entry struct {
	Binary         string
	SavedVariables string
}

Entry is what the client launches.

type Env

type Env struct {
	GOOS    string
	Home    string
	AppData string // Windows %APPDATA%
	Cwd     string
}

Env locates the per-user and per-project directories.

Jump to

Keyboard shortcuts

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