Skip to content

feat(python): support named database connections - #11

Merged
JaviMaligno merged 1 commit into
mainfrom
feat/multi-database-python
Jul 30, 2026
Merged

feat(python): support named database connections#11
JaviMaligno merged 1 commit into
mainfrom
feat/multi-database-python

Conversation

@JaviMaligno

Copy link
Copy Markdown
Owner

Summary

  • add named PostgreSQL connections to the Python implementation with legacy single-database fallback
  • expose list_databases and optional database on all 14 database tools
  • enforce write permissions per alias and cache one client per connection
  • migrate the Python server entry point to MCP SDK v2
  • run the existing PostgreSQL integrations in CI and add a live two-database routing test
  • update parity documentation and package metadata

Verification

  • uv run ruff format --check .
  • uv run ruff check .
  • uv run pytest -q (77 passed, 18 integration tests skipped without credentials)
  • uv run pytest --run-integration -q against Azure PostgreSQL (95 passed)
  • uv build
  • TypeScript was also smoke-tested across Railway and Azure in the parent PR

Stack

This PR is intentionally based on feat/multi-database-typescript / #10. Merge #10 first, then retarget or merge this PR.

Closes #5 after the parent PR and this PR are merged.
Contributes the Python SDK v2 portion of #4.

@JaviMaligno
JaviMaligno changed the base branch from feat/multi-database-typescript to main July 30, 2026 06:44
@JaviMaligno
JaviMaligno force-pushed the feat/multi-database-python branch from e2b83e1 to 034a7ba Compare July 30, 2026 06:45
@JaviMaligno
JaviMaligno merged commit 3aa9c6f into main Jul 30, 2026
8 checks passed
@JaviMaligno
JaviMaligno deleted the feat/multi-database-python branch July 30, 2026 06:47
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.

Support multiple databases without editing the client config

1 participant