notifications

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ListUserNotifications is the instruction to list user notifications
	ListUserNotifications = "list_user_notifications"
)

Variables

View Source
var ListUserNotificationsTool = mcp.NewTool(
	ListUserNotifications,
	mcp.WithDescription("List all notifications for authorized user"),
	mcp.WithBoolean(
		"unread",
		mcp.Description("Only list unread notifications"),
		mcp.DefaultBool(false),
	),
	mcp.WithBoolean(
		"participating",
		mcp.Description("Only list notifications where the user is directly participating or mentioned"),
		mcp.DefaultBool(false),
	),
	mcp.WithString(
		"type",
		mcp.Description("Filter notifications of a specified type, all: all, event: event notification, referer: @ notification"),
		mcp.Enum("all", "event", "referer"),
		mcp.DefaultString("all"),
	),
	mcp.WithString(
		"since",
		mcp.Description("Only list notifications updated after the given time, requiring the time format to be ISO 8601"),
	),
	mcp.WithString(
		"before",
		mcp.Description("Only list notifications updated before the given time, requiring the time format to be ISO 8601"),
	),
	mcp.WithNumber(
		"page",
		mcp.Description("Page number"),
		mcp.DefaultNumber(1),
	),
	mcp.WithNumber(
		"per_page",
		mcp.Description("Number of results per page"),
		mcp.DefaultNumber(20),
	),
)

Functions

func ListUserNotificationsHandler

func ListUserNotificationsHandler(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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