File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments