Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
repo.go1.5 kB
package authentication import ( "context" "github.com/Southclaws/storyden/app/resources/account" "github.com/Southclaws/storyden/internal/ent" ) type Repository interface { // Create an auth method for a account. Create(ctx context.Context, userID account.AccountID, service Service, tokenType TokenType, identifier string, token string, metadata map[string]any, opts ...Option, ) (*Authentication, error) // Gets an auth method based on a service's external account ID. LookupByIdentifier(ctx context.Context, service Service, identifier string) (*Authentication, bool, error) // Gets an auth method for a specific account based on a token type and identifier. LookupByTokenType(ctx context.Context, accountID account.AccountID, tokenType TokenType, identifier string) (*Authentication, bool, error) // Gets all auth methods that a account has. GetAuthMethods(ctx context.Context, userID account.AccountID) ([]*Authentication, error) Update(ctx context.Context, id ID, options ...Option) (*Authentication, error) DeleteByID(ctx context.Context, userID account.AccountID, aid ID) (bool, error) Delete(ctx context.Context, userID account.AccountID, identifier string, service Service) (bool, error) } type Option func(*ent.AuthenticationMutation) func WithToken(token string) Option { return func(am *ent.AuthenticationMutation) { am.SetToken(token) } } func WithName(name string) Option { return func(am *ent.AuthenticationMutation) { am.SetName(name) } }

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