Skip to content

Commit a417761

Browse files
authored
Update 2025-07-22-oops-copilot-deployed-to-prod.md
1 parent 2c4bab4 commit a417761

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

_posts/2025-07-22-oops-copilot-deployed-to-prod.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The short of it is...I asked Copilot to change the connection used by the MSSQL
1515

1616
So let's set up a worst case scenario and see what happens.
1717

18-
---
18+
----
1919

2020
## Setting up the environment
2121

@@ -54,6 +54,8 @@ And finally, it's time to set up the MCP server connection. In this case, I'm go
5454
}
5555
```
5656

57+
----
58+
5759
## Let's deploy to prod by accident on purpose
5860

5961
We're finally ready to cause some problems. By this point you should have everything set up and ready to go...VS Code, Copilot, Agent Mode, two databases to play with, MSSQL Extension with a database connection configured for each database and the MSSQL MCP Server configured to point at the production connection string.
@@ -94,6 +96,8 @@ The problem is that Copilot is unaware of what happens within an MCP server, nor
9496

9597
Unfortunately, Copilot has no idea what's going on inside of an MCP server. All it knows about is the output provided back to it and in the case of creating our table, the MCP server simply returned a success message. It had no idea the server actually connected to an entirely different database.
9698

99+
----
100+
97101
## Moral of the story?
98102

99-
Mind your P's and Q's. As long as the MCP server requires a hard-coded connection string for its connection, this problem is going to exist and it's going to pop up. I wouldn't be surprised if this hasn't already caused some problems.
103+
Mind your P's and Q's. As long as the MCP server requires a hard-coded connection string for its connection, this problem is going to exist and it's going to pop up. I wouldn't be surprised if this hasn't already caused some problems.

0 commit comments

Comments
 (0)