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

Class FakeToolManager

tests/planning/test_context.py:24–37  ·  view source on GitHub ↗

Minimal ToolManager stub for PlanningContext tests.

Source from the content-addressed store, hash-verified

22
23
24class FakeToolManager:
25 """Minimal ToolManager stub for PlanningContext tests."""
26
27 def __init__(self, tool_names: list[str] | None = None):
28 self._tool_names = tool_names or ["read_file", "write_file", "search_code"]
29
30 async def get_all_tools(self) -> list[FakeToolInfo]:
31 return [FakeToolInfo(name=n) for n in self._tool_names]
32
33 async def get_adapted_tools_for_llm(self, provider: str) -> list[dict[str, Any]]:
34 return [
35 {"type": "function", "function": {"name": n, "description": f"Tool: {n}"}}
36 for n in self._tool_names
37 ]
38
39
40SAMPLE_PLAN_DICT = {

Calls

no outgoing calls