Skip to content

Centralize request handling logic in mcp_bear#39

Merged
jkawamoto merged 4 commits intomainfrom
refactor
Oct 31, 2025
Merged

Centralize request handling logic in mcp_bear#39
jkawamoto merged 4 commits intomainfrom
refactor

Conversation

@jkawamoto
Copy link
Owner

Refactored request handling logic to use a central _request function for consistency, reduced redundancy in parameter management with unpacking syntax, and simplified code by removing unnecessary operations. Test cases updated to align with these changes.

…ge in `mcp_bear`

Replaced repetitive request handling logic with a shared `_request` function for consistency across tools. Simplified parameter updates by leveraging unpacking syntax (`**params`). Removed redundant future management and URL construction operations. Updated test cases accordingly.
@jkawamoto jkawamoto force-pushed the refactor branch 2 times, most recently from 772ef2a to 56a8ad5 Compare October 31, 2025 04:13
Shifted temporary socket cleanup logic (`os.unlink`) from tests to the primary implementation in `mcp_bear` to ensure proper cleanup after server shutdown.
Updated `runs-on` to `macos-latest` and upgraded `setup-uv` to v7. Switched to specifying Python version directly as `3.13`.
@jkawamoto jkawamoto force-pushed the refactor branch 2 times, most recently from 3b00bee to 76233b4 Compare October 31, 2025 05:23
@jkawamoto jkawamoto merged commit 7e5be5f into main Oct 31, 2025
1 check passed
@jkawamoto jkawamoto deleted the refactor branch October 31, 2025 05:27
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.

1 participant