Documentation
¶
Index ¶
- type PromptHandler
- type PromptRegistry
- type ResourceHandler
- type SSEClient
- type Server
- type SubscriptionManager
- func (sm *SubscriptionManager) Clear()
- func (sm *SubscriptionManager) Count() int
- func (sm *SubscriptionManager) GetSubscriptions() []string
- func (sm *SubscriptionManager) IsSubscribed(uri string) bool
- func (sm *SubscriptionManager) Subscribe(uri string)
- func (sm *SubscriptionManager) Unsubscribe(uri string)
- type ToolHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PromptHandler ¶
type PromptRegistry ¶ added in v0.12.0
type PromptRegistry struct {
// contains filtered or unexported fields
}
PromptRegistry manages MCP prompts for file analysis
func NewPromptRegistry ¶ added in v0.12.0
func NewPromptRegistry() *PromptRegistry
NewPromptRegistry creates a new prompt registry with default prompts
func (*PromptRegistry) GeneratePromptMessages ¶ added in v0.12.0
func (r *PromptRegistry) GeneratePromptMessages(name string, arguments map[string]string, server *Server) ([]protocol.PromptMessage, error)
GeneratePromptMessages generates messages for a specific prompt with arguments
func (*PromptRegistry) GetPrompt ¶ added in v0.12.0
func (r *PromptRegistry) GetPrompt(name string) (*protocol.Prompt, error)
GetPrompt retrieves a specific prompt by name
func (*PromptRegistry) ListPrompts ¶ added in v0.12.0
func (r *PromptRegistry) ListPrompts() []protocol.Prompt
ListPrompts returns all registered prompts
type SSEClient ¶ added in v0.12.0
type SSEClient struct {
// contains filtered or unexported fields
}
SSEClient connects to daemon's SSE notification stream
func NewSSEClient ¶ added in v0.12.0
NewSSEClient creates a new SSE client
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ReloadIndex ¶ added in v0.12.0
ReloadIndex atomically updates the server's index (thread-safe)
type SubscriptionManager ¶ added in v0.12.0
type SubscriptionManager struct {
// contains filtered or unexported fields
}
SubscriptionManager manages resource subscriptions for MCP clients
func NewSubscriptionManager ¶ added in v0.12.0
func NewSubscriptionManager() *SubscriptionManager
NewSubscriptionManager creates a new subscription manager
func (*SubscriptionManager) Clear ¶ added in v0.12.0
func (sm *SubscriptionManager) Clear()
Clear removes all subscriptions
func (*SubscriptionManager) Count ¶ added in v0.12.0
func (sm *SubscriptionManager) Count() int
Count returns the number of active subscriptions
func (*SubscriptionManager) GetSubscriptions ¶ added in v0.12.0
func (sm *SubscriptionManager) GetSubscriptions() []string
GetSubscriptions returns a list of all subscribed URIs
func (*SubscriptionManager) IsSubscribed ¶ added in v0.12.0
func (sm *SubscriptionManager) IsSubscribed(uri string) bool
IsSubscribed checks if a URI is subscribed
func (*SubscriptionManager) Subscribe ¶ added in v0.12.0
func (sm *SubscriptionManager) Subscribe(uri string)
Subscribe adds a subscription for the given URI
func (*SubscriptionManager) Unsubscribe ¶ added in v0.12.0
func (sm *SubscriptionManager) Unsubscribe(uri string)
Unsubscribe removes a subscription for the given URI