Skip to content

feat(rust): MCP tools for connections and query - #2003

Merged
ZhuchkaTriplesix merged 2 commits into
epic/tauri-migrationfrom
issue/1901-mcp-tools
Nov 16, 2026
Merged

ZhuchkaTriplesix merged 2 commits into
epic/tauri-migrationfrom
issue/1901-mcp-tools

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • list_connections — live SQL sessions from ConnectionRegistry
  • run_query — read-only SQL via existing sql_guard + execute_query (max 1000 rows)
  • Share Arc<ConnectionRegistry> with the MCP host
  • Integration test: SQLite fixture → list + SELECT

Test plan

  • cargo test --lib mcp::
  • Point querya-mcp at a running Tauri app with a live SQLite connection

Closes #1901

Wire rmcp tools to the live ConnectionRegistry so clients can list open
SQL sessions and run read-only queries (sql_guard + row cap). Verified
against an in-process SQLite fixture over the loopback MCP host.

Closes #1901
@github-actions github-actions Bot added core Core library logic and services P2 Medium priority / Parity & Refactoring tauri Tauri 2 / apps/tauri migration track rust Rust backend (src-tauri / crates) labels Nov 16, 2026
@github-actions github-actions Bot added this to the Tauri migration milestone Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core library logic and services P2 Medium priority / Parity & Refactoring rust Rust backend (src-tauri / crates) tauri Tauri 2 / apps/tauri migration track

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant