{"modulePath":"github.com/github/github-mcp-server/v2","version":"v2.3.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package githubapp\n\nPackage githubapp provides GitHub App installation access tokens.\n\n## Types\n\n```go\ntype Config struct {\n\t// AppID is used as the JWT issuer. GitHub accepts an app ID or client ID.\n\tAppID string\n\n\t// InstallationID identifies the installation whose access token is minted.\n\tInstallationID string\n\n\t// PrivateKeyPEM is the RSA key used to sign app JWTs.\n\tPrivateKeyPEM []byte\n\n\t// BaseRESTURL is the REST API base, e.g. https://api.github.com/ for\n\t// github.com or https://HOST/api/v3/ for GitHub Enterprise Server.\n\tBaseRESTURL string\n}\n```\nConfig describes a GitHub App installation used for server-to-server auth.\n\n```go\ntype Provider struct {\n\t// contains filtered or unexported fields\n}\n```\nProvider caches and refreshes GitHub App installation access tokens.\n\n```go\nfunc NewProvider(cfg Config, logger *slog.Logger) (*Provider, error)\n```\n\n```go\nfunc (p *Provider) AccessToken() string\n```\nAccessToken returns a cached token or refreshes it before expiry.\n\n","path":"github.com/github/github-mcp-server/v2/internal/githubapp","name":"githubapp","synopsis":"Package githubapp provides GitHub App installation access tokens.","isRedistributable":true}
