~ 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
101 lines · 3.5 KB Raw History
{
	"$type": "place.hud.view",
	"method": "dev.knotless.listNotifications",
	"app": "knotless",
	"service": "did:web:knotless.dev#knotless_appview",
	"description": "Your knotless notifications, the latest first; signed in only (params: { kind?: \"mentions\", \"reviews\", \"comments\", \"pulls-and-issues\", \"checks\" or \"stars-and-follows\" })",
	"launch": [{ "title": "Notifications" }],
	"signIn": "Sign in to see your notifications",
	"origins": ["https://cdn.bsky.app", "https://knotless.dev"],
	"thumbnails": [{ "from": "https://cdn.bsky.app/img/avatar/plain/", "to": "https://cdn.bsky.app/img/avatar_thumbnail/plain/" }],
	"query": {
		"items": "notifications",
		"cursor": "cursor",
		"latest": "uri",
		"summary": { "noun": ["notification", "notifications"], "label": { "$": ["title", "reason"] } },
		"layout": {
			"component": "List",
			"props": { "items": { "$": "items" }, "style": "rows", "empty": "No notifications yet", "open": false },
			"children": [
				{
					"component": "Row",
					"props": { "gap": "sm", "align": "center" },
					"children": [
						{ "component": "Image", "props": { "src": { "$": "author.avatar" }, "alt": { "$": "author.handle" }, "size": "avatar" } },
						{
							"component": "Link",
							"props": { "label": { "$": "author.handle" }, "href": { "$": "author.did" } }
						},
						{
							"component": "Text",
							"props": {
								"value": { "$": "reason" },
								"style": "muted",
								"words": {
									"star": "starred",
									"follow": "followed you",
									"pull": "opened a pull on",
									"issue": "opened an issue on",
									"comment": "commented on",
									"mention": "mentioned you in",
									"review-requested": "asked you to review",
									"assigned": "assigned you",
									"invite": "invited you to an organization",
									"checks-failed": "checks failed on",
									"ejected": "the merge queue turned away",
									"subscribed": "commented on",
									"watching": "did something on"
								}
							}
						},
						{
							"component": "Link",
							"props": {
								"label": { "$": "title" },
								"open": {
									"query": "dev.knotless.getThread",
									"params": {
										"repo": { "$atUri": [{ "$": "repo.did" }, "dev.knotless.repo", { "$": "repo.name" }] },
										"uri": { "$": "reasonSubject" },
										"filesOnly": true
									}
								}
							}
						},
						{
							"component": "State",
							"props": { "value": { "$": "subjectState" }, "roles": { "open": "open-issue", "merged": "merged", "closed": "closed-issue" }, "style": "mark" }
						},
						{
							"component": "State",
							"props": {
								"value": { "$": "verdict" },
								"roles": { "approve": "success", "changes": "failure" },
								"words": { "approve": "Approved", "changes": "Changes asked" }
							}
						}
					]
				},
				{
					"component": "Row",
					"props": { "gap": "sm", "align": "center" },
					"children": [
						{
							"component": "Link",
							"props": {
								"label": { "$": "repo.name" },
								"open": {
									"query": "dev.knotless.getRepo",
									"params": { "repo": { "$atUri": [{ "$": "repo.did" }, "dev.knotless.repo", { "$": "repo.name" }] } }
								}
							}
						},
						{ "component": "Text", "props": { "value": { "$": "repo.handle" }, "prefix": "by ", "style": "muted" } },
						{ "component": "Time", "props": { "value": { "$": "createdAt" } } }
					]
				},
				{ "component": "Text", "props": { "value": { "$": "text" }, "style": "muted", "clamp": 3 } }
			]
		}
	}
}