Documentation
¶
Index ¶
- Constants
- type ClaudeCodeAdapter
- func (a *ClaudeCodeAdapter) Detect() (bool, error)
- func (a *ClaudeCodeAdapter) FormatOutput(index *types.Index, format integrations.OutputFormat) (string, error)
- func (a *ClaudeCodeAdapter) GetCommand(binaryPath string, format integrations.OutputFormat) string
- func (a *ClaudeCodeAdapter) GetDescription() string
- func (a *ClaudeCodeAdapter) GetName() string
- func (a *ClaudeCodeAdapter) GetVersion() string
- func (a *ClaudeCodeAdapter) IsEnabled() (bool, error)
- func (a *ClaudeCodeAdapter) Reload(newConfig integrations.IntegrationConfig) error
- func (a *ClaudeCodeAdapter) Remove() error
- func (a *ClaudeCodeAdapter) Setup(binaryPath string) error
- func (a *ClaudeCodeAdapter) Update(binaryPath string) error
- func (a *ClaudeCodeAdapter) Validate() error
- type ClaudeCodeMCPAdapter
- func (a *ClaudeCodeMCPAdapter) Detect() (bool, error)
- func (a *ClaudeCodeMCPAdapter) FormatOutput(index *types.Index, format integrations.OutputFormat) (string, error)
- func (a *ClaudeCodeMCPAdapter) GetCommand(binaryPath string, format integrations.OutputFormat) string
- func (a *ClaudeCodeMCPAdapter) GetDescription() string
- func (a *ClaudeCodeMCPAdapter) GetName() string
- func (a *ClaudeCodeMCPAdapter) GetVersion() string
- func (a *ClaudeCodeMCPAdapter) IsEnabled() (bool, error)
- func (a *ClaudeCodeMCPAdapter) Reload(newConfig integrations.IntegrationConfig) error
- func (a *ClaudeCodeMCPAdapter) Remove() error
- func (a *ClaudeCodeMCPAdapter) Setup(binaryPath string) error
- func (a *ClaudeCodeMCPAdapter) Update(binaryPath string) error
- func (a *ClaudeCodeMCPAdapter) Validate() error
- func (a *ClaudeCodeMCPAdapter) VerifyRegistration() error
- type Hook
- type HookEvent
- type HookSpecificOutput
- type MCPConfig
- type MCPServer
- type SessionStartOutput
- type Settings
Constants ¶
const ( // IntegrationName is the unique identifier for this integration IntegrationName = "claude-code-hook" // IntegrationVersion is the adapter version IntegrationVersion = "1.0.1" // SessionStartEvent is the hook event name for Claude Code SessionStartEvent = "SessionStart" )
const ( // MCPIntegrationName is the unique identifier for this integration MCPIntegrationName = "claude-code-mcp" // MCPIntegrationVersion is the adapter version MCPIntegrationVersion = "1.0.0" // MCPServerName is the identifier used in ~/.claude.json MCPServerName = "agentic-memorizer" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaudeCodeAdapter ¶
type ClaudeCodeAdapter struct {
// contains filtered or unexported fields
}
ClaudeCodeAdapter implements the Integration interface for Claude Code
func NewClaudeCodeAdapter ¶
func NewClaudeCodeAdapter() *ClaudeCodeAdapter
NewClaudeCodeAdapter creates a new Claude Code integration adapter
func (*ClaudeCodeAdapter) Detect ¶
func (a *ClaudeCodeAdapter) Detect() (bool, error)
Detect checks if Claude Code is installed on the system
func (*ClaudeCodeAdapter) FormatOutput ¶
func (a *ClaudeCodeAdapter) FormatOutput(index *types.Index, format integrations.OutputFormat) (string, error)
FormatOutput formats the index for Claude Code (SessionStart JSON wrapper)
func (*ClaudeCodeAdapter) GetCommand ¶
func (a *ClaudeCodeAdapter) GetCommand(binaryPath string, format integrations.OutputFormat) string
GetCommand returns the command that should be executed by the hook
func (*ClaudeCodeAdapter) GetDescription ¶
func (a *ClaudeCodeAdapter) GetDescription() string
GetDescription returns a human-readable description
func (*ClaudeCodeAdapter) GetName ¶
func (a *ClaudeCodeAdapter) GetName() string
GetName returns the integration name
func (*ClaudeCodeAdapter) GetVersion ¶
func (a *ClaudeCodeAdapter) GetVersion() string
GetVersion returns the adapter version
func (*ClaudeCodeAdapter) IsEnabled ¶
func (a *ClaudeCodeAdapter) IsEnabled() (bool, error)
IsEnabled checks if the integration is currently configured
func (*ClaudeCodeAdapter) Reload ¶
func (a *ClaudeCodeAdapter) Reload(newConfig integrations.IntegrationConfig) error
Reload applies configuration changes
func (*ClaudeCodeAdapter) Remove ¶
func (a *ClaudeCodeAdapter) Remove() error
Remove removes the integration configuration
func (*ClaudeCodeAdapter) Setup ¶
func (a *ClaudeCodeAdapter) Setup(binaryPath string) error
Setup configures the Claude Code integration
func (*ClaudeCodeAdapter) Update ¶
func (a *ClaudeCodeAdapter) Update(binaryPath string) error
Update updates the integration configuration
func (*ClaudeCodeAdapter) Validate ¶
func (a *ClaudeCodeAdapter) Validate() error
Validate checks the health of the integration
type ClaudeCodeMCPAdapter ¶
type ClaudeCodeMCPAdapter struct {
// contains filtered or unexported fields
}
ClaudeCodeMCPAdapter implements the Integration interface for Claude Code MCP server
func NewClaudeCodeMCPAdapter ¶
func NewClaudeCodeMCPAdapter() *ClaudeCodeMCPAdapter
NewClaudeCodeMCPAdapter creates a new Claude Code MCP integration adapter
func (*ClaudeCodeMCPAdapter) Detect ¶
func (a *ClaudeCodeMCPAdapter) Detect() (bool, error)
Detect checks if Claude Code with MCP support is installed on the system
func (*ClaudeCodeMCPAdapter) FormatOutput ¶
func (a *ClaudeCodeMCPAdapter) FormatOutput(index *types.Index, format integrations.OutputFormat) (string, error)
FormatOutput is not used by MCP integrations MCP servers provide output through resources and tools, not direct formatting
func (*ClaudeCodeMCPAdapter) GetCommand ¶
func (a *ClaudeCodeMCPAdapter) GetCommand(binaryPath string, format integrations.OutputFormat) string
GetCommand returns the command that should be executed by Claude Code
func (*ClaudeCodeMCPAdapter) GetDescription ¶
func (a *ClaudeCodeMCPAdapter) GetDescription() string
GetDescription returns a human-readable description
func (*ClaudeCodeMCPAdapter) GetName ¶
func (a *ClaudeCodeMCPAdapter) GetName() string
GetName returns the integration name
func (*ClaudeCodeMCPAdapter) GetVersion ¶
func (a *ClaudeCodeMCPAdapter) GetVersion() string
GetVersion returns the adapter version
func (*ClaudeCodeMCPAdapter) IsEnabled ¶
func (a *ClaudeCodeMCPAdapter) IsEnabled() (bool, error)
IsEnabled checks if the integration is currently configured
func (*ClaudeCodeMCPAdapter) Reload ¶
func (a *ClaudeCodeMCPAdapter) Reload(newConfig integrations.IntegrationConfig) error
Reload applies configuration changes
func (*ClaudeCodeMCPAdapter) Remove ¶
func (a *ClaudeCodeMCPAdapter) Remove() error
Remove removes the integration configuration
func (*ClaudeCodeMCPAdapter) Setup ¶
func (a *ClaudeCodeMCPAdapter) Setup(binaryPath string) error
Setup configures the Claude Code MCP integration
func (*ClaudeCodeMCPAdapter) Update ¶
func (a *ClaudeCodeMCPAdapter) Update(binaryPath string) error
Update updates the integration configuration
func (*ClaudeCodeMCPAdapter) Validate ¶
func (a *ClaudeCodeMCPAdapter) Validate() error
Validate checks the health of the integration
func (*ClaudeCodeMCPAdapter) VerifyRegistration ¶
func (a *ClaudeCodeMCPAdapter) VerifyRegistration() error
VerifyRegistration verifies the MCP server is properly registered This can be called after setup to confirm the configuration
type Hook ¶
type Hook struct {
Type string `json:"type"`
Command string `json:"command"`
Timeout float64 `json:"timeout,omitempty"`
}
Hook represents a single hook command
type HookSpecificOutput ¶
type HookSpecificOutput struct {
HookEventName string `json:"hookEventName"`
AdditionalContext string `json:"additionalContext,omitempty"`
}
HookSpecificOutput contains the hook-specific output data
type MCPServer ¶
type MCPServer struct {
Type string `json:"type"` // stdio, http, sse
Command string `json:"command,omitempty"` // For stdio: executable path
Args []string `json:"args,omitempty"` // For stdio: command arguments
URL string `json:"url,omitempty"` // For http/sse: server URL
Env map[string]string `json:"env,omitempty"` // Environment variables
}
MCPServer represents a single MCP server configuration
type SessionStartOutput ¶
type SessionStartOutput struct {
Continue bool `json:"continue"`
SuppressOutput bool `json:"suppressOutput"`
SystemMessage string `json:"systemMessage,omitempty"`
HookSpecific *HookSpecificOutput `json:"hookSpecificOutput,omitempty"`
}
SessionStartOutput represents the Claude Code SessionStart hook response format