project

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsClaudeCodeClient

func IsClaudeCodeClient(clientInfo *mcp.Implementation) bool

IsClaudeCodeClient checks if the client is Claude Code

func LoadProfiles

func LoadProfiles(ctx context.Context, activator ProfileActivator) error

LoadProfiles loads and activates profiles from profiles.json in the current working directory

func LoadProfilesForClient

func LoadProfilesForClient(ctx context.Context, clientInfo *mcp.Implementation, activator ProfileActivator) error

LoadProfilesForClient loads profiles for the given client if it's Claude Code This encapsulates Claude Code-specific logic for profile loading

func SaveProfile

func SaveProfile(profileName string) error

SaveProfile adds or updates a profile in profiles.json in the current working directory

func SaveProfileForClient

func SaveProfileForClient(clientInfo *mcp.Implementation, profileName string) error

SaveProfileForClient saves a profile for the given client if it's Claude Code This encapsulates Claude Code-specific logic for profile saving

Types

type ProfileActivator

type ProfileActivator interface {
	ActivateProfile(ctx context.Context, profileName string) error
}

ProfileActivator is an interface for activating profiles

type ProfilesConfig

type ProfilesConfig struct {
	Profiles []string `json:"profiles"`
}

ProfilesConfig represents the structure of profiles.json

Jump to

Keyboard shortcuts

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