programs

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ListPrograms = "list_programs"
)

Variables

View Source
var ListProgramsTool = mcp.NewTool(ListPrograms,
	mcp.WithDescription("List programs of an enterprise"),
	mcp.WithNumber(
		"enterprise_id",
		mcp.Description("Enterprise ID"),
		mcp.Required(),
	),
	mcp.WithString(
		"type",
		mcp.Description("Filter type (joined: joined programs, assigned: assigned programs, created: created programs, only_star: starred programs)"),
		mcp.Enum("joined", "assigned", "created", "only_star"),
	),
	mcp.WithString(
		"sort",
		mcp.Description("Sort field (created_at: creation time, updated_at: update time, users_count: member count, projects_count: repository count, issues_count: task count, accessed_at: access time, name: program name)"),
		mcp.Enum("created_at", "updated_at", "users_count", "projects_count", "issues_count", "accessed_at", "name"),
	),
	mcp.WithBoolean(
		"priority_topped",
		mcp.Description("Whether to sort by priority first"),
	),
	mcp.WithString(
		"direction",
		mcp.Description("Sort direction (asc: ascending, desc: descending)"),
		mcp.Enum("asc", "desc"),
	),
	mcp.WithString(
		"status",
		mcp.Description("Program status (0: start, 1: pause, 2: close), comma separated, e.g. 0,1"),
	),
	mcp.WithString(
		"category",
		mcp.Description("Program category (all: all, common: common, kanban: kanban), comma separated, e.g. common,kanban"),
	),
	mcp.WithString(
		"search",
		mcp.Description("Search parameter"),
	),
	mcp.WithString(
		"assignee_ids",
		mcp.Description("Program assignee IDs, comma separated"),
	),
	mcp.WithNumber(
		"page",
		mcp.Description("Current page number"),
		mcp.DefaultNumber(1),
	),
	mcp.WithNumber(
		"per_page",
		mcp.Description("Number of items per page, default 20"),
		mcp.DefaultNumber(20),
	),
)

Functions

func ListProgramsHandleFunc

func ListProgramsHandleFunc(ctx context.Context, request mcp.CallToolRequest, opts ...utils.Option) (*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