76df58ca3e
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
Build and Test Go Project / build (macos-latest) (push) Has been cancelled
Build and Test Go Project / build (ubuntu-latest) (push) Has been cancelled
Build and Test Go Project / build (windows-latest) (push) Has been cancelled
Consolidate the issue resource into a single ResourceContents item containing the issue body, frontmatter metadata, and all comments separated by --- delimiters. - Return one markdown file instead of multiple content items - Use .md extension in URI template for editor preview support - Convert HTML <img> tags to markdown image syntax - Keep original image URLs (private images won't render in preview) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
23 lines
728 B
Go
23 lines
728 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),
|
|
|
|
// Issue resources
|
|
GetIssueResourceContent(t),
|
|
}
|
|
}
|