Documentation
¶
Index ¶
- func IsClaudeCodeClient(clientInfo *mcp.Implementation) bool
- func LoadProfiles(ctx context.Context, activator ProfileActivator) error
- func LoadProfilesForClient(ctx context.Context, clientInfo *mcp.Implementation, ...) error
- func SaveProfile(profileName string) error
- func SaveProfileForClient(clientInfo *mcp.Implementation, profileName string) error
- type ProfileActivator
- type ProfilesConfig
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 ¶
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 ¶
ProfileActivator is an interface for activating profiles
type ProfilesConfig ¶
type ProfilesConfig struct {
Profiles []string `json:"profiles"`
}
ProfilesConfig represents the structure of profiles.json
Click to show internal directories.
Click to hide internal directories.