refactor: move mcp discovered tool specs helper

This commit is contained in:
lda
2026-06-08 10:34:56 +07:00 Verified
parent 42a4412c95
commit ec3414c1cb
8 changed files with 649 additions and 15 deletions
+8
View File
@@ -237,3 +237,11 @@ def test_wf_mcp_workflow_wrapper_shim_reexports_wf_sources_mcp_tool_wrapper() ->
assert compat_package_wrap is wrap_discovered_tool
assert compat_module_wrap is wrap_discovered_tool
def test_wf_mcp_broker_discovery_keeps_specs_adapter() -> None:
from wf_mcp.broker.discovery import specs_from_discovered_tools as broker_specs
from wf_sources_mcp.discovery import specs_from_discovered_tools as source_specs
assert broker_specs is not source_specs
assert broker_specs.__name__ == "specs_from_discovered_tools"