bab6b7c971
Build and Test Go Project / build (ubuntu-latest) (push) Has been cancelled
Build and Test Go Project / build (windows-latest) (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
Docker / build (push) Has been cancelled
Build and Test Go Project / build (macos-latest) (push) Has been cancelled
GoReleaser Release / release (push) Has been cancelled
License Check / license-check (push) Has been cancelled
Publish to MCP Registry / publish (push) Has been cancelled
Update remaining references to 'registry' in code comments to use 'inventory' consistently after the package rename.
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),
|
|
}
|
|
}
|