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

Function AllResources

pkg/github/resources.go:10–19  ·  view source on GitHub ↗

AllResources returns all resource templates with their embedded toolset metadata. Resource definitions are stateless - handlers are generated on-demand during registration.

(t translations.TranslationHelperFunc)

Source from the content-addressed store, hash-verified

8// AllResources returns all resource templates with their embedded toolset metadata.
9// Resource definitions are stateless - handlers are generated on-demand during registration.
10func AllResources(t translations.TranslationHelperFunc) []inventory.ServerResourceTemplate {
11 return []inventory.ServerResourceTemplate{
12 // Repository resources
13 GetRepositoryResourceContent(t),
14 GetRepositoryResourceBranchContent(t),
15 GetRepositoryResourceCommitContent(t),
16 GetRepositoryResourceTagContent(t),
17 GetRepositoryResourcePrContent(t),
18 }
19}

Callers 4

buildStaticInventoryFunction · 0.92
NewInventoryFunction · 0.85

Tested by 2