githubsrv

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name    = "github-mcp"
	Version = buildinfo.Version
)

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, logger *logging.Logger) (*server.MCPServer, error)

Types

type Config

type Config struct {
	Token        string
	BaseURL      string
	AllowedRepos []string
	MaxItems     int
	MinInterval  time.Duration
	Timeout      time.Duration
	AllowHTTP    bool
	AllowPrivate bool
}

func LoadConfig

func LoadConfig() (Config, error)

type Service

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

func (*Service) GetIssue

func (s *Service) GetIssue(ctx context.Context, repo string, number int) (map[string]any, error)

func (*Service) ListIssues

func (s *Service) ListIssues(ctx context.Context, repo, state string, limit int) ([]map[string]any, error)

func (*Service) ListPullRequests

func (s *Service) ListPullRequests(ctx context.Context, repo, state string, limit int) ([]map[string]any, error)

Jump to

Keyboard shortcuts

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