Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListActionTasksImpl ¶
ListActionTasksImpl implements the read-only MCP tool for listing Forgejo Actions tasks. This is a safe, idempotent operation. Note: This feature is not supported by the official Forgejo SDK and requires a custom HTTP implementation.
func (ListActionTasksImpl) Definition ¶
func (ListActionTasksImpl) Definition() *mcp.Tool
Definition describes the `list_action_tasks` tool. It requires `owner` and `repo` and supports various optional parameters for filtering. It is marked as a safe, read-only operation.
func (ListActionTasksImpl) Handler ¶
func (impl ListActionTasksImpl) Handler() mcp.ToolHandlerFor[ListActionTasksParams, any]
Handler implements the logic for listing action tasks. It performs a custom HTTP GET request to the `/repos/{owner}/{repo}/actions/tasks` endpoint and formats the results into a markdown table.
type ListActionTasksParams ¶
type ListActionTasksParams struct {
// Owner is the username or organization name that owns the repository.
Owner string `json:"owner"`
// Repo is the name of the repository.
Repo string `json:"repo"`
// Page is the page number for pagination.
Page int `json:"page,omitempty"`
// Limit is the number of tasks to return per page.
Limit int `json:"limit,omitempty"`
}
ListActionTasksParams defines the parameters for the list_action_tasks tool. It includes basic pagination options for Forgejo Actions tasks.