20 lines
676 B
Go
20 lines
676 B
Go
package github
|
|
|
|
import (
|
|
"github.com/github/github-mcp-server/pkg/inventory"
|
|
"github.com/github/github-mcp-server/pkg/translations"
|
|
)
|
|
|
|
// AllResources returns all resource templates with their embedded toolset metadata.
|
|
// Resource definitions are stateless - handlers are generated on-demand during registration.
|
|
func AllResources(t translations.TranslationHelperFunc) []inventory.ServerResourceTemplate {
|
|
return []inventory.ServerResourceTemplate{
|
|
// Repository resources
|
|
GetRepositoryResourceContent(t),
|
|
GetRepositoryResourceBranchContent(t),
|
|
GetRepositoryResourceCommitContent(t),
|
|
GetRepositoryResourceTagContent(t),
|
|
GetRepositoryResourcePrContent(t),
|
|
}
|
|
}
|