feat: session/slow-query/privilege DBA capabilities - #138
Merged
Conversation
Blankll
force-pushed
the
feat/dba-capabilities
branch
from
August 14, 2026 09:03
2918be9 to
6a68351
Compare
Adds 5 new sqlkit capabilities — list_sessions, kill_session, get_slow_queries, grant_privilege, revoke_privilege — via a new capabilities/dba.rs module wired into the registry: - DatabaseAdapter trait gains 5 methods with unsupported default stubs - Implemented for PostgreSQL (pg_stat_activity / pg_terminate_backend / GRANT/REVOKE), MySQL (processlist / KILL / GRANT/REVOKE) and SQL Server (sys.dm_exec_sessions / KILL / sys.dm_exec_query_stats / GRANT/REVOKE) - Identifier whitelist + privilege allowlist guard against SQL injection in GRANT/REVOKE object/grantee arguments - agent-tag regression test asserts all 25 sqlkit capabilities are agent-visible Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Blankll
force-pushed
the
feat/dba-capabilities
branch
from
August 14, 2026 16:01
6a68351 to
929dc35
Compare
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
Adds 5 new DBA capabilities to the sqlkit MCP bridge (25 total sqlkit tools):
sqlkit__list_sessionssqlkit__kill_sessionsqlkit__get_slow_queriessqlkit__grant_privilegesqlkit__revoke_privilegeImplementation
DatabaseAdaptertrait +5 methods withDbError::unsupporteddefaultscapabilities/dba.rswith handlers + registration, wired intoinit_registryVerification
cargo test: 361 passed, 0 failedtest_all_sql_capabilities_are_agent_tagged: GREEN@25cargo fmt: clean; clippy: 0 warnings in new code