Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
229
job.go758 B
package notify_job import ( "context" "log/slog" "go.uber.org/fx" "github.com/Southclaws/storyden/app/resources/message" "github.com/Southclaws/storyden/internal/infrastructure/pubsub" ) func runNotifyConsumer( ctx context.Context, lc fx.Lifecycle, logger *slog.Logger, bus *pubsub.Bus, ic *notifyConsumer, ) { lc.Append(fx.StartHook(func(hctx context.Context) error { _, err := pubsub.SubscribeCommand(hctx, bus, "notify_job.send_notification", func(ctx context.Context, cmd *message.CommandSendNotification) error { if err := ic.notify(ctx, cmd.TargetID, cmd.SourceID, cmd.Event, cmd.Item); err != nil { logger.Error("failed to notify", slog.String("error", err.Error())) return err } return nil }) return err })) }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Southclaws/storyden'

If you have feedback or need assistance with the MCP directory API, please join our Discord server