Skip to content

Fix Python 3.11 compat and switch to sync Client#1

Open
bradleyjeallison wants to merge 2 commits intoedkranz:masterfrom
bradleyjeallison:fix/python311-sync-client
Open

Fix Python 3.11 compat and switch to sync Client#1
bradleyjeallison wants to merge 2 commits intoedkranz:masterfrom
bradleyjeallison:fix/python311-sync-client

Conversation

@bradleyjeallison
Copy link
Copy Markdown

Summary

  • Lower requires-python from >=3.13 to >=3.11 — no 3.13-only features are used
  • Add missing up-bank-api dependency to pyproject.toml (was imported but not declared)
  • Replace AsyncClient with sync Clientup-bank-api v1.2.0 doesn't export AsyncClient
  • Add run.bat launcher for Windows MCP server integration (Claude Code / Claude Desktop)
  • Update uv.lock to reflect new dependency set

Why

The current code fails on import because AsyncClient is not available in up-bank-api 1.2.0. The sync Client has 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.py starts without errors
  • get_user_id tool returns authorized user ID
  • get_accounts tool returns account list with balances
  • get_transactions tool returns recent transactions

🤖 Generated with Claude Code

bradleyjeallison and others added 2 commits April 15, 2026 17:14
- 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>
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