Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
229
mention.go865 B
package mention_job import ( "context" "github.com/Southclaws/opt" "github.com/Southclaws/storyden/app/resources/account" "github.com/Southclaws/storyden/app/resources/account/notification" "github.com/Southclaws/storyden/app/resources/datagraph" "github.com/Southclaws/storyden/app/services/notification/notify" ) type mentionConsumer struct { notifySender *notify.Notifier } func newMentionConsumer( notifySender *notify.Notifier, ) *mentionConsumer { return &mentionConsumer{ notifySender: notifySender, } } func (s *mentionConsumer) mention(ctx context.Context, by account.AccountID, source datagraph.Ref, item datagraph.Ref) error { switch item.Kind { case datagraph.KindProfile: s.notifySender.Send(ctx, account.AccountID(item.ID), opt.New(by), notification.EventProfileMention, &source) // TODO: Store mention in db } return nil }

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