~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0
107 lines · 4.0 KB Raw History
{
	"$type": "place.hud.view",
	"collection": "site.standard.document",
	"app": "standard.site",
	"activity": "Published",
	"profile": { "title": "Blog", "limit": 3 },
	"description": "Blog posts (standard.site documents)",
	"pageSize": 12,
	"origins": ["https://cdn.bsky.app", "https://video.bsky.app", "https://video.cdn.bsky.app"],
	"thumbnails": [{ "from": "https://cdn.bsky.app/img/avatar/plain/", "to": "https://cdn.bsky.app/img/avatar_thumbnail/plain/" }],
	"list": {
		"join": [{ "as": "pub", "ref": "value.site", "collection": "site.standard.publication" }],
		"summary": { "noun": ["post", "posts"], "label": { "$": "value.title" } },
		"layout": {
			"component": "Stack",
			"props": { "gap": "md" },
			"children": [
				{
					"component": "Header",
					"props": {
						"title": { "$": ["records.0.joins.pub.value.name", "handle", "did"] },
						"subtitle": { "$": "records.0.joins.pub.value.description" },
						"image": { "$": "records.0.joins.pub.value.icon" },
						"meta": [{ "$": ["handle", "did"] }]
					}
				},
				{
					"component": "List",
					"props": { "items": { "$": "records" }, "style": "cards" },
					"children": [
						{ "component": "Image", "props": { "src": { "$": "value.coverImage" }, "fit": "cover" } },
						{ "component": "Text", "props": { "value": { "$": "value.title" }, "style": "heading" } },
						{ "component": "Text", "props": { "value": { "$": "value.description" }, "style": "muted", "clamp": 3 } },
						{ "component": "Time", "props": { "value": { "$": "value.publishedAt" } } },
						{
							"component": "List",
							"props": { "items": { "$": "value.tags" }, "style": "inline" },
							"children": [{ "component": "Badge", "props": { "value": { "$": "." } } }]
						}
					]
				}
			]
		}
	},
	"record": {
		"join": [
			{ "as": "pub", "ref": "value.site", "collection": "site.standard.publication" },
			{
				"as": "replies",
				"query": "app.bsky.feed.getPostThread",
				"params": { "uri": { "$": "value.bskyPostRef.uri" }, "depth": 1, "parentHeight": 0 },
				"say": { "noun": ["reply on Bluesky", "replies on Bluesky"], "count": "thread.replies" }
			}
		],
		"summary": { "noun": ["post", "posts"], "label": { "$": "value.title" } },
		"layout": {
			"component": "Stack",
			"props": { "gap": "md" },
			"children": [
				{
					"component": "Header",
					"props": {
						"kicker": { "$": "joins.pub.value.name" },
						"title": { "$": "value.title" },
						"subtitle": { "$": "value.description" },
						"image": { "$": "value.coverImage" },
						"meta": [{ "$": ["handle", "did"] }]
					}
				},
				{ "component": "Time", "props": { "value": { "$": "value.publishedAt" } } },
				{
					"component": "Document",
					"props": { "value": { "$": "value.content" }, "fallback": { "$": "value.textContent" } }
				},
				{
					"component": "List",
					"props": {
						"items": { "$": "joins.replies.thread.replies" },
						"title": "Replies on Bluesky",
						"style": "rows",
						"open": { "query": "app.bsky.feed.getPostThread", "params": { "uri": { "$": "post.uri" } } }
					},
					"children": [
						{
							"component": "Row",
							"props": { "gap": "sm", "align": "center" },
							"children": [
								{ "component": "Image", "props": { "src": { "$": "post.author.avatar" }, "alt": { "$": "post.author.handle" }, "size": "avatar" } },
								{ "component": "Link", "props": { "href": { "$": "post.author.did" }, "label": { "$": ["post.author.displayName", "post.author.handle"] } } },
								{ "component": "Time", "props": { "value": { "$": "post.record.createdAt" } } }
							]
						},
						{ "component": "Text", "props": { "value": { "$": "post.record.text" }, "clamp": 4 } },
						{
							"component": "Row",
							"props": { "gap": "md", "align": "center" },
							"children": [
								{ "component": "Stat", "props": { "value": { "$": "post.likeCount" }, "icon": "heart", "label": "likes" } },
								{ "component": "Stat", "props": { "value": { "$": "post.replyCount" }, "icon": "reply", "label": "replies" } }
							]
						}
					]
				}
			]
		}
	}
}