Commit Graph

4875 Commits (9ffc3f8d711d2f1d3373c91a135d40cbea202841)

Author SHA1 Message Date
Wazir Ahmed e450f1b30f MCP: Handle DELETE method
3 months ago
Wazir Ahmed 68a41d6db8 MCP: Add handler for prompts and resources
3 months ago
Wazir Ahmed 2f38def403 MCP: Handle client notifications properly
3 months ago
Wazir Ahmed 155a77f969 MCP: Bump protocolVersion to 2025-06-18
3 months ago
Rahim Kanji bf429f0a52 Fixed multiple issues
3 months ago
Rene Cannao a1d9d2f1ba docs: Add comprehensive documentation to MCP features
3 months ago
Rene Cannao ad166c6b8a docs: Add comprehensive Doxygen documentation for RAG subsystem
3 months ago
Rene Cannao 55715ecc4b feat: Complete RAG implementation according to blueprint specifications
3 months ago
Rene Cannao c092fdbd3b fix: Load re_modifiers field from database in load_mcp_query_rules()
3 months ago
Rene Cannao cc3cc25532 fix: Remove unused reset parameter from stats___mcp_query_rules()
3 months ago
Rene Cannao 8c9aecce9b feat: Add LOAD MCP QUERY RULES FROM DISK / TO MEMORY commands
3 months ago
Rene Cannao 7e6f9f0ab3 fix: Add MCP query rules LOAD/SAVE command handlers
3 months ago
Rene Cannao 1dc5eb6581 fix: Fix RAG implementation compilation issues
3 months ago
Rene Cannao 3daaa5c592 feat: Implement RAG (Retrieval-Augmented Generation) subsystem
3 months ago
Rahim Kanji 5b8bb1952e Merge remote-tracking branch 'wqv3.1-vec' into v3.1_mcp-http-ssl-toggle
3 months ago
Rene Cannao f01fc79584 feat: Add runtime_mcp_query_rules table and fix stats_mcp_query_rules schema
3 months ago
Rahim Kanji 9b66224df1 Fix critical double-free bug, SQL injection vulnerability, and hardcoded path
3 months ago
Rahim Kanji f7397f633c Fix catalog search to use FTS5 and enhance test suite
3 months ago
Rene Cannao f449c4236f fix: Improve question learning fallback and error logging
3 months ago
Rene Cannao 5b502c0864 feat: Add question learning capability to demo agent
3 months ago
Rene Cannao ee74384c79 fix: Prevent llm.search from returning huge object lists in list mode
3 months ago
Rene Cannao 7e522aa2c0 feat: Add schema parameter to run_sql_readonly with per-connection tracking
3 months ago
Rene Cannao ee13e4bf13 feat: Add include_objects parameter to llm_search for complete object retrieval
3 months ago
Rene Cannao 1b42cfbd27 feat: Add empty query support to llm_search for listing all artifacts
3 months ago
Rene Cannao 5668c86809 fix: Implement FTS indexing for LLM artifacts and fix reserved keyword issue
3 months ago
Rene Cannao 2250b762a3 feat: Add query_tool_calls table to log MCP tool invocations
3 months ago
Rene Cannao 8a395b9b47 style: Add spaces around commas in SQL CREATE TABLE statements
3 months ago
Rene Cannao 7c93280174 fix: Escape SQL reserved keyword 'limit' in llm_search_log table
3 months ago
Rene Cannao 77643859e3 feat: Add timing columns to stats_mcp_query_tools_counters
3 months ago
Rene Cannao fb66af7c1b feat: Expose MCP catalog database in ProxySQL Admin interface
3 months ago
Rahim Kanji 7564306e18 Handledwq "notifications/initialized" method
3 months ago
Rahim Kanji 4a858521c9 Fix JSON-RPC ID type
3 months ago
Rahim Kanji a15be695e0 Add GET/OPTIONS handlers for MCP HTTP transport
3 months ago
Rene Cannao 35b0b224ff refactor: Remove mcp-catalog_path variable and hardcode catalog path
3 months ago
Rene Cannao a816a756d4 feat: Add MCP query tool usage counters to stats schema
3 months ago
Rene Cannao 393967f511 fix: Use row->cnt instead of row->fields_count
3 months ago
Rene Cannao df0527c044 refactor: list_schemas to use catalog instead of live database
3 months ago
Rene Cannao 527a748d16 refactor: Remove describe_table tool completely
3 months ago
Rene Cannao 623675b369 feat: Add schema name resolver and deprecate direct DB tools
3 months ago
Rene Cannao 757cdaff15 fix: Improve error logging and fix llm.domain_set_members
3 months ago
Rahim Kanji ddc4e65706 Add plain HTTP support for MCP server and fix SSL/port restart issues
3 months ago
Rene Cannao d962caea7e feat: Improve MCP error logging with request payloads
3 months ago
Rene Cannao 53ecda7730 fix: Add comprehensive error handling and logging for MCP tools
3 months ago
Rene Cannao 1b7335acfe Fix two-phase discovery documentation and scripts
3 months ago
Rene Cannao 6f23d5bcd0 feat: Implement two-phase schema discovery architecture
3 months ago
Rene Cannao 7de3f0c510 feat: Add schema separation to MCP catalog and discovery scope constraint
3 months ago
Rene Cannao a3f0bade4e feat: Convert NL2SQL to generic LLM bridge
3 months ago
Rene Cannao 3fe8a48f70 Fix genai variable handling and add API key masking
3 months ago
Rene Cannao 1eb42c57d0 fix: Add GenAI variables to runtime_global_variables population
3 months ago
Rene Cannao 6ffb59b856 fix: Use db parameter instead of hardcoded admindb in GenAI database_to_runtime
3 months ago
Rene Cannao 4018a0ad3b fix: Follow MCP pattern for GenAI variables runtime table population
3 months ago
Rene Cannao 1ea67900ab fix: Populate runtime_global_variables for GenAI variables on startup
3 months ago
Rene Cannao 51fd51e3f5 fix: Add missing GenAI_Thread.h include and fix variables reference
3 months ago
Rene Cannao a7dac5ef3d feat: Make NL2SQL use async GenAI path instead of blocking calls
3 months ago
Rene Cannao 527bfed297 fix: Migrate AI variables to GenAI module for proper architecture
3 months ago
Rene Cannao 2888ee3f45 Fix gemini-code-assist recommendations and implement comprehensive anomaly detection tests
3 months ago
Rene Cannao ae4200dbc0 Enhance AI features with improved validation, memory safety, error handling, and performance monitoring
3 months ago
Rahim Kanji 01f08ea901 Fix a crash (SIGABRT) that occurred when reloading MCP variables while the
3 months ago
Rene Cannao 49092e9c8d test: Add unit tests for AI configuration validation
3 months ago
Rene Cannao 8f38b8a577 feat: Add exponential backoff retry for transient LLM failures
3 months ago
Rene Cannao d0dc36ac0b feat: Add structured logging with timing and request IDs
3 months ago
Rene Cannao 45e592b623 feat: Add structured error messages with context to NL2SQL
3 months ago
Rene Cannao 40b2608c2d feat: Add configuration validation to AI_Features_Manager
3 months ago
Rene Cannao 36b11223b2 feat: Improve SQL validation with multi-factor scoring
3 months ago
Rene Cannao 897d306d2d Refactor: Simplify NL2SQL to use only generic providers
3 months ago
Rene Cannao 637b2a669c feat: Implement NL2SQL vector cache and complete Anomaly threat pattern management
3 months ago
Rene Cannao 782f6cb66b feat: Implement threat pattern management and improve statistics
3 months ago
Rene Cannao 1c7cd8c2b1 fix: Correct PROXY_DEBUG constant from AI_GENERIC to GENAI
3 months ago
Rene Cannao f226c0e687 feat: Implement embedding-based threat similarity for Anomaly Detection
3 months ago
Rene Cannao fec7d64093 feat: Implement NL2SQL vector cache with GenAI embedding generation
3 months ago
Rene Cannao 52a70b0b09 feat: Implement AI-based Anomaly Detection for ProxySQL
3 months ago
Rene Cannao 3f44229e28 feat: Add MCP AI Tool Handler for NL2SQL with test script
3 months ago
Rene Cannao af68f347d4 fix: Add missing verbosity level to proxy_debug call in Anomaly_Detector
3 months ago
Rene Cannao 4f45c25945 docs: Add comprehensive doxygen comments to NL2SQL headers and LLM_Clients
3 months ago
Rene Cannao bc4fff12ce feat: Add NL2SQL query interception in MySQL_Session
3 months ago
Rene Cannao 147a059781 feat: Add NL2SQL converter with hybrid LLM support
3 months ago
Rene Cannao d9346fe64d feat: Add AI features manager foundation
3 months ago
René Cannaò 2637d28f36
Merge pull request #5299 from sysown/v3.0_pg-cancel-terminate-backend-param-support_5298
3 months ago
Rahim Kanji 9ec045ca74 Fix PostgreSQL deadlock with Close Statement flood exceeding threshold_resultset_size
3 months ago
Rahim Kanji 67cbe46450 Simplify PID extraction
3 months ago
Rahim Kanji 5066ddd181 Removed isdigit
3 months ago
Rahim Kanji ce42c188f5 Improvements
3 months ago
Rahim Kanji a1e10e3055 Add parameterized PID support for pg_cancel_backend/pg_terminate_backend
3 months ago
Rene Cannao f852900365 Fix: Correct MCP catalog JSON parsing to handle special characters
3 months ago
Rene Cannao 606fe2e93c Fix: Address code review feedback from gemini-code-assist
3 months ago
Rene Cannao 49e964bb02 Fix: Make ProxySQL MCP server return MCP-compliant tool responses
3 months ago
Rene Cannao 6d83ff1680 Fix: unwrap ProxySQL response format in MCP tools and fix config syntax
3 months ago
Rene Cannao 119ca5003a Fix compilation errors in debug build
3 months ago
René Cannaò 313f637cf0
Merge branch 'v3.1-vec' into v3.1-MCP1
3 months ago
René Cannaò 8b2b29918a
Merge pull request #5291 from sysown/v3.0-misc260111
3 months ago
René Cannaò b1e37b3387
Merge branch 'v3.0' into v3.0_pgsql-use-ssl-issue-5284
3 months ago
René Cannaò c6ed5b96cd
Merge pull request #5282 from sysown/v3.0_bind-format-issue-5273-fix
3 months ago
Rene Cannao ef5b99edbf Fix MCP tool bugs: NULL value handling and query validation
3 months ago
Rene Cannao 22db1a5fdd Fix JSON value extraction in Query_Tool_Handler::execute_tool
3 months ago
Rene Cannao acb4c57db3 Fix case sensitivity issues in MySQL_Tool_Handler::execute_query
3 months ago
Rene Cannao 904283330a Fix critical use-after-free bug in MySQL_Tool_Handler::execute_query
3 months ago
Rene Cannao ced10dd054 Implement per-endpoint authentication for MCP endpoints
3 months ago
Rene Cannao c86a048d9c Implement MCP multi-endpoint architecture with dedicated tool handlers
3 months ago
Rene Cannao 991f0138d8 Reinitialize MySQL Tool Handler when MCP variables change
3 months ago
Rene Cannao 40cff23c3b Initialize MySQL Tool Handler and fix default MySQL port
3 months ago
Rene Cannao 60d4a7378c Implement automatic MCP server start/stop and add environment variable support
3 months ago
Rene Cannao 5a85ef04f6 Fix MCP variables persistence and add DISK command support
3 months ago
Rene Cannao 4aedacd83b [skip-ci] Remove deprecated read_only_action implementations from MySQL and PgSQL HostGroups managers
3 months ago
Rene Cannao b70b07ead7 Skip checksum generation for MCP until feature is complete
3 months ago
Rene Cannao 2e7109d894 Fix lock ordering in flush_mcp_variables___database_to_runtime
3 months ago
Rene Cannao 2874c9ad54 Fix flush_mcp_variables___database_to_runtime to populate runtime_global_variables
3 months ago
Rene Cannao ef07831780 Add MCP module to admin bootstrap and SHOW MCP VARIABLES command
3 months ago
Rene Cannao 28742554b5 Use relative catalog path instead of absolute path
3 months ago
Rene Cannao 06aa6d6ef7 Add comprehensive Doxygen documentation for connection pool
3 months ago
Rene Cannao 4eab519848 Implement MySQL connection pool for MySQL_Tool_Handler
3 months ago
Rene Cannao 221ff23991 Add MySQL exploration MCP tools with SQLite catalog
3 months ago
Rene Cannao b032c3f690 Fix boolean literal handling in SET command for MCP variables
3 months ago
Rene Cannao 81c53896bc Fix MCP module TAP test failures
3 months ago
Rene Cannao 245e61ee86 Make MCP_Threads_Handler a standalone independent class
3 months ago
Rene Cannao 87fff9e046 Add MCP (Model Context Protocol) module skeleton
3 months ago
Rene Cannao 33a87c66a7 Fix critical issues identified by gemini-code-assist
3 months ago
Rene Cannao db2485be37 Add comprehensive doxygen documentation to GenAI async module
3 months ago
Rene Cannao 8405027124 Integrate GenAI async event handling into main MySQL session loop
3 months ago
Rene Cannao 0ff2e38e22 Implement async GenAI module with socketpair-based non-blocking architecture
3 months ago
Rene Cannao bbad8ab4f3 Fix GenAI variable naming and add comprehensive TAP tests
3 months ago
Rene Cannao a82f58e22b Refactor GenAI module for autonomous JSON query processing
3 months ago
Rene Cannao cc3e97b7b8 Merge EMBED and RERANK into unified GENAI: query syntax
3 months ago
Rene Cannao 39939f598b Add experimental GenAI RERANK: query support for MySQL
3 months ago
Rene Cannao 253591d262 Add experimental GenAI EMBED: query support for MySQL
3 months ago
Rene Cannao b5598d8d53 Add comprehensive ProxySQL_Poll usage documentation throughout codebase
3 months ago
René Cannaò 9c3f6b0aa5
Merge pull request #5286 from sysown/v3.0-poll_doc
3 months ago
Rene Cannao 0699c7ba11 Add comprehensive ProxySQL_Poll usage documentation throughout codebase
3 months ago
René Cannaò e6cbdcad7f
Merge pull request #5276 from sysown/v3.0_fork
3 months ago
Rene Cannao 1da9e384d2 Add poll() fallback for GenAI module when epoll is not available
3 months ago
Rene Cannao 960704066d Implement real GenAI module with embedding and rerank support
3 months ago
Rahim Kanji 860657f8fa use_ssl value from pgsql_users is properly assigned to the session
3 months ago
Rahim Kanji 556b1023c4 Removed change_user_auth_switch flag
3 months ago
Rene Cannao 59f0b8b1fa Fix GenAI module admin commands - correct character check
4 months ago
René Cannaò ef872c7f48
Merge pull request #5280 from sysown/v3.0-timezone-parser-fix
4 months ago
René Cannaò 591e1bca6b
Merge pull request #5277 from sysown/v3.0_5272
4 months ago
Rahim Kanji 5a7e7b30e7 Fix extended query Bind handling when a single parameter format is provided
4 months ago
Rene Cannao c476f56f97 Add initial GenAI module placeholder
4 months ago
Rene Cannao 6e9abed581 Fix timezone parsing to support 3-component IANA names and hyphens
4 months ago
Rene Cannao 8c90bda52a Address gemini-code-assist review comments for SSL keylog documentation
4 months ago
Rene Cannao b39e193f4f Fix critical issues in close_all_non_term_fd() per code review
4 months ago
Rene Cannao fc73ec1c50 Code review improvements: Add enum and refactor SELECT VERSION() handling
4 months ago
Rene Cannao 442635b721 Add comprehensive documentation for SSL/TLS key logging feature
4 months ago
Rene Cannao 366164ab26 Fix #5272: Add mysql-select_version_forwarding variable for SELECT VERSION()
4 months ago
Rene Cannao 2448b12a56 Fix critical bugs in close_all_non_term_fd() for fork/exec safety
4 months ago
René Cannaò af23187865
Merge pull request #5270 from sysown/v3.0_restapi_improvement
4 months ago
Rahim Kanji 79df69332d Refactor find_script() to use parameterized prepared statements (via execute_prepared()) for safer SQL execution.
4 months ago
Rahim Kanji 14aef13827 Add method to execute already prepared SQLite3 statements, supporting
4 months ago
Rahim Kanji 01a5b23b22 refactor connection pool put_connection to use mmsd and improve debug handling
4 months ago
Rene Cannao 01d654692d Integrate sqlite-rembed for text embedding generation
4 months ago
Rene Cannao d55947b49f Add comprehensive documentation for sqlite-vec integration
4 months ago
Rene Cannao fbd0d9732b Add sqlite-vec static extension for vector search in ProxySQL
4 months ago
René Cannaò faa64a570d
Merge pull request #5259 from sysown/v3.0_mysql_monitor_cur_cmd_cmnt_fix
4 months ago
Javier Jaramago Fernández 5c8a32a0b0 Merge branch 'v3.0' of github.com:sysown/proxysql into v3.0-handle_unexp_ping
4 months ago
Rahim Kanji 91e20648f2 Fixed an issue where cur_cmd_cmnt was shared across threads
4 months ago
Javier Jaramago Fernández 6fea828e86 Improve logging in unexpected COM_PING packet handling
4 months ago
René Cannaò 88edaac61b
Merge pull request #5258 from sysown/misc251219
4 months ago
René Cannaò 0f7ff1f374
Merge branch 'v3.0' into v3.0_pgsql-query-digest-gen-5253
4 months ago
René Cannaò 2667540fcc
Merge pull request #5237 from sysown/v3.0_pgsql-monitor-sslsupport-5205
4 months ago
Javier Jaramago Fernández d0e88599ee Add special handling for unexpected COM_PING packets
4 months ago
Rene Cannao efe0d4fe61 Add extensive doxygen documentation for vacuum_stats and stats_pgsql_stat_activity
4 months ago
Rahim Kanji 5e75264bb3 Updated TAP test
4 months ago
Rahim Kanji 5b3805ad7a Refactored comment handling
4 months ago
Rahim Kanji e70fcbf021 * Add dedicated handling for double-quoted PostgreSQL identifiers
4 months ago
René Cannaò 6ee087c73c
Merge pull request #5250 from sysown/v3.0-issue5248
4 months ago
Rahim Kanji fd53642f12 Added pgsql-query_digests_stages_test-t to groups.json
4 months ago
Rahim Kanji 39728b2dc8 Add missing pgsql_tokenizer.cpp
4 months ago
Rahim Kanji 42864e8867 Improved Tokenizer for PostgreSQL
4 months ago
Rene Cannao 2987242d4f Fix cache_empty_result=0 not caching non-empty resultsets (issue #5248)
4 months ago
René Cannaò 5a314d2364
Merge pull request #4889 from sysown/v3.0_get_server_version
4 months ago
René Cannaò 8cf3e59ead
Merge pull request #5247 from sysown/v3.0-issue5246
4 months ago
Rene Cannao 0b2bc1bf22 Fix SQL injection vulnerability in Read_Global_Variables_from_configfile
4 months ago
Rahim Kanji fae283cf7e Add SSL and non-SSL connection OK metrics for PostgreSQL monitor connections
4 months ago
Rene Cannao 6c97d3d244 Add extensive Doxygen documentation for ProxySQL_Config and Read_Global_Variables_from_configfile
4 months ago
Rene Cannao 7ebdf561ca Fix automatic prefix stripping to work with libconfig lookup
4 months ago
Rene Cannao b4683569d6 Add automatic prefix stripping for mysql_variables, pgsql_variables, and admin_variables config parsing
4 months ago
Rene Cannao ec1247f2a9 Add Doxygen docs for MySQL_Data_Stream::check_data_flow()
4 months ago
Rene Cannao 4044a40794 Skip bidirectional data check for permanent fast-forward sessions
4 months ago
Rahim Kanji f507903743 Added nested comments support for PostgreSQL
5 months ago
Rahim Kanji 895c814c77 Added utility functions to support pgsql query digest testing
5 months ago
Rahim Kanji 285fb1b4e1 Add PostgreSQL dialect support: dollar-quoted strings, identifier quoting, and dialect-specific comment rules
5 months ago
René Cannaò b73160ef5f
Merge pull request #4901 from sysown/v3.0_wait_timeout
5 months ago
René Cannaò 0d55ab5ea2
Merge branch 'v3.0' into v3.0_get_server_version
5 months ago
Rene Cannao 5a7b22181f Fix metrics collection for wait_timeout counters
5 months ago
René Cannaò 65dbe904f0
Merge pull request #5199 from sysown/v3.0_refactor_monitoring_ping
5 months ago
Rene Cannao fbf5f2d762 Improve wait_timeout warning messages with detailed connection information
5 months ago
Rene Cannao dc4694d656 Refactor idle session scanning and improve test precision
5 months ago
Rene Cannao 0c5e75a064 Fix wait_timeout timeout calculations and add proper newline characters
5 months ago
Rene Cannao df515f91fa session: Add wait_timeout to proxysql internal session JSON
5 months ago
Rene Cannao 0a9dc9dd29 session: Add input validation for client wait_timeout with silent clamping
5 months ago
Rene Cannao 86cc7cd3da session: Fix wait_timeout member variable declaration and usage
5 months ago
René Cannaò b641c0d627
Merge pull request #5232 from sysown/fix/issue-4855
5 months ago
René Cannaò 0f719d3e7b
Merge pull request #5240 from sysown/v3.0-5062
5 months ago
Rene Cannao 5485bb02f4 Improve fast forward replication CLIENT_DEPRECATE_EOF validation
5 months ago
René Cannaò 3c4e09fec0
Merge pull request #5225 from sysown/v3.0_refactor_prepared_statement_cache_design_5211
5 months ago
Rahim Kanji 7205f424a2 Add SSL support for backend connections in PGSQL monitor
5 months ago
Rahim Kanji 9c0e14a5d1 Replace rand() with lock-free Xoshiro128++ PRNG
5 months ago
René Cannaò d188715a7d
Merge branch 'v3.0' into fix/issue-4855
5 months ago
René Cannaò ae30eea64e
Merge branch 'v3.0' into v3.0_get_server_version
5 months ago
René Cannaò 27714335ab
Merge pull request #5228 from sysown/v3.0-5212
5 months ago
Rene Cannao a577491f42 Refactor issue 4855 fix: Use sqlite3_total_changes64 difference approach
5 months ago