summaryrefslogtreecommitdiff
path: root/internal/slashcommands/syncer.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/slashcommands/syncer.go')
-rw-r--r--internal/slashcommands/syncer.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/slashcommands/syncer.go b/internal/slashcommands/syncer.go
index 1268e7b..674b974 100644
--- a/internal/slashcommands/syncer.go
+++ b/internal/slashcommands/syncer.go
@@ -30,7 +30,8 @@ type Syncer struct {
// NewSyncer creates a new syncer and validates the commands directory.
// Returns error if directory cannot be created or is not writable.
-func NewSyncer(cfg appconfig.App) (*Syncer, error) {
+// It depends only on the MCP subsystem config rather than the whole App.
+func NewSyncer(cfg appconfig.MCPConfig) (*Syncer, error) {
if !cfg.MCPSlashCommandSync {
return &Syncer{enabled: false}, nil
}