feat(deps): add opensearch-py for pmda-drug-info skill MCP server

pmda-drug-info skill's pmda_server.py imports opensearchpy to query
the OpenSearch pmda_sections index. catalog-agent base image already
ships psycopg (for PG drug_master queries) but was missing
opensearch-py, so the MCP stdio server failed at import time with
ModuleNotFoundError → 0 tools exposed to the bot.

Add opensearch-py >=2.2.0,<3.0.0 to pyproject.toml dependencies and
the matching pinned line (opensearch-py==2.7.1) to requirements.txt.

Verified pmda-drug-info needs:
  from opensearchpy import OpenSearch       # os_client.py
  from opensearchpy.helpers import bulk     # ingest path

After this image is rebuilt and deployed to onprem-dev, MCP stdio
servers loaded from skill plugin.json start cleanly and tools/list
returns the 10 tools from pmda_tools.json.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
qianlir 2026-05-18 19:51:38 +08:00
parent 65db950aa8
commit 538be7da2c
2 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,7 @@ dependencies = [
"deepagents-cli (>=0.0.37,<0.1.0)",
"mem0ai (>=0.1.50,<0.3.0)",
"psycopg2-binary (>=2.9.11,<3.0.0)",
"opensearch-py (>=2.2.0,<3.0.0)",
"json-repair (>=0.29.0,<0.30.0)",
"tiktoken (>=0.5.0,<1.0.0)",
"wsgidav (>=4.3.3,<5.0.0)",

View File

@ -117,6 +117,7 @@ nvidia-nvtx-cu12==12.1.105 ; python_version >= "3.12" and python_version < "3.15
obstore==0.8.2 ; python_version >= "3.12" and python_version < "3.15"
openai==2.31.0 ; python_version >= "3.12" and python_version < "3.15"
openpyxl==3.1.5 ; python_version >= "3.12" and python_version < "3.15"
opensearch-py==2.7.1 ; python_version >= "3.12" and python_version < "3.15"
opentelemetry-api==1.41.0 ; python_version >= "3.12" and python_version < "3.15"
opentelemetry-exporter-otlp-proto-common==1.41.0 ; python_version >= "3.12" and python_version < "3.15"
opentelemetry-exporter-otlp-proto-http==1.41.0 ; python_version >= "3.12" and python_version < "3.15"