Skip to content

feat(integrations): added parallel AI, mySQL, and postgres block/tools#1126

Merged
waleedlatif1 merged 10 commits intostagingfrom
feat/integrations
Aug 24, 2025
Merged

feat(integrations): added parallel AI, mySQL, and postgres block/tools#1126
waleedlatif1 merged 10 commits intostagingfrom
feat/integrations

Conversation

@waleedlatif1
Copy link
Collaborator

Summary

added parallel AI, mySQL, and postgres block/tools

Type of Change

  • New feature

Testing

Tested all new additions manually.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Screenshots/Videos

PG:
Screenshot 2025-08-23 at 7 23 48 PM
Screenshot 2025-08-23 at 7 23 37 PM
Screenshot 2025-08-23 at 7 23 20 PM
Screenshot 2025-08-23 at 7 22 54 PM
Screenshot 2025-08-23 at 7 22 43 PM

MySQL:
Screenshot 2025-08-23 at 7 56 47 PM
Screenshot 2025-08-23 at 7 56 36 PM
Screenshot 2025-08-23 at 7 56 16 PM
Screenshot 2025-08-23 at 7 55 15 PM
Screenshot 2025-08-23 at 7 54 22 PM

@vercel
Copy link

vercel bot commented Aug 24, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs Ready Ready Preview Comment Aug 24, 2025 4:49am
sim Ready Ready Preview Comment Aug 24, 2025 4:49am

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.ts files
  • 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 sanitizeIdentifier functions 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

Edit Code Review Bot Settings | Greptile

@waleedlatif1 waleedlatif1 merged commit 766279b into staging Aug 24, 2025
2 of 4 checks passed
@waleedlatif1 waleedlatif1 deleted the feat/integrations branch August 24, 2025 04:43
icecrasher321 added a commit that referenced this pull request Aug 29, 2025
Sg312 pushed a commit that referenced this pull request Aug 30, 2025
arenadeveloper02 pushed a commit to arenadeveloper02/p2-sim that referenced this pull request Sep 19, 2025
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
arenadeveloper02 pushed a commit to arenadeveloper02/p2-sim that referenced this pull request Sep 19, 2025
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.

1 participant