Repository navigation
Commit 2ce3666
authored
Update mcp_server_sqlite to use robust text encoding by default
The Claude Desktop client will hang in Windows when utilizing extended/multibyte characters in sqlite as a result of decoding errors. The decoding errors are resolved by using UTF-8 encoding.
Configuring Windows to use UTF-8 in place of windows-1252 makes the default server behavior consistent with macOS.
os.environ PYTHONIOENCODING is checked as to not interfere with an environment override, such as:
{
"mcpServers": {
"sqlite": {
"command": "uvx",
"args": [
"mcp-server-sqlite", "--db-path", "./example.db"
],
"env": {
"PYTHONIOENCODING": "utf-8"
}
}
}
}1 parent 926d86c commit 2ce3666
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
12 | 20 | | |
13 | 21 | | |
14 | 22 | | |
| |||
0 commit comments