We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a77a25 commit 6ed3ac7Copy full SHA for 6ed3ac7
pkg/github/ui_resources.go
@@ -20,6 +20,16 @@ func RegisterUIResources(s *mcp.Server) {
20
},
21
func(_ context.Context, _ *mcp.ReadResourceRequest) (*mcp.ReadResourceResult, error) {
22
return &mcp.ReadResourceResult{
23
+ // MCP Apps UI metadata - CSP configuration to allow loading GitHub avatars
24
+ // See: https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/draft/apps.mdx
25
+ Meta: mcp.Meta{
26
+ "ui": map[string]any{
27
+ "csp": map[string]any{
28
+ // Allow loading images from GitHub's avatar CDN
29
+ "resourceDomains": []string{"https://avatars.githubusercontent.com"},
30
+ },
31
32
33
Contents: []*mcp.ResourceContents{
34
{
35
URI: GetMeUIResourceURI,
0 commit comments