~ 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
108 lines · 3.6 KB Raw History
{
	"$type": "place.hud.view",
	"method": "app.bsky.notification.listNotifications",
	"app": "Bluesky",
	"service": "did:web:api.bsky.app#bsky_appview",
	"description": "Your Bluesky notifications, the latest first, with the posts they are about; signed in only (params: { limit?: up to 100, 25 for every liked post's words, reasons?: [\"like\", \"reply\", …] })",
	"launch": [{ "title": "Notifications", "params": { "limit": 25 } }],
	"signIn": "Sign in to see your notifications",
	"origins": ["https://cdn.bsky.app"],
	"thumbnails": [{ "from": "https://cdn.bsky.app/img/avatar/plain/", "to": "https://cdn.bsky.app/img/avatar_thumbnail/plain/" }],
	"query": {
		"items": "notifications",
		"cursor": "cursor",
		"summary": { "noun": ["notification", "notifications"], "label": { "$": "reason" } },
		"join": [
			{
				"as": "subjects",
				"query": "app.bsky.feed.getPosts",
				"params": { "uris": { "$each": ["response.notifications", "record.subject.uri"] } }
			}
		],
		"layout": {
			"component": "List",
			"props": {
				"items": { "$": "items" },
				"style": "rows",
				"empty": "No notifications yet",
				"open": { "$": "record.subject.uri" }
			},
			"children": [
				{
					"component": "Row",
					"props": { "gap": "md", "align": "start" },
					"children": [
						{ "component": "Image", "props": { "src": { "$": "author.avatar" }, "alt": { "$": "author.handle" }, "size": "avatar" } },
						{
							"component": "Stack",
							"props": { "gap": "xs" },
							"children": [
								{
									"component": "Row",
									"props": { "gap": "xs", "align": "center", "wrap": "cut" },
									"children": [
										{
											"component": "Link",
											"props": { "href": { "$": "author.did" }, "label": { "$": ["author.displayName", "author.handle"] } }
										},
										{ "component": "Time", "props": { "value": { "$": "indexedAt" } } }
									]
								},
								{
									"component": "Text",
									"props": {
										"value": { "$": "reason" },
										"style": "muted",
										"words": {
											"like": "liked your post",
											"repost": "reposted your post",
											"follow": "followed you",
											"mention": "mentioned you",
											"reply": "replied to you",
											"quote": "quoted your post",
											"starterpack-joined": "joined your starter pack",
											"verified": "verified you",
											"unverified": "removed their verification of you",
											"like-via-repost": "liked your repost",
											"repost-via-repost": "reposted your repost",
											"subscribed-post": "posted",
											"contact-match": "joined from your contacts"
										}
									}
								},
								{
									"component": "List",
									"props": {
										"items": { "$root": "joins.subjects.posts" },
										"where": { "uri": "record.subject.uri" },
										"limit": 1,
										"style": "inline",
										"open": false
									},
									"children": [{ "component": "Text", "props": { "value": { "$": "record.text" }, "style": "muted", "clamp": 3 } }]
								},
								{
									"component": "List",
									"props": {
										"items": { "$root": "response.notifications" },
										"where": { "uri": "uri" },
										"needs": "record.text",
										"limit": 1,
										"style": "inline"
									},
									"children": [
										{
											"component": "RichText",
											"props": { "value": { "$": "record.text" }, "format": "facets", "facets": { "$": "record.facets" }, "clamp": 6 }
										}
									]
								},
								{ "component": "Text", "props": { "value": { "$": "starterPack.record.name" }, "style": "muted" } }
							]
						}
					]
				}
			]
		}
	}
}