(self)
| 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 | |
| 223 | class TestPrivateFunctionDirectly: |
nothing calls this directly
no test coverage detected