Skip to content

fix(mcp): silence per-request session termination logs - #9221

Merged
Zaimwa9 merged 4 commits into
mainfrom
fix/mcp-quiet-stateless-session-logs
Dec 2, 2026
Merged

Zaimwa9 merged 4 commits into
mainfrom
fix/mcp-quiet-stateless-session-logs

Conversation

@Zaimwa9

@Zaimwa9 Zaimwa9 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Thanks for submitting a PR! Please check the boxes below:

  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Contributes to ENG-615

Since #9199 serves HTTP statelessly, the MCP SDK logs Terminating session: None at info level after every request. Raise the mcp.server.streamable_http logger to warning; its errors and exceptions still get through.

How did you test this code?

Unit test, plus a local run at LOG_LEVEL=INFO: no termination lines, session.opened and tool.called still logged.

@Zaimwa9
Zaimwa9 requested a review from a team as a code owner December 2, 2026 16:15
@Zaimwa9
Zaimwa9 requested review from emyller and removed request for a team December 2, 2026 16:15
@vercel

vercel Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Actions Updated
docs Ignored Ignored Preview Dec 2, 2026 4:22pm UTC
flagsmith-frontend-preview Ignored Ignored Preview Dec 2, 2026 4:22pm UTC
flagsmith-frontend-staging Ignored Ignored Preview Dec 2, 2026 4:22pm UTC

Request Review

@Zaimwa9
Zaimwa9 requested review from khvn26 and removed request for emyller December 2, 2026 16:16
khvn26
khvn26 previously approved these changes Dec 2, 2026

@khvn26 khvn26 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a nit — I think the test is redundant.

Comment thread mcp/tests/unit/test_telemetry.py Resolved

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 5 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread mcp/tests/unit/test_telemetry.py Resolved
@Zaimwa9
Zaimwa9 requested a review from khvn26 December 2, 2026 16:25
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-9221 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-9221 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-9221 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-api:pr-9221 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith:pr-9221 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-private-cloud:pr-9221 Finished ✅ Results ✅

@github-actions github-actions Bot added the fix label Dec 2, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 1 file (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: The change raises the MCP SDK logger threshold to WARNING, suppressing all its INFO messages—not just session-termination noise. A human should confirm that observability tradeoff.

Turn on auto-fix | Re-trigger cubic

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #24070 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  4 passed

Details

stats  4 tests across 2 suites
duration  23.8 seconds
commit  5f57a5c
info  🔄 Run: #24070 (attempt 1)

🗂️ Previous results
✅ oss · depot-ubuntu-latest-arm-16 — run #24070 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  35.4 seconds
commit  5f57a5c
info  🔄 Run: #24070 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #24070 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  26 passed

Details

stats  26 tests across 15 suites
duration  33.5 seconds
commit  5f57a5c
info  🔄 Run: #24070 (attempt 1)

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Visual Regression

31 screenshots compared. See report for details.
View full report

@Zaimwa9
Zaimwa9 merged commit 7b29cc0 into main Dec 2, 2026
34 checks passed
@Zaimwa9
Zaimwa9 deleted the fix/mcp-quiet-stateless-session-logs branch December 2, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants