Fix Python 3.11 compat and switch to sync Client#1
Open
bradleyjeallison wants to merge 2 commits intoedkranz:masterfrom
Open
Fix Python 3.11 compat and switch to sync Client#1bradleyjeallison wants to merge 2 commits intoedkranz:masterfrom
bradleyjeallison wants to merge 2 commits intoedkranz:masterfrom
Conversation
- Lower requires-python from >=3.13 to >=3.11 (no 3.13-only features used) - Add missing up-bank-api dependency to pyproject.toml - Replace AsyncClient with sync Client (up-bank-api 1.2.0 doesn't export AsyncClient) - Add run.bat launcher for Windows MCP server integration - Clean up tool functions to use sync patterns with _get_client() helper Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
requires-pythonfrom>=3.13to>=3.11— no 3.13-only features are usedup-bank-apidependency topyproject.toml(was imported but not declared)AsyncClientwith syncClient—up-bank-apiv1.2.0 doesn't exportAsyncClientrun.batlauncher for Windows MCP server integration (Claude Code / Claude Desktop)uv.lockto reflect new dependency setWhy
The current code fails on import because
AsyncClientis not available inup-bank-api1.2.0. The syncClienthas the same methods and works with FastMCP's tool decorator. Lowering the Python version requirement makes the server accessible to more users.Test plan
uv run up_mcp.pystarts without errorsget_user_idtool returns authorized user IDget_accountstool returns account list with balancesget_transactionstool returns recent transactions🤖 Generated with Claude Code