Repository navigation
Conversation
Some WAFs drop connections from python-requests/* without a response, so every API call failed with RemoteDisconnected. Set our own User-Agent on the client session.
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Set the session User-Agent youtrack_mcp/api/client.py |
The session’s User-Agent header is set to youtrack-mcp/1.0. |
Estimated code review effort: 1 (Trivial) | ~3 minutes
Change: Bug fix
Merge Risk: 
Minimal · up to 70366
-
The requested User-Agent change has no identified merge-blocking risk.
Pre-merge checks: 
5
-
Full details: Title check
-
Explanation
The title "Send a custom User-Agent header" matches the only code change in the changeset, which sets the session User-Agent to youtrack-mcp/1.0 in YouTrackClient. It names the main change from the developer's view. It is short, specific, and free of file lists or vague terms. The objectives confirm the purpose: some WAFs drop connections from python-requests/* headers, which causes RemoteDisconnected failures.
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
|
Thanks @vt244 for the fix and the clear write-up. Land on Closing as implemented here; credit for the WAF / |
|
Implemented on main in 2405b15. |
Some WAFs drop connections from
python-requests/*without a response, so every API call failed withRemoteDisconnected.Sets
User-Agent: youtrack-mcp/1.0on the client session. The value is a fixed string, not the package version.Testing
test_update_issue_successandtest_get_tool_definitions_legacy_formatfail on a cleanmaintoo.Summary by CodeRabbit
youtrack-mcp/1.0as the client identification value in their User-Agent header. This updates the information accompanying requests to the service. No changes to app features or workflows are described in this release; existing request behavior otherwise remains unchanged according to the available change summary.