MCPcopy Index your code
hub / github.com/github/github-mcp-server / GetRepositoryResourceContent

Function GetRepositoryResourceContent

pkg/github/repository_resource.go:34–45  ·  view source on GitHub ↗

GetRepositoryResourceContent defines the resource template for getting repository content.

(t translations.TranslationHelperFunc)

Source from the content-addressed store, hash-verified

32
33// GetRepositoryResourceContent defines the resource template for getting repository content.
34func GetRepositoryResourceContent(t translations.TranslationHelperFunc) inventory.ServerResourceTemplate {
35 return inventory.NewServerResourceTemplate(
36 ToolsetMetadataRepos,
37 mcp.ResourceTemplate{
38 Name: "repository_content",
39 URITemplate: repositoryResourceContentURITemplate.Raw(),
40 Description: t("RESOURCE_REPOSITORY_CONTENT_DESCRIPTION", "Repository Content"),
41 Icons: octicons.Icons("repo"),
42 },
43 repositoryResourceContentsHandlerFunc(repositoryResourceContentURITemplate),
44 )
45}
46
47// GetRepositoryResourceBranchContent defines the resource template for getting repository content for a branch.
48func GetRepositoryResourceBranchContent(t translations.TranslationHelperFunc) inventory.ServerResourceTemplate {

Callers 1

AllResourcesFunction · 0.85

Calls 3

IconsFunction · 0.92

Tested by

no test coverage detected