~ 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
45 lines · 1.7 KB Raw History
{
	"$type": "place.hud.view",
	"method": "chat.bsky.convo.getConvoForMembers",
	"app": "Bluesky Chat",
	"service": "did:web:api.bsky.chat#bsky_chat",
	"description": "Your Bluesky chat with someone, started if there is none yet, its latest messages, to read and answer; signed in only (params: { members: [a DID] })",
	"signIn": "Sign in to message people",
	"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": {
		"join": [
			{
				"as": "messages",
				"query": "chat.bsky.convo.getMessages",
				"params": { "convoId": { "$": "response.convo.id" }, "limit": 50 },
				"say": { "noun": ["message", "messages"], "count": "messages" }
			}
		],
		"layout": {
			"component": "Messages",
			"props": {
				"items": { "$": "joins.messages.messages" },
				"from": "sender.did",
				"sent": "sentAt",
				"people": { "$root": "response.convo.members" },
				"order": "newest-first",
				"empty": "No messages yet. Say hi.",
				"send": {
					"method": "chat.bsky.convo.sendMessage",
					"service": "did:web:api.bsky.chat#bsky_chat",
					"input": { "convoId": { "$root": "response.convo.id" }, "message": { "text": { "$text": true } } }
				}
			},
			"children": [
				{ "component": "RichText", "props": { "value": { "$": "text" }, "format": "facets", "facets": { "$": "facets" } } },
				{ "component": "Embed", "props": { "value": { "$": "embed" } } },
				{
					"component": "List",
					"props": { "items": { "$": "reactions" }, "style": "inline", "open": false },
					"children": [{ "component": "Text", "props": { "value": { "$": "value" } } }]
				}
			]
		}
	}
}