Skip to content

Fix hanging MCP auth integration tests#46

Merged
speterkins merged 1 commit into
mainfrom
speterkins/fix-ci-hanging-north-mcp-server-tests
Mar 31, 2026
Merged

Fix hanging MCP auth integration tests#46
speterkins merged 1 commit into
mainfrom
speterkins/fix-ci-hanging-north-mcp-server-tests

Conversation

@speterkins
Copy link
Copy Markdown
Contributor

@speterkins speterkins commented Mar 31, 2026

Summary

  • switch the hanging MCP auth integration tests off the SSE transport
  • align stale auth expectations with the current open-auth behavior
  • keep the fix isolated from PR Relax default MCP auth enforcement #45 so it can land independently

Testing

  • uv run pytest tests/test_north_mcp_server.py -q
  • uv run pytest -q

Note

Low Risk
Test-only changes that adjust transport and request shape; low risk aside from possibly masking transport-specific auth issues on SSE.

Overview
Auth integration tests are switched from the sse transport/GET /sse checks to streamable-http using POST /mcp JSON-RPC initialize requests to avoid hangs.

The test fixtures are simplified (removing the extra MCP client fixture), and a stale test expectation is renamed/updated to assert 401 for an empty Authorization header.

Written by Cursor Bugbot for commit 30900be. This will update automatically on new commits. Configure here.

Comment thread tests/test_north_mcp_server.py
@speterkins speterkins force-pushed the speterkins/fix-ci-hanging-north-mcp-server-tests branch 2 times, most recently from 0a0019c to 0fcd5b9 Compare March 31, 2026 16:08
Comment thread tests/test_north_mcp_server.py Outdated
@speterkins speterkins force-pushed the speterkins/fix-ci-hanging-north-mcp-server-tests branch 2 times, most recently from 3983dea to d3eb0a5 Compare March 31, 2026 17:03
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Comment thread tests/test_north_mcp_server.py
@speterkins speterkins force-pushed the speterkins/fix-ci-hanging-north-mcp-server-tests branch from d3eb0a5 to 30900be Compare March 31, 2026 17:12
@speterkins speterkins added this pull request to the merge queue Mar 31, 2026
Merged via the queue into main with commit 7ab614b Mar 31, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants