Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
cli.go800 B
package script import ( "context" "fmt" "os" "os/signal" _ "github.com/joho/godotenv/autoload" "go.uber.org/fx" "github.com/Southclaws/storyden/app/resources" "github.com/Southclaws/storyden/app/services" "github.com/Southclaws/storyden/internal/config" "github.com/Southclaws/storyden/internal/infrastructure" ) // Run is a quick helper for writing scripts that use services. func Run(opts ...fx.Option) { ctx, cf := signal.NotifyContext(context.Background(), os.Interrupt) defer cf() all := append(opts, []fx.Option{ fx.NopLogger, fx.Provide(func() context.Context { return ctx }), config.Build(), infrastructure.Build(), services.Build(), resources.Build(), }...) app := fx.New(all...) if err := app.Start(ctx); err != nil { fmt.Println(err) os.Exit(1) } }

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