~ 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
225 lines · 4.5 KB Raw History
{
	"$type": "place.hud.view",
	"method": "app.bsky.feed.searchPosts",
	"app": "Bluesky",
	"service": "did:web:api.bsky.app#bsky_appview",
	"description": "Bluesky posts matching a search, the newest first: a #tag, words, or from:handle (params: { q, sort?: \"latest\" or \"top\", tag?, author? }); signed in only",
	"signIn": "Sign in to search Bluesky",
	"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": "posts",
		"cursor": "cursor",
		"summary": {
			"noun": [
				"post",
				"posts"
			],
			"label": {
				"$": "record.text"
			}
		},
		"layout": {
			"component": "List",
			"props": {
				"items": {
					"$": "items"
				},
				"style": "rows",
				"empty": "No posts found",
				"open": {
					"query": "app.bsky.feed.getPostThread",
					"params": {
						"uri": {
							"$": "uri"
						}
					}
				}
			},
			"children": [
				{
					"component": "Row",
					"props": {
						"gap": "sm",
						"align": "start"
					},
					"children": [
						{
							"component": "Image",
							"props": {
								"src": {
									"$": "author.avatar"
								},
								"alt": {
									"$": "author.handle"
								},
								"size": "face"
							}
						},
						{
							"component": "Stack",
							"props": {
								"gap": "sm"
							},
							"children": [
								{
									"component": "Row",
									"props": {
										"gap": "xs",
										"align": "center",
										"wrap": "cut"
									},
									"children": [
										{
											"component": "Link",
											"props": {
												"href": {
													"$": "author.did"
												},
												"label": {
													"$": [
														"author.displayName",
														"author.handle"
													]
												}
											}
										},
										{
											"component": "Text",
											"props": {
												"value": {
													"$": "author.handle"
												},
												"style": "muted",
												"prefix": "@"
											}
										},
										{
											"component": "Text",
											"props": {
												"value": "·",
												"style": "muted"
											}
										},
										{
											"component": "Time",
											"props": {
												"value": {
													"$": "record.createdAt"
												}
											}
										}
									]
								},
								{
									"component": "RichText",
									"props": {
										"value": {
											"$": "record.text"
										},
										"format": "facets",
										"facets": {
											"$": "record.facets"
										}
									}
								},
								{
									"component": "Embed",
									"props": {
										"value": {
											"$": "embed"
										},
										"did": {
											"$": "author.did"
										},
										"uri": {
											"$": "uri"
										}
									}
								},
								{
									"component": "Row",
									"props": {
										"gap": "lg",
										"align": "center"
									},
									"children": [
										{
											"component": "Stat",
											"props": {
												"value": {
													"$": "replyCount"
												},
												"icon": "reply",
												"label": "replies"
											}
										},
										{
											"component": "Action",
											"props": {
												"label": "Repost",
												"icon": "repost",
												"count": {
													"$": "repostCount"
												},
												"done": "Reposted",
												"create": {
													"collection": "app.bsky.feed.repost",
													"record": {
														"subject": {
															"$strongRef": "."
														},
														"createdAt": {
															"$now": true
														}
													}
												},
												"existing": {
													"$": "viewer.repost"
												}
											}
										},
										{
											"component": "Action",
											"props": {
												"label": "Like",
												"icon": "heart",
												"count": {
													"$": "likeCount"
												},
												"done": "Liked",
												"create": {
													"collection": "app.bsky.feed.like",
													"record": {
														"subject": {
															"$strongRef": "."
														},
														"createdAt": {
															"$now": true
														}
													}
												},
												"existing": {
													"$": "viewer.like"
												}
											}
										}
									]
								}
							]
						}
					]
				}
			]
		}
	}
}