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

Class FakeToolManager

tests/apps/test_host.py:18–32  ·  view source on GitHub ↗

Stub for ToolManager — only needs read_resource for launch tests.

Source from the content-addressed store, hash-verified

16
17
18class FakeToolManager:
19 """Stub for ToolManager — only needs read_resource for launch tests."""
20
21 def __init__(self):
22 self._resource: dict[str, Any] = {
23 "contents": [
24 {
25 "uri": "ui://test/app.html",
26 "text": "<html><body>Hello</body></html>",
27 }
28 ]
29 }
30
31 async def read_resource(self, uri, server_name=None):
32 return self._resource
33
34
35# ── Init Tests ─────────────────────────────────────────────────────────────

Calls

no outgoing calls