Versions in this module Expand all Collapse all v2 v2.0.2 Oct 8, 2026 v2.0.1 Oct 7, 2026 Changes in this version + var ErrBadAuthorizationHeader = fmt.Errorf("%w: Authorization header is badly formatted", mark.ErrBadRequest) + var ErrMissingAuthorizationHeader = fmt.Errorf("%w: missing required Authorization header", mark.ErrBadRequest) + var ErrUnsupportedAuthorizationHeader = fmt.Errorf("%w: unsupported Authorization header", mark.ErrBadRequest) + func NewToolResultAwaitingFormSubmission(message string) *mcp.CallToolResult + func NewToolResultError(message string) *mcp.CallToolResult + func NewToolResultErrorFromErr(message string, err error) *mcp.CallToolResult + func NewToolResultResource(message string, contents *mcp.ResourceContents) *mcp.CallToolResult + func NewToolResultResourceLink(message string, link *mcp.ResourceLink) *mcp.CallToolResult + func NewToolResultText(message string) *mcp.CallToolResult + type APIHost struct + func (a APIHost) AuthorizationServerURL(_ context.Context) (*url.URL, error) + func (a APIHost) BaseRESTURL(_ context.Context) (*url.URL, error) + func (a APIHost) GraphqlURL(_ context.Context) (*url.URL, error) + func (a APIHost) RawURL(_ context.Context) (*url.URL, error) + func (a APIHost) UploadURL(_ context.Context) (*url.URL, error) + type APIHostResolver interface + AuthorizationServerURL func(ctx context.Context) (*url.URL, error) + BaseRESTURL func(ctx context.Context) (*url.URL, error) + GraphqlURL func(ctx context.Context) (*url.URL, error) + RawURL func(ctx context.Context) (*url.URL, error) + UploadURL func(ctx context.Context) (*url.URL, error) + func NewAPIHost(s string) (APIHostResolver, error) + type HostType int + const HostTypeDotcom + const HostTypeGHEC + const HostTypeGHES + func ParseHostType(s string) (HostType, error) + type TokenType int + const TokenTypeFineGrainedPersonalAccessToken + const TokenTypeOAuthAccessToken + const TokenTypePersonalAccessToken + const TokenTypeServerToServerGitHubAppToken + const TokenTypeUnknown + const TokenTypeUserToServerGitHubAppToken + func ParseAuthorizationHeader(req *http.Request) (tokenType TokenType, token string, _ error) Other modules containing this package github.com/github/github-mcp-server