-
Notifications
You must be signed in to change notification settings - Fork 989
Description
Describe the bug
We are encountering issues when using the Redshift MCP through Claude and Visual Studio Code. The MCP successfully connects and lists clusters and databases, but after running a query that fails (for example, due to an invalid SQL statement), subsequent queries consistently fail with the following error:
Error executing tool execute_query: Statement failed: ERROR: current transaction is aborted, commands ignored until end of transaction block
It appears that once a query execution fails, the session or transaction remains in an aborted state, and all following queries return this error until the MCP connection is reset.
Expected Behavior
After an individual query error, the MCP should handle the failure gracefully and continue to execute future valid queries without requiring a reset.
Current Behavior
When the Redshift MCP executes a query that fails (for example, due to invalid SQL syntax or referencing a non-existent table), the session appears to enter a persistent error state. After this initial failure, every subsequent query attempt returns the same error.
Reproduction Steps
1. Connect to Redshift MCP from Claude or Visual Studio Code.
2. Verify connectivity by running a valid query, for example:
SELECT 1;
→ Query executes successfully.
3. Run an invalid query, for example:
SELECT * FROM non_existent_table;
→ Query fails as expected (due to invalid table reference).
4. Immediately try running another valid query, such as:
SELECT 1;
→ Observe that the MCP now returns the following error:
Statement failed: ERROR: current transaction is aborted, commands ignored until end of transaction block
Possible Solution
No response
Additional Information/Context
No response
OS
Mac
Server
other
Server Version
No response
Region experiencing the issue
us-east-1
Other information
No response
Service quota
- I have reviewed the service quotas for this construct
Metadata
Metadata
Assignees
Labels
Type
Projects
Status