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

Function _make_tool

tests/commands/apps/test_apps_command.py:24–37  ·  view source on GitHub ↗
(
    name: str,
    namespace: str = "srv",
    has_app_ui: bool = True,
    app_resource_uri: str | None = "http://localhost:8080",
    description: str = "A tool",
)

Source from the content-addressed store, hash-verified

22
23
24def _make_tool(
25 name: str,
26 namespace: str = "srv",
27 has_app_ui: bool = True,
28 app_resource_uri: str | None = "http://localhost:8080",
29 description: str = "A tool",
30) -> MagicMock:
31 t = MagicMock()
32 t.name = name
33 t.namespace = namespace
34 t.has_app_ui = has_app_ui
35 t.app_resource_uri = app_resource_uri
36 t.description = description
37 return t
38
39
40def _make_running_app(

Calls

no outgoing calls

Tested by

no test coverage detected