MCPcopy Create free account
hub / github.com/diillson/chatcli / RegisterRemotePlugin

Method RegisterRemotePlugin

cli/plugins/manager.go:231–235  ·  view source on GitHub ↗

RegisterRemotePlugin registers a remote plugin in the manager without saving to disk. This allows remote plugins to be discoverable via GetPlugin/GetPlugins.

(plugin Plugin)

Source from the content-addressed store, hash-verified

229// RegisterRemotePlugin registers a remote plugin in the manager without saving to disk.
230// This allows remote plugins to be discoverable via GetPlugin/GetPlugins.
231func (m *Manager) RegisterRemotePlugin(plugin Plugin) {
232 m.mu.Lock()
233 defer m.mu.Unlock()
234 m.plugins[plugin.Name()] = plugin
235}
236
237// ClearRemotePlugins removes all remote plugins (identified by Path() == "[remote]").
238func (m *Manager) ClearRemotePlugins() {

Callers 1

Implementers 2

MockTokenManagerllm/token/mock_token_manager.go
TokenManagerllm/token/token_manager.go

Calls 3

LockMethod · 0.80
UnlockMethod · 0.80
NameMethod · 0.65

Tested by

no test coverage detected