feat(integrations): added parallel AI, mySQL, and postgres block/tools#1126
feat(integrations): added parallel AI, mySQL, and postgres block/tools#1126waleedlatif1 merged 10 commits intostagingfrom
Conversation
There was a problem hiding this comment.
Greptile Summary
This PR introduces comprehensive database and search integrations for the Sim platform by adding MySQL, PostgreSQL, and Parallel AI blocks and tools. The changes follow the established architectural patterns with proper module organization, tool registry updates, and comprehensive documentation.
MySQL Integration: Adds a complete MySQL database toolkit with five operations (query, insert, update, delete, execute) that allows users to connect to MySQL databases with SSL support and perform standard CRUD operations. The implementation includes proper parameter validation, connection management, and response transformation.
PostgreSQL Integration: Mirrors the MySQL implementation by providing identical database operations for PostgreSQL databases. The integration uses the pg client library and includes SSL configuration options (disable, require, prefer) for secure connections.
Parallel AI Integration: Introduces web search capabilities through Parallel AI's API, providing an alternative to existing search tools like Serper. The tool supports intelligent content processing with configurable processors (base vs pro) and customizable result limits.
Architecture & Implementation: All three integrations follow the established patterns with:
- Block configurations in
apps/sim/blocks/blocks/with proper UI parameter definitions and tool mappings - Individual tool implementations in
apps/sim/tools/[provider]/with separate files for each operation - API endpoints in
apps/sim/app/api/tools/[provider]/for backend processing - Comprehensive TypeScript interfaces in
types.tsfiles - Complete documentation in
apps/docs/content/docs/tools/ - Proper icon additions to the icon library
- Registry updates for both blocks and tools
The database integrations support flexible parameter visibility where connection credentials are user-only while operational parameters (table names, queries) are user-or-llm to enable both manual configuration and LLM-driven operations in agent workflows.
Confidence score: 1/5
- This PR contains critical security vulnerabilities that make it unsafe to merge without significant modifications
- Multiple SQL injection vulnerabilities exist in the database utilities where the
sanitizeIdentifierfunctions return input unchanged and WHERE clauses are not parameterized - Pay immediate attention to
apps/sim/app/api/tools/mysql/utils.ts,apps/sim/app/api/tools/postgresql/utils.ts, and all database API endpoints that handle raw SQL execution
41 files reviewed, 27 comments
simstudioai#1126) * feat(integrations): added parallel ai block/tool and corresponding docs * add postgres block * added mysql block * enrich docs for Postgres and MySQL * make password fields user only for mysql and postgres * fixed build * ack greptile comments * fix PR comments * remove search_id from parallel ai * fix parallel ai params
…ock/tools (simstudioai#1126)" This reverts commit 766279b.
Summary
added parallel AI, mySQL, and postgres block/tools
Type of Change
Testing
Tested all new additions manually.
Checklist
Screenshots/Videos
PG:





MySQL:




