Documentation
¶
Overview ¶
Package integrations manages the local configuration and skill files owned by Kivgraph for supported MCP clients. It deliberately keeps each client's schema behind this package so the CLI only deals in targets and scopes.
Index ¶
- Constants
- type Action
- type Manager
- func (manager Manager) DetectMCPTargets(scope Scope) ([]TargetDetection, error)
- func (manager Manager) DetectSkillTargets(scope Scope) ([]TargetDetection, error)
- func (manager Manager) InstallMCP(target Target, scope Scope, dryRun, force bool) (Plan, error)
- func (manager Manager) InstallSkill(target Target, scope Scope, dryRun, force bool) (Plan, error)
- func (manager Manager) RemoveMCP(target Target, scope Scope, dryRun, force bool) (Plan, error)
- func (manager Manager) RemoveSkill(target Target, scope Scope, dryRun, force bool) (Plan, error)
- func (manager Manager) StatusMCP(target Target, scope Scope) (Plan, error)
- func (manager Manager) StatusSkill(target Target, scope Scope) (Plan, error)
- type Options
- type Plan
- type Scope
- type Target
- type TargetDetection
Constants ¶
const ( TargetClaudeCode = "claude-code" TargetClaudeDesktop = "claude-desktop" TargetCodex = "codex" TargetOpenCode = "opencode" TargetOhMyPi = "oh-my-pi" ScopeUser = "user" ScopeProject = "project" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager applies integration plans for one local user and one project.
func (Manager) DetectMCPTargets ¶
func (manager Manager) DetectMCPTargets(scope Scope) ([]TargetDetection, error)
DetectMCPTargets returns every MCP target supported by the requested scope, marking the targets whose local configuration or installation markers exist.
func (Manager) DetectSkillTargets ¶
func (manager Manager) DetectSkillTargets(scope Scope) ([]TargetDetection, error)
DetectSkillTargets returns every local skill target supported by the requested scope, marking the targets whose local installation markers exist.
func (Manager) InstallMCP ¶
InstallMCP registers the local MCP server, or returns an idempotent plan if the exact Kivgraph-managed entry already exists.
func (Manager) InstallSkill ¶
InstallSkill copies the canonical embedded skill to a client-native path.
func (Manager) RemoveMCP ¶
RemoveMCP removes only an exact Kivgraph-managed MCP entry. An incompatible entry requires force, even when the target name is the same.
func (Manager) RemoveSkill ¶
RemoveSkill removes only the exact canonical skill installed by Kivgraph.
type Options ¶
Options identifies the filesystem roots used by a Manager. HomeDir and ProjectDir are injectable to make safety checks testable without touching a real client configuration.
type Plan ¶
type Plan struct {
Action Action
Target Target
Scope Scope
Path string
Status string
Changed bool
DryRun bool
Detail string
}
Plan describes an inspected or applied integration operation.
type TargetDetection ¶
TargetDetection reports whether a supported client appears to be installed in the requested scope.