Skip to content

Commit 69579b2

Browse files
committed
fix avatar URL
1 parent be4c4c7 commit 69579b2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

pkg/github/ui_resources.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ func RegisterUIResources(s *mcp.Server) {
2222
func(_ context.Context, _ *mcp.ReadResourceRequest) (*mcp.ReadResourceResult, error) {
2323
html := MustGetUIAsset("get-me.html")
2424
return &mcp.ReadResourceResult{
25-
// MCP Apps UI metadata - CSP configuration to allow loading GitHub avatars
26-
// See: https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/draft/apps.mdx
27-
Meta: mcp.Meta{
28-
"ui": map[string]any{
29-
"csp": map[string]any{
30-
// Allow loading images from GitHub's avatar CDN
31-
"resourceDomains": []string{"https://avatars.githubusercontent.com"},
32-
},
33-
},
34-
},
3525
Contents: []*mcp.ResourceContents{
3626
{
3727
URI: GetMeUIResourceURI,
3828
MIMEType: "text/html",
3929
Text: html,
30+
// MCP Apps UI metadata - CSP configuration to allow loading GitHub avatars
31+
// See: https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/draft/apps.mdx
32+
Meta: mcp.Meta{
33+
"ui": map[string]any{
34+
"csp": map[string]any{
35+
// Allow loading images from GitHub's avatar CDN
36+
"resourceDomains": []string{"https://avatars.githubusercontent.com"},
37+
},
38+
},
39+
},
4040
},
4141
},
4242
}, nil

0 commit comments

Comments
 (0)