Repository navigation
Conversation
d900bb6 to
9142e93
Compare
…y dependencies (#293, #294) - Update dynamic tool registration to import via secops_soar_mcp.marketplace.{stem} with fallback to marketplace.{stem} (Fixes #293) - Add python-dotenv>=1.0.0 to setup.py install_requires to match pyproject.toml (Fixes #294) - Add unit tests in tests/unit/test_marketplace_and_packaging.py verifying import resolution and dependency synchronization
9142e93 to
aa9e817
Compare
|
Hi @dandye , #352 loads each enabled module from its file path ( The two approaches differ for the four marketplace files with dots in their names ( If this PR merges after #352 and the |
Summary
This PR addresses marketplace module import resolution and packaging synchronization across
server/secops-soar:Dynamic Marketplace Module Import Resolution (Fixes documentation update/request for SOAR MCP Marketplace Integrations #151, Fixes [secops-soar] Dynamic marketplace tool import fails with ModuleNotFoundError when running installed package #293):
secops_soar_mcp/server.pyto resolve marketplace integration tools via qualified package pathsecops_soar_mcp.marketplace.{module_stem}with fallback tomarketplace.{module_stem}.ModuleNotFoundError: No module named 'marketplace'whensecops-soar-mcpis installed as a package or executed from arbitrary working directories, resolving the issue where marketplace tools are not recognized by MCP clients (e.g. Gemini CLI, Claude).Synchronize
python-dotenvinsetup.py(Fixes [secops-soar] setup.py is missing python-dotenv dependency from install_requires #294):"python-dotenv>=1.0.0"toinstall_requiresinserver/secops-soar/setup.pyto matchpyproject.toml.setup.pypull inpython-dotenvrequired bysecops_soar_mcp.bindings.Hermetic Unit Tests:
server/secops-soar/tests/unit/test_marketplace_and_packaging.pytesting qualified and fallback module imports, tool registration, andsetup.pydependency declaration.(Note: Prior commits addressing SOAR TLS/certifi startup diagnostics for #191 were superseded by merged PR #308 and were removed during rebase onto main.)
Fixes #151
Fixes #293
Fixes #294
Tests Run
uv run --with "mcp<2" --with pytest --with pytest-asyncio --with aiohttp --with python-dotenv pytest server/secops-soar/tests/unit/ -v(8 passed)uv run --with ruff ruff check server/secops-soar/tests/unit/test_marketplace_and_packaging.py(All checks passed)