tools

package
v0.0.0-...-d2db6d7 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGithubTool

func NewGithubTool(server *mcp.Server)

Types

type GithubTool

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

func (*GithubTool) ListUserRepos

type GithubToolInput

type GithubToolInput struct {
	UserName string `json:"user_name" jsonschema:"The GitHub username to interact with."`
	PerPage  *int   `json:"per_page,omitempty" jsonschema:"The number of items to return per page."`
	MaxPages *int   `json:"max_pages,omitempty" jsonschema:"The maximum number of pages to return."`
}

func (*GithubToolInput) GetMaxPages

func (i *GithubToolInput) GetMaxPages() int

func (*GithubToolInput) GetPerPage

func (i *GithubToolInput) GetPerPage() int

type ListUserPullRequestsInput

type ListUserPullRequestsInput struct {
	GithubToolInput
	RepoName string `json:"repo_name" jsonschema:"The name of the repository to list pull requests from." jsonschema_extras:"example=Hello-World"`
	State    string `json:"state" jsonschema:"The state of the pull requests to list (open, closed, all)." jsonschema_extras:"example=open"`
}

type ListUserPullRequestsOutput

type ListUserPullRequestsOutput struct {
	PullRequests []string `json:"pull_requests" jsonschema:"The list of pull request urls."`
}

type ListUserReposInput

type ListUserReposInput struct {
	GithubToolInput
	Type string `json:"type" jsonschema:"The type of repositories to list." jsonschema_extras:"example=owner"`
	Sort string `json:"sort" jsonschema:"The sorting method for the repositories." jsonschema_extras:"example=created"`
}

type ListUserReposOutput

type ListUserReposOutput struct {
	Repositories []string `json:"repositories" jsonschema:"The list of repository names."`
}

Jump to

Keyboard shortcuts

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