mcp

package
v0.0.0-...-06a3cf6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(
	userID string,
	feedRegistry *feeds.Registry,
	logger *zerolog.Logger,
) http.Handler

Types

type ActivityOutput

type ActivityOutput struct {
	Title        string `json:"title" jsonschema:"The title of the activity"`
	Body         string `json:"body" jsonschema:"The main content or body text of the activity"`
	URL          string `json:"url" jsonschema:"The URL link to the original activity"`
	ShortSummary string `json:"shortSummary" jsonschema:"A brief summary of the activity"`
	CreatedAt    string `json:"createdAt" jsonschema:"The timestamp when the activity was created"`
}

type FeedOutput

type FeedOutput struct {
	UID        string   `json:"uid" jsonschema:"The unique identifier of the feed"`
	Name       string   `json:"name" jsonschema:"The display name of the feed"`
	Icon       string   `json:"icon" jsonschema:"The feed emoji character"`
	Query      string   `json:"query" jsonschema:"The search query or filter for more fine-grained feed"`
	SourceUids []string `json:"sourceUids" jsonschema:"The list of source IDs where the feed activities are pulled from"`
}

type GetFeedActivitiesInput

type GetFeedActivitiesInput struct {
	FeedUID string `json:"feedUid"`
	Limit   *int   `json:"limit,omitempty"`
}

type GetFeedActivitiesOutput

type GetFeedActivitiesOutput struct {
	Results []ActivityOutput `json:"results"`
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

type ListFeedsInput

type ListFeedsInput struct{}

type ListFeedsOutput

type ListFeedsOutput struct {
	Feeds []FeedOutput `json:"feeds" jsonschema:"The list of available feeds for the user"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL