Clears 20 high-severity Dependabot alerts for the MCP Python SDK across the
root lock and five integration locks (integration-tests, claude-agent-sdk,
crewai, openai-agents, strands):
GHSA-jpw9-pfvf-9f58 HTTP transports serve session requests without
verifying the authenticated principal (patched 1.27.2)
GHSA-hvrp-rf83-w775 experimental task handlers let any client access/
cancel other clients' tasks (patched 1.27.2)
GHSA-vj7q-gjh5-988w WebSocket server transport lacks Host/Origin
validation (patched 1.28.1)
1.28.1 clears all three. mcp is a direct dep in hindsight-integration-tests
and claude-agent-sdk (mcp>=1.0.0) and transitive elsewhere; the locks just
pinned older versions (1.23.3–1.27.1). crewai jumped the furthest (1.23.3),
which pulled newer pydantic/pydantic-core graph edges — its tests still pass.
Not included here: mcp is not part of any Dependabot group PR, so this is
the sole coverage for these alerts. nltk (llamaindex/pipecat) and torch are
handled by the Dependabot uv-group PR #2780.
Verified: claude-agent-sdk 76 passed, crewai 35 passed; lint clean.
Hindsight Integration Tests
E2E and integration tests for Hindsight API that require a running server.
Test Types
1. Tests with External Server
Tests like test_mcp_e2e.py expect a server to already be running.
Running:
# Start the API server
./scripts/dev/start-api.sh
# Run tests
cd hindsight-integration-tests
HINDSIGHT_API_URL=http://localhost:8888 uv run pytest tests/test_mcp_e2e.py -v
2. Self-Contained Tests
Tests like test_base_path_deployment.py manage their own server lifecycle and use docker-compose.
Running:
cd hindsight-integration-tests
# Run with pytest
uv run pytest tests/test_base_path_deployment.py -v
# Or run directly for nice output
uv run python tests/test_base_path_deployment.py
Requirements:
- Docker and docker-compose installed (for reverse proxy test)
- No nginx required on host!
What it tests:
- ✅ API with base path (direct server)
- ✅ Full reverse proxy via docker-compose + Nginx
- ✅ Regression: API without base path
- ✅ Full retain/recall workflow
These tests:
- Start their own API servers on dedicated ports (18888-18891)
- Use docker-compose to test actual deployment scenarios
- Run in parallel with other tests (no port conflicts)
- Clean up automatically
3. Hermes Agent Smoke Tests
test_hermes_embedded_smoke.py drives the Hermes Agent ↔ Hindsight integration
end-to-end through the HindsightMemoryProvider plugin in local_embedded
mode. Run on demand — not part of CI.
The test reuses the installed Hermes venv (which already has every dep), so
it doesn't need uv or this package's lockfile.
Prerequisites:
hermes update # ensure plugin code at ~/.hermes/hermes-agent is current
Running:
HINDSIGHT_LLM_API_KEY=sk-... \
~/.hermes/hermes-agent/venv/bin/python -m pytest \
hindsight-integration-tests/tests/test_hermes_embedded_smoke.py \
-v -s -o addopts=""
(-o addopts="" overrides the --timeout flag from this package's pyproject;
pytest-timeout is not installed in the hermes venv and isn't needed here.)
Skipped automatically if HINDSIGHT_LLM_API_KEY (or OPENAI_API_KEY) is not set.
Running All Tests
cd hindsight-integration-tests
uv run pytest tests/ -v
This runs both types. Self-contained tests won't conflict with the external server.
Environment Variables
HINDSIGHT_API_URL— Base URL for external-server tests (default:http://localhost:8888)HINDSIGHT_LLM_API_KEY/OPENAI_API_KEY— required by the Hermes embedded smoke testHINDSIGHT_LLM_PROVIDER,HINDSIGHT_LLM_MODEL— override defaults (openai/gpt-4o-mini)