21ae94dbf6
Build and Test Go Project / build (macos-latest) (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (actions) (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
Add MCP resource templates that expose Agent Skills (per agentskills.io
spec) from GitHub repositories via the skill:// URI scheme.
Resource templates:
- skill://{owner}/{repo}/{skill_name}/SKILL.md — fetch skill content
- skill://{owner}/{repo}/{skill_name}/_manifest — JSON manifest with
repo:// URIs for each file, composing with existing repo:// resources
Discovery uses the Git Trees API to find SKILL.md files under known
paths (.github/skills/, skills/, .copilot/skills/).
Completions support for owner, repo (reusing existing resolvers), and
skill_name (discovers skills via tree search).
Registered under a new non-default 'skills' toolset. Enable with
--toolsets=skills or --toolsets=default,skills.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
24 lines
759 B
Go
24 lines
759 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),
|
|
|
|
// Skill resources
|
|
GetSkillResourceContent(t),
|
|
GetSkillResourceManifest(t),
|
|
}
|
|
}
|