MCPcopy
hub / github.com/github/github-mcp-server / GetClient

Method GetClient

pkg/github/dependencies.go:78–78  ·  view source on GitHub ↗

GetClient returns a GitHub REST API client

(ctx context.Context)

Source from the content-addressed store, hash-verified

76type ToolDependencies interface {
77 // GetClient returns a GitHub REST API client
78 GetClient(ctx context.Context) (*gogithub.Client, error)
79
80 // GetGQLClient returns a GitHub GraphQL client
81 GetGQLClient(ctx context.Context) (*githubv4.Client, error)

Callers 15

GetCommitFunction · 0.65
ListCommitsFunction · 0.65
ListBranchesFunction · 0.65
CreateOrUpdateFileFunction · 0.65
CreateRepositoryFunction · 0.65
GetFileContentsFunction · 0.65
ForkRepositoryFunction · 0.65
DeleteFileFunction · 0.65
CreateBranchFunction · 0.65
PushFilesFunction · 0.65
ListTagsFunction · 0.65
GetTagFunction · 0.65

Implementers 3

stubDepspkg/github/server_test.go
BaseDepspkg/github/dependencies.go
RequestDepspkg/github/dependencies.go

Calls

no outgoing calls

Tested by

no test coverage detected