Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
slug.go829 B
package mark import ( "github.com/Southclaws/fault" "github.com/Southclaws/fault/fmsg" "github.com/Southclaws/fault/ftag" "github.com/gosimple/slug" ) var ErrInvalidSlug = fault.New("slug is not formed well", ftag.With(ftag.InvalidArgument)) // Slug is a type that represents a URL slug. Not the same as a Mark, which is a // more flexible identifier a slug is simply the URL-friendly version of a name. type Slug struct { slug string } func (s Slug) String() string { return s.slug } func NewSlug(s string) (*Slug, error) { if !slug.IsSlug(s) { return nil, fault.Wrap(ErrInvalidSlug, fmsg.WithDesc("invalid slug", "The specified slug is not valid, it must be a URL-friendly string without spaces.")) } return &Slug{ slug: s, }, nil } func NewSlugFromName(s string) Slug { return Slug{slug: slug.Make(s)} }

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