Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
link.go1.22 kB
package schema import ( "entgo.io/ent" "entgo.io/ent/schema/edge" "entgo.io/ent/schema/field" "github.com/rs/xid" ) type Link struct { ent.Schema } func (Link) Mixin() []ent.Mixin { return []ent.Mixin{Identifier{}, CreatedAt{}} } func (Link) Fields() []ent.Field { return []ent.Field{ field.String("url"). Unique(). Immutable(), field.String("slug"). Unique(). Immutable(), field.String("domain"), field.String("title"), field.String("description"), field.String("primary_asset_id"). GoType(xid.ID{}). Optional(). Nillable(), field.String("favicon_asset_id"). GoType(xid.ID{}). Optional(). Nillable(), } } func (Link) Edges() []ent.Edge { return []ent.Edge{ edge.To("posts", Post.Type). Comment("Link aggregation posts that have shared this link."), edge.To("post_content_references", Post.Type). Comment("Posts that reference this link in their content."), edge.To("nodes", Node.Type), edge.To("node_content_references", Node.Type), edge.To("primary_image", Asset.Type). Field("primary_asset_id"). Unique(), edge.To("favicon_image", Asset.Type). Field("favicon_asset_id"). Unique(), edge.To("assets", Asset.Type), } }

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