diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-02 14:17:57 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-02 14:17:57 +0200 |
| commit | 0928e675046fa5b4d4f2b030e7054cf91e864c41 (patch) | |
| tree | 9f207876442ef3c0c7cf9517aa6072532f645ff8 /internal/hexaimcp/run.go | |
| parent | e3ca5e372ce41c5c916c6d833813299cd8a48afa (diff) | |
mcp: depend on SlashCommandSyncer interface instead of concrete type (task 410)
Diffstat (limited to 'internal/hexaimcp/run.go')
| -rw-r--r-- | internal/hexaimcp/run.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/hexaimcp/run.go b/internal/hexaimcp/run.go index 23faa08..b6fed8c 100644 --- a/internal/hexaimcp/run.go +++ b/internal/hexaimcp/run.go @@ -26,11 +26,11 @@ type ServerFactory func( w io.Writer, logger *log.Logger, store promptstore.PromptStore, - syncer *slashcommands.Syncer, + syncer mcp.SlashCommandSyncer, ) ServerRunner // defaultServerFactory is the production server factory. -func defaultServerFactory(r io.Reader, w io.Writer, logger *log.Logger, store promptstore.PromptStore, syncer *slashcommands.Syncer) ServerRunner { +func defaultServerFactory(r io.Reader, w io.Writer, logger *log.Logger, store promptstore.PromptStore, syncer mcp.SlashCommandSyncer) ServerRunner { return mcp.NewServer(r, w, logger, store, syncer) } |
