~ 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
85 lines · 2.4 KB Raw History
{
	"jsonrpc": "2.0",
	"id": 1,
	"result": {
		"content": [{ "type": "text", "text": "4 messages from chat.bsky.convo.getMessages on api.bsky.chat" }],
		"structuredContent": {
			"method": "chat.bsky.convo.getMessages",
			"service": "did:web:api.bsky.chat#bsky_chat",
			"params": { "convoId": "c1" },
			"response": { "messages": [] }
		},
		"_meta": {
			"viewer": { "did": "did:plc:me", "handle": "me.test" },
			"ui": {
				"v": 1,
				"trusted": true,
				"next": {
					"name": "query",
					"args": { "method": "chat.bsky.convo.getMessages", "params": { "convoId": "c1" }, "cursor": "m0" }
				},
				"root": {
					"c": "Messages",
					"p": {
						"order": "newest-first",
						"empty": "No messages yet",
						"group": true,
						"page": true,
						"send": {
							"method": "chat.bsky.convo.sendMessage",
							"service": "did:web:api.bsky.chat#bsky_chat",
							"input": { "convoId": "c1", "message": { "text": { "$text": true } } }
						}
					},
					"items": [
						{
							"from": "did:plc:me",
							"mine": true,
							"at": "2026-11-16T09:20:00.000Z",
							"who": { "name": "me.test" },
							"k": [{ "c": "RichText", "p": { "runs": [{ "text": "On my way" }] } }]
						},
						{
							"from": "did:plc:you",
							"mine": false,
							"at": "2026-11-16T09:01:00.000Z",
							"who": {
								"name": "You",
								"avatar": {
									"src": "https://cdn.bsky.app/img/avatar_thumbnail/plain/you@jpeg",
									"fallback": "https://hud.example/blob/did:plc:you/bafyface"
								}
							},
							"k": [
								{ "c": "RichText", "p": { "runs": [{ "text": "see you at " }, { "text": "the park", "link": "https://park.example" }] } },
								{
									"c": "Action",
									"p": {
										"label": "Mark read",
										"done": "Read",
										"key": "read",
										"call": {
											"method": "chat.bsky.convo.updateRead",
											"service": "did:web:api.bsky.chat#bsky_chat",
											"input": { "convoId": "c1", "messageId": "m2", "at": { "$now": true } }
										}
									}
								}
							]
						},
						{
							"from": "did:plc:you",
							"mine": false,
							"at": "2026-11-16T09:00:00.000Z",
							"who": { "name": "You" },
							"k": [{ "c": "RichText", "p": { "runs": [{ "text": "hi" }] } }]
						},
						{
							"k": [{ "c": "Text", "p": { "runs": [{ "text": "Someone joined" }], "style": "muted" } }]
						}
					]
				}
			}
		}
	}
}