~ 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
154 lines · 6.3 KB Raw History
{
	"$type": "place.hud.view",
	"method": "app.bsky.feed.getAuthorFeed",
	"app": "Bluesky",
	"profile": { "title": "Bluesky", "params": { "actor": { "$actor": "did" }, "filter": "posts_no_replies", "limit": 3 } },
	"service": "did:web:api.bsky.app#bsky_appview",
	"description": "A Bluesky account's posts and reposts, from the AppView",
	"launch": [{ "title": "Posts", "params": { "actor": { "$me": "did" }, "filter": "posts_no_replies" } }],
	"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/" }],
	"query": {
		"items": "feed",
		"cursor": "cursor",
		"latest": "post.uri",
		"summary": { "noun": ["post", "posts"], "label": { "$": "post.record.text" } },
		"layout": {
			"component": "List",
			"props": { "items": { "$": "items" }, "style": "rows", "open": { "query": "app.bsky.feed.getPostThread", "params": { "uri": { "$": "post.uri" } } } },
			"children": [
				{
					"component": "FeedContext",
					"props": { "item": { "$": "." }, "open": { "query": "app.bsky.feed.getPostThread", "params": { "uri": { "$": "post.uri" } } } },
					"children": [
						{
							"component": "Row",
							"props": { "gap": "sm", "align": "start" },
							"children": [
								{ "component": "Image", "props": { "src": { "$": "post.author.avatar" }, "alt": { "$": "post.author.handle" }, "size": "face" } },
								{
									"component": "Stack",
									"props": { "gap": "sm" },
									"children": [
										{
											"component": "Row",
											"props": { "gap": "xs", "align": "center", "wrap": "cut" },
											"children": [
												{
													"component": "Link",
													"props": { "href": { "$": "post.author.did" }, "label": { "$": ["post.author.displayName", "post.author.handle"] } }
												},
												{ "component": "Text", "props": { "value": { "$": "post.author.handle" }, "style": "muted", "prefix": "@" } },
												{ "component": "Text", "props": { "value": "·", "style": "muted" } },
												{ "component": "Time", "props": { "value": { "$": "post.record.createdAt" } } }
											]
										},
										{ "component": "RichText", "props": { "value": { "$": "post.record.text" }, "format": "facets", "facets": { "$": "post.record.facets" } } },
										{ "component": "Embed", "props": { "value": { "$": "post.embed" }, "did": { "$": "post.author.did" }, "uri": { "$": "post.uri" } } },
										{
											"component": "Row",
											"props": { "gap": "lg", "align": "center" },
											"children": [
												{ "component": "Stat", "props": { "value": { "$": "post.replyCount" }, "icon": "reply", "label": "replies" } },
												{
													"component": "Action",
													"props": {
														"label": "Repost",
														"icon": "repost",
														"count": { "$": "post.repostCount" },
														"done": "Reposted",
														"create": {
															"collection": "app.bsky.feed.repost",
															"record": { "subject": { "$strongRef": "post" }, "createdAt": { "$now": true } }
														},
														"existing": { "$": "post.viewer.repost" }
													}
												},
												{
													"component": "Action",
													"props": {
														"label": "Like",
														"icon": "heart",
														"count": { "$": "post.likeCount" },
														"done": "Liked",
														"create": { "collection": "app.bsky.feed.like", "record": { "subject": { "$strongRef": "post" }, "createdAt": { "$now": true } } },
														"existing": { "$": "post.viewer.like" }
													}
												}
											]
										}
									]
								}
							]
						}
					]
				},
				{
					"component": "Row",
					"props": { "gap": "sm", "align": "start" },
					"children": [
						{ "component": "Image", "props": { "src": { "$": "post.author.avatar" }, "alt": { "$": "post.author.handle" }, "size": "face" } },
						{
							"component": "Stack",
							"props": { "gap": "sm" },
							"children": [
								{
									"component": "Row",
									"props": { "gap": "xs", "align": "center", "wrap": "cut" },
									"children": [
										{
											"component": "Link",
											"props": { "href": { "$": "post.author.did" }, "label": { "$": ["post.author.displayName", "post.author.handle"] } }
										},
										{ "component": "Text", "props": { "value": { "$": "post.author.handle" }, "style": "muted", "prefix": "@" } },
										{ "component": "Text", "props": { "value": "·", "style": "muted" } },
										{ "component": "Time", "props": { "value": { "$": "post.record.createdAt" } } }
									]
								},
								{
									"component": "FeedContext",
									"props": {
										"item": { "$": "." },
										"part": "replyTo",
										"open": { "query": "app.bsky.feed.getPostThread", "params": { "uri": { "$": "post.uri" } } }
									}
								},
								{ "component": "RichText", "props": { "value": { "$": "post.record.text" }, "format": "facets", "facets": { "$": "post.record.facets" } } },
								{ "component": "Embed", "props": { "value": { "$": "post.embed" }, "did": { "$": "post.author.did" }, "uri": { "$": "post.uri" } } },
								{
									"component": "Row",
									"props": { "gap": "lg", "align": "center" },
									"children": [
										{ "component": "Stat", "props": { "value": { "$": "post.replyCount" }, "icon": "reply", "label": "replies" } },
										{
											"component": "Action",
											"props": {
												"label": "Repost",
												"icon": "repost",
												"count": { "$": "post.repostCount" },
												"done": "Reposted",
												"create": { "collection": "app.bsky.feed.repost", "record": { "subject": { "$strongRef": "post" }, "createdAt": { "$now": true } } },
												"existing": { "$": "post.viewer.repost" }
											}
										},
										{
											"component": "Action",
											"props": {
												"label": "Like",
												"icon": "heart",
												"count": { "$": "post.likeCount" },
												"done": "Liked",
												"create": { "collection": "app.bsky.feed.like", "record": { "subject": { "$strongRef": "post" }, "createdAt": { "$now": true } } },
												"existing": { "$": "post.viewer.like" }
											}
										}
									]
								}
							]
						}
					]
				}
			]
		}
	}
}