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

Method test_single_server

tests/chat/test_system_prompt.py:208–220  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

206 assert _build_server_section([]) == ""
207
208 def test_single_server(self):
209 from mcp_cli.chat.system_prompt import _build_server_section
210 from mcp_cli.chat.models import ServerToolGroup
211
212 groups = [
213 ServerToolGroup(
214 name="time",
215 description="time MCP server",
216 tools=["get_time", "convert_tz"],
217 )
218 ]
219 result = _build_server_section(groups)
220 assert "**time** (time MCP server): get_time, convert_tz" in result
221
222
223class TestPrivateFunctionDirectly:

Callers

nothing calls this directly

Calls 2

ServerToolGroupClass · 0.90
_build_server_sectionFunction · 0.90

Tested by

no test coverage detected