MCPcopy Create free account
hub / github.com/IBM/mcp-cli / test_ui_message

Method test_ui_message

tests/apps/test_bridge.py:142–156  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

140
141 @pytest.mark.asyncio
142 async def test_ui_message(self):
143 bridge, _ = _make_bridge()
144 msg = json.dumps(
145 {
146 "jsonrpc": "2.0",
147 "id": 4,
148 "method": "ui/message",
149 "params": {"content": {"type": "text", "text": "hello"}},
150 }
151 )
152
153 resp = await bridge.handle_message(msg)
154 parsed = json.loads(resp)
155 assert parsed["id"] == 4
156 assert parsed["result"] == {}
157
158 @pytest.mark.asyncio
159 async def test_model_context_update(self):

Callers

nothing calls this directly

Calls 2

handle_messageMethod · 0.80
_make_bridgeFunction · 0.70

Tested by

no test coverage detected