Can not Add, Update, Delete, Modify MCP Server anymore
Describe the bug
I can not add MCP Server anymore.
For example, i try to add Brave. To work on my Windows Computer i should use something like this:
If i paste with some double backslash it will remove some backslash.
{
"mcpServers": {
"brave-search": {
"transport": "stdio",
"enabled": true,
"command": "cmd.exe",
"args": [
"/c",
"C:\\Program Files\\nodejs\\npx.cmd",
"--y",
"@modelcontextprotocol/server-brave-search"
],
"env": {
"BRAVE_API_KEY": "ABCD"
},
"url": null,
"headers": null
}
}
}
Error Message
| dive_mcp_host.host.errors.McpSessionGroupError: Client initialization error for brave-search: (UnicodeDecodeError('utf-8', b"'C:\\Program' n'est pas reconnu en tant que commande interne\r\nou externe, un programme ex\x82cutable ou un fichier de commandes.\r\n", 88, 89, 'invalid start byte'),) (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "C:\Program Files\Dive\resources\python\Lib\site-packages\dive_mcp_host\host\tools\stdio_server.py", line 84, in stderr_reader | async for line in TextReceiveStream( | File "C:\Program Files\Dive\resources\python\Lib\site-packages\anyio\abc\_streams.py", line 35, in __anext__ | return await self.receive() | ^^^^^^^^^^^^^^^^^^^^ | File "C:\Program Files\Dive\resources\python\Lib\site-packages\anyio\streams\text.py", line 48, in receive | decoded = self._decoder.decode(chunk) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "<frozen codecs>", line 322, in decode | UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 88: invalid start byte +------------------------------------
But it will write "C:\Program Filesodejspx.cmd" in the left section:
If i try to fix it il like this "C:\Program Files\nodejs\npx.cmd"
and save, it will load infinitly without never stopping
I cannot use NPX and sometime i should do:
{ "mcpServers": { "markdown-downloader": { "transport": "stdio", "enabled": true, "command": "node", "args": [ "C:\Users\LENOVO\OneDrive\Documents\Flowvibe\MCP\markdown-downloader\build\index.js" ], "env": {}, "url": null, "headers": null } } }
Everything worked well before but now, i have a lot of MCP Servers working on others MCP Clients but not on Dive.
I do not know if the json is coromptrf or what but there's no way to edit MCP Server at all. (Me be some json validation problem???)
adding, enable or diseable MCP Server are also so slow. Try to do this in Cline, Roo Code ect it do not try to update every server, and it very fast. To open Faster, Claude Desktop stopped to load all server to start the app. You can start to navigate or write chat prompt before all server are finish to load.
Everything worked well before but now, i have a lot of MCP Servers working on others MCP Clients but not on Dive.
@onigetoc Was it working normally in 0.8.6? Did these problems only start occurring after upgrading to 0.8.7?
@onigetoc Can you try this configuration?
{
"mcpServers": {
"brave-search": {
"transport": "stdio",
"enabled": true,
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-brave-search"
],
"env": {
"BRAVE_API_KEY": "ABCD"
},
"url": null,
"headers": null
}
}
}
node and npx should already be included in the dive on Windows.
I updated to 0.8.7 There's a lot of instability adding, removing mcp server. MCP Brave Search stopped working, Try to enable it but it loaded infinitly. I closed Dive, reopen it and sudently my MCP easy installer and Brave search mcp did work. there's still a double backslash bug when i add path like this:
"args": [
"C:\\Users\\USERNAME\\APPS\\0-MCP\\mcp-easy-installer\\build\\index.js"
],
when pasting the server json like:
"mcp-playwright": {
"command": "node",
"args": [
"C:\\Users\\LENOVO\\OneDrive\\Documents\\MCP\\mcp-playwright\\dist\\index.js"
]
},
Hi @onigetoc Thank you for your report.
We don't use Windows much in our development environment. We will verify this issue in the environment next Monday to see if we can reproduce the same situation and ensure this feature works properly.