{"slug": "datagrip-2026-2-ai-agent-skills-mcp-tools-and-cli-commands-for-data-source-jdbc", "title": "DataGrip 2026.2: AI Agent Skills, MCP Tools and CLI Commands for Data Source Management, Bundled JDBC Drivers, and Improved Session Control", "summary": "JetBrains released DataGrip 2026.2, adding AI agent skills for database operations, MCP tools for data source management, CLI commands for data sources, bundled JDBC drivers, and improved session control. The update introduces interactive onboarding and a redesigned Welcome screen to streamline the user experience.", "body_md": "# DataGrip 2026.2: AI Agent Skills, MCP Tools and CLI Commands for Data Source Management, Bundled JDBC Drivers, and Improved Session Control\n\nDataGrip 2026.2, the second major update of the year, is here! Let’s take a look at what’s inside.\n\n## AI\n\nThis release introduces three AI agent skills for working with databases: `database-tools`\n\n, `database-connection-management`\n\n, and `database-text-to-sql`\n\n. Together, they let AI agents explore and query connected databases, configure and update database connections, and generate SQL based on your database schema directly from the AI chat. The skills also include the corresponding MCP tools, so no additional setup is required.\n\nTo help agents work with data source management tasks, we’ve added two new MCP tools – `create_database_connection`\n\nand `edit_database_connection`\n\n– and included them in the `database-connection-management`\n\nskill. With these MCP tools and the new skill, you can, for example, ask an agent to create a new data source in chat, providing the connection details in your prompt.\n\nNext up is an update for those who work with AI agents in CLI. Now, before performing an operation on a database, an agent asks for your consent and shows you what it is about to do. SQL queries are syntax-highlighted for better readability:\n\nThis release also brings a number of smaller enhancements that make AI-assisted database workflows smoother and more reliable:\n\n- AI Assistant now remembers query results from previous interactions, so you can fetch additional rows without rerunning the query.\n- When an AI agent creates a database object, it appears in the\n*Database Explorer*right away. - AI agents are now better at resolving database objects. They can distinguish between objects that don’t exist and objects that haven’t been introspected yet.\n- Queries executed by AI agents are now included in the data source query history, making it easier to review AI-generated SQL alongside your own queries.\n- When an SQL query fails, AI agents now receive the database’s actual error message instead of a generic error, allowing them to respond more accurately.\n- The\n`list_database_connections`\n\nMCP tool no longer returns an output schema error when parameters with default values are provided.\n\nWe’ve also redesigned the schema attachment UI in the *AI Chat* tool window and removed the AI Assistant plugin requirement for database-specific MCP tools.\n\n## A smoother start\n\nWe’ve reworked the first steps a user takes in the IDE. The *Welcome* screen that you saw when starting DataGrip for the first time or after closing all projects – it used to be a modal dialog, but now it is a regular IDE tab. You can have it open and use the IDE at the same time. This new *Welcome* tab appears in the *default* project.\n\nIn this release, we’re also introducing an [interactive onboarding tour](https://www.jetbrains.com/help/datagrip/2026.2/feature-trainer.html). The tour shows you around the essential UI areas and walks through the IDE’s core features. It demonstrates key actions in the *Database Explorer *tool window, the data source settings dialog, query execution in a query console, viewing and working with query result sets, and submitting changes to a database.\n\n## CLI commands for data sources\n\nNow you can perform some actions on data sources in a [command-line interface (CLI)](https://www.jetbrains.com/help/datagrip/2026.2/cli-commands-for-data-sources.html). We’ve introduced the `list`\n\nand `manage`\n\ncommands that allow you to manage your connections and drivers. The syntax is:\n\n`datagrip dataSources <command> [options] [arguments]`\n\nIn this interface, a batch-processing approach is used. It means you can pass a JSON file containing multiple instructions instead of running one command per action. The tool processes them in a single session and returns the results in JSON, making it perfect for shell pipelines.\n\n## Connectivity\n\nNow there are three session control modes for you to switch between, depending on how you want to divide database connection sessions between clients (query console, data editor, and so on):\n\n*Single shared session*mode supports scenarios where you want to share a single connection across multiple clients.*Two sessions: shared and introspection*creates two sessions: one for introspection and the other for everything else.*Dedicated sessions*creates a new session for each client.\n\nTo help you create data sources more quickly without waiting for a JDBC driver to be downloaded, we’ve bundled a few drivers with the IDE. Now, DataGrip includes the following drivers:\n\n- Microsoft SQL Server ver. 13.2.1\n- MongoDB ver. 1.21\n- MySQL Connector/J ver. 9.5.0\n- PostgreSQL ver. 42.7.3\n- Redis ver. 1.6\n\nSwitching between database roles and warehouses just got a lot faster, too. If you work in Snowflake, you no longer need to manually execute `SET ROLE`\n\ncommands or dig through connection settings to change your permissions for the current session. A new dropdown menu in the query console toolbar lets you swap between available roles and warehouses instantly.\n\n## Working with data\n\nWe’ve made it possible to set grid cell values using SQL expressions instead of being limited to literal values. With the new *SQL Expression* mode in the data editor, you can enter any valid SQL expression into a cell, for example, `NOW()`\n\n, and DataGrip will use the result as the new cell value. When you submit the changes, the IDE incorporates your expression directly into the generated `UPDATE`\n\nor `INSERT`\n\nstatement without escaping it as a string.\n\nThe new mode also allows you to enter values that begin with `0x`\n\nin numeric columns. Now you can just turn the *SQL Expression* mode on and enter the value, instead of running SQL commands to update the cell.\n\n## Database explorer\n\nThe *Database Explorer* tool window now has a redesigned empty state that offers quick actions for data source creation, including those described in our [quick start guide](https://www.jetbrains.com/help/datagrip/2026.2/quick-start-guide.html).\n\nWith the reworked database colors system, it is easier to assign a color to a data source, database object, or folder using a fresh and consistent UI. The behavior of custom colors has been significantly improved, making the shades suit both the light and dark IDE themes. Custom colors are now available for data source folders, too. For better discoverability, we’ve moved the database colors settings to the main IDE *Settings* dialog under *Settings* | *Database* | *Database Explorer*.\n\nFor database objects that have the same prefix, *Database Explorer* can now put them into individual groups. The group gets the prefix name. For example, `my_table01`\n\nand `my_table02`\n\nare grouped under `my_`\n\n, and their names are displayed as `table01`\n\nand `table02`\n\nwithin the group. Currently, the following characters are treated as prefix delimiters: `_`\n\n, `-`\n\n, and `$`\n\n.\n\nIf you want to delete data source folders that contain other folders or data sources, select the items, right-click them, and then select *Drop*. DataGrip will ask for confirmation and display the list of items to be deleted.\n\n*Explain Plan* menu and actions\n\nFollowing user feedback, we’ve brought back the raw format actions that were removed in the previous release. Now, to open an explain plan in raw format, click the *Raw* button on the left-hand toolbar of the *Query Plan* tab. It will open the *Raw* inner tab. If you’re already viewing the raw explain plan, this button says *Show Tree* and opens the *Operations Tree* inner tab. To add the raw format actions to the *Explain Plan* dropdown, go to *Settings* | *Appearance & Behavior* | *Menus and Toolbars*, select *Explain Plan*,* *and* *click *Add*.\n\n## Query files and consoles\n\nNow, you can use variables to add more details to query console names in the editor tab headers. For example, you can add the attached data source, database, schema, or search path. To use them, go to *Settings* | *Database* | *Query Files and Consoles*. To add a variable to a console name, place the caret where you want to insert it in the *Template* field and click the corresponding variable button.\n\n## Code editor\n\nIn the code editor, you can now find the execution time right next to each query. After a query is executed, DataGrip displays its execution time on the first line of the query.\n\nWe’ve significantly expanded ClickHouse and Snowflake SQL support by including new syntax, improved syntax recognition, and support for additional statements and functions, such as ClickHouse query parameters and `SYSTEM`\n\nstatements, and Snowflake flow operations, `DATABASE ROLE`\n\nsyntax, and `HASH`\n\nfunctions.\n\nIf you’re interested in upgrading to DataGrip 2026.2, or if you have any questions or suggestions, here are a few links you might find useful:\n\n[Download DataGrip 2026.2](https://www.jetbrains.com/datagrip/download/).- Visit our\n[What’s New page](https://www.jetbrains.com/datagrip/whatsnew/)for the full list of improvements. - Contact us on\n[X](https://twitter.com/datagrip). - Report any bugs to\n[our issue tracker](https://youtrack.jetbrains.com/issues/DBE)\n\nThe DataGrip team\n\n#### Subscribe to DataGrip Blog updates", "url": "https://wpnews.pro/news/datagrip-2026-2-ai-agent-skills-mcp-tools-and-cli-commands-for-data-source-jdbc", "canonical_source": "https://blog.jetbrains.com/datagrip/2026/07/16/datagrip-2026-2-ai-agent-skills-mcp-tools-and-cli-commands-for-data-source-management-bundled-jdbc-drivers-and-improved-session-control/", "published_at": "2026-07-16 14:51:54+00:00", "updated_at": "2026-07-17 09:22:25.474688+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools", "ai-agents"], "entities": ["JetBrains", "DataGrip"], "alternates": {"html": "https://wpnews.pro/news/datagrip-2026-2-ai-agent-skills-mcp-tools-and-cli-commands-for-data-source-jdbc", "markdown": "https://wpnews.pro/news/datagrip-2026-2-ai-agent-skills-mcp-tools-and-cli-commands-for-data-source-jdbc.md", "text": "https://wpnews.pro/news/datagrip-2026-2-ai-agent-skills-mcp-tools-and-cli-commands-for-data-source-jdbc.txt", "jsonld": "https://wpnews.pro/news/datagrip-2026-2-ai-agent-skills-mcp-tools-and-cli-commands-for-data-source-jdbc.jsonld"}}