Documentation
¶
Index ¶
- Constants
- func New(ctx context.Context, logger *logging.Logger) (*server.MCPServer, error)
- type Config
- type Service
- func (s *Service) GetIssue(ctx context.Context, repo string, number int) (map[string]any, error)
- func (s *Service) ListIssues(ctx context.Context, repo, state string, limit int) ([]map[string]any, error)
- func (s *Service) ListPullRequests(ctx context.Context, repo, state string, limit int) ([]map[string]any, error)
Constants ¶
View Source
const ( Name = "github-mcp" Version = buildinfo.Version )
Variables ¶
This section is empty.
Functions ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.