Skip to content

chore(security): raise the optional MCP dependency floor and test minimum-supported dependencies #346

Closed

Description

@abruption

Problem

The 2026-10-28 dependency review found that the optional MCP extra still permits old SDK releases covered by recent upstream advisories. The proposed change is dependency-policy hardening; no exploitable vulnerability was demonstrated in the current session-peer entry point.

Reviewed baseline: a68c6cf16c234cd3fe72926e519e4178c093081a.

  • pyproject.toml declares mcp>=1.12,<2; python_version >= '3.10'.
  • session_peer_mcp.py creates a FastMCP server and explicitly runs transport="stdio". The reviewed implementation does not use the SDK HTTP transport, OAuth/bearer authentication server or MCP client paths described below.
  • The scheduled dependency audit resolves runtime extras in a fresh Python 3.13 environment. A clean latest-resolution audit does not establish the safety or compatibility of the declared minimum dependency versions.

Upstream evidence

These are SDK advisory references, not claims that their prerequisites exist in this application's stdio server. Keep GHSA identifiers as published; do not invent CVE mappings.

Proposed scope

Evaluate mcp>=1.30,<2 as the new optional-extra floor, subject to verified Python 3.10 compatibility and the existing server contract. Add a minimum-supported dependency test lane alongside latest-compatible resolution so future changes cannot silently rely on a newer SDK than the manifest permits.

Acceptance criteria

  • Verify upstream package metadata and a clean resolver result for the proposed floor on Python 3.10. If incompatible, document the supported alternative explicitly; do not silently raise Python requirements or remove the MCP extra.
  • Update the manifest and relevant dependency documentation consistently after compatibility verification. Preserve the Python 3.9 standalone core contract and existing optional-extra platform markers.
  • Test the exact accepted MCP lower bound and latest compatible 1.x on the project's supported MCP Python/platform matrix, including Python 3.10 and 3.13. Report resolved versions so minimum and latest lanes cannot accidentally test the same unconstrained resolution.
  • Exercise actual stdio startup, tool registration/results, policy validation and existing timeout/cancellation/owned-child cleanup tests in isolated fixtures. Preserve unknown-outcome/no-automatic-resend behavior.
  • Audit the resolved runtime dependency graphs, including transitive packages, for both relevant resolution profiles. Keep audit tooling separate from runtime dependencies and retain reports; do not suppress advisories to make the lane green.
  • Preserve current latest-resolution audits and release-gate semantics. Test any workflow changes and use the existing pinned-action/read-only-permission conventions.
  • Record source SHA, matrix outcomes and remaining untested boundaries. Do not describe the change as remediation of a confirmed remotely exploitable session-peer issue.

Relationship and boundaries

Related: #236 established scheduled audits; #117 owns release gates. Neither tracks the minimum MCP floor and lower-bound compatibility gap. Existing issues and PRs were searched for MCP, minimum dependencies, 1.30 and the relevant advisory before registration.

Better Auth corrections already merged in #345 are outside this issue. No HTTP transport expansion, service deployment, global installation, live-agent delivery, permission/settings change or release is authorized by filing it. This records follow-up work only; implementation remains a separate step.

Verification record

Implemented and normally merged through PR #347, source ef7748a78e6b466f67074708f5c14decf37f31d7. Exact-head CI, all eight SDK profiles and both automatic reviews succeeded; downloaded profile/audit evidence and remaining boundaries are recorded in the verification comment. Final v1.3.2 integration/publication is a separate pending release gate.

Activity

  1. added this to the v1.3.2 milestone on Oct 28, 2026
  2. added
    priority:P1
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:P1

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions