Summary
Goal: To use the discogs mcp server https://github.com/cswkim/discogs-mcp-server with CommandCode.
I attempted (but pretty certain did not do correctly) to setup the mcp server with
cmd mcp add discogs --transport stdio discogs
which I knew was incomplete but I figured I could get it started and then fix after with my api key and other config setup.
However, on launch cmd, it throws a CRITICAL: Uncaught Exception!:
dt-music-catalog HEAD % cmd mcp add discogs --transport stdio discogs
✓ Added MCP server 'discogs' to local config
Command: discogs
Next steps:
Start cmd and run /mcp to manage configured MCP servers.
dt-music-catalog HEAD % cmd
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░███████░███████░███████████░███████████░███████░████████░░░░████░░░
░░░███░███░██░░███░███░███░███░███░███░███░███░███░███░░███░███████░░░
░░░███░░░░░██░░███░███░███░███░███░███░███░███████░███░░███░███░███░░░
░░░███░███░██░░███░███░███░███░███░███░███░███████░███░░███░███░███░░░
░░░███████░███████░███░███░███░███░███░███░███░███░███░░███░███████░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
# Command Code v0.26.7
# models: step-3.5-flash · taste-1
# ~/projects/music-catalog/dt-music-catalog
✖ CRITICAL: Uncaught Exception!
This is an unexpected error. Please file a bug report at https://github.com/CommandCodeAI/command-code/issues/new
✖ ERROR → Error
ℹ REASON → spawn discogs ENOENT
ℹ ERROR STACK ↓
Error: spawn discogs ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:507:16)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
ℹ Request ID: unknown
Share this ID with support to help debug your issue.
Based on the docs in the mcp server readme , I'm not exactly sure how to setup using CommandCode.
Also, the add-json option is unforgiving given in needs quoted strings and may not like newlines especially given many mcp setup instructions use:
{
"mcpServers": {
"discogs": {
"command": "npx",
"args": [
"-y",
"discogs-mcp-server"
],
"env": {
"DISCOGS_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}
And that does not match the input needed as Inthink cmd expected just that inner command... part and maybe a required transport?
More documentation and examples or UX improvements to quickly setup and configure MCPs given many have Cursor and Claude instructions having something compatible to use would be helpful
Expected Behavior
I can use the configured server. UX for adding json and mcp congig is easier and more forgiving to use.
Actual Behavior
CRITICAL: Uncaught Exception! in spawn <mcp-name> ENOENT
Steps to reproduce the issue
Setup / use https://github.com/cswkim/discogs-mcp-server
dt-music-catalog HEAD % cmd mcp add discogs --transport stdio discogs
✓ Added MCP server 'discogs' to local config
Command: discogs
Next steps:
Start cmd and run /mcp to manage configured MCP servers.
dt-music-catalog HEAD % cmd
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░███████░███████░███████████░███████████░███████░████████░░░░████░░░
░░░███░███░██░░███░███░███░███░███░███░███░███░███░███░░███░███████░░░
░░░███░░░░░██░░███░███░███░███░███░███░███░███████░███░░███░███░███░░░
░░░███░███░██░░███░███░███░███░███░███░███░███████░███░░███░███░███░░░
░░░███████░███████░███░███░███░███░███░███░███░███░███░░███░███████░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
# Command Code v0.26.7
# models: step-3.5-flash · taste-1
# ~/projects/music-catalog/dt-music-catalog
✖ CRITICAL: Uncaught Exception!
This is an unexpected error. Please file a bug report at https://github.com/CommandCodeAI/command-code/issues/new
✖ ERROR → Error
ℹ REASON → spawn discogs ENOENT
ℹ ERROR STACK ↓
Error: spawn discogs ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:507:16)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
ℹ Request ID: unknown
Share this ID with support to help debug your issue.
Based on the docs in the mcp server readme , I'm not exactly sure how to setup using CommandCode.
Also, the add-json option is unforgiving given in needs quoted strings and may not like newlines especially given many mcp setup instructions use:
{
"mcpServers": {
"discogs": {
"command": "npx",
"args": [
"-y",
"discogs-mcp-server"
],
"env": {
"DISCOGS_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}
Command Code Version
v0.26.7
Operating System
macOS
Terminal/IDE
No response
Shell
No response
Additional context
Note I found where CommandCode stored the mcp.json and it looks like:
{
"mcpServers": {
"discogs": {
"transport": "stdio",
"enabled": true,
"command": "discogs"
}
}
}
I'm going to update that manually and try to use ... and yes I got it working by just editing the mcp.json in my config to one of the { "mcpServers": { "discogs": { "command": "npx", "args": ["-y", "discogs-mcp-server"], "env": { "DISCOGS_PERSONAL_ACCESS_TOKEN": examples provided.
No response
Summary
Goal: To use the discogs mcp server https://github.com/cswkim/discogs-mcp-server with CommandCode.
I attempted (but pretty certain did not do correctly) to setup the mcp server with
cmd mcp add discogs --transport stdio discogswhich I knew was incomplete but I figured I could get it started and then fix after with my api key and other config setup.
However, on launch cmd, it throws a
CRITICAL: Uncaught Exception!:Based on the docs in the mcp server readme , I'm not exactly sure how to setup using CommandCode.
Also, the
add-jsonoption is unforgiving given in needs quoted strings and may not like newlines especially given many mcp setup instructions use:{ "mcpServers": { "discogs": { "command": "npx", "args": [ "-y", "discogs-mcp-server" ], "env": { "DISCOGS_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>" } } } }And that does not match the input needed as Inthink cmd expected just that inner command... part and maybe a required transport?
More documentation and examples or UX improvements to quickly setup and configure MCPs given many have Cursor and Claude instructions having something compatible to use would be helpful
Expected Behavior
I can use the configured server. UX for adding json and mcp congig is easier and more forgiving to use.
Actual Behavior
CRITICAL: Uncaught Exception! in
spawn <mcp-name> ENOENTSteps to reproduce the issue
Setup / use https://github.com/cswkim/discogs-mcp-server
Based on the docs in the mcp server readme , I'm not exactly sure how to setup using CommandCode.
Also, the
add-jsonoption is unforgiving given in needs quoted strings and may not like newlines especially given many mcp setup instructions use:{ "mcpServers": { "discogs": { "command": "npx", "args": [ "-y", "discogs-mcp-server" ], "env": { "DISCOGS_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>" } } } }Command Code Version
v0.26.7
Operating System
macOS
Terminal/IDE
No response
Shell
No response
Additional context
Note I found where CommandCode stored the mcp.json and it looks like:
{ "mcpServers": { "discogs": { "transport": "stdio", "enabled": true, "command": "discogs" } } }I'm going to update that manually and try to use ... and yes I got it working by just editing the mcp.json in my config to one of the
{ "mcpServers": { "discogs": { "command": "npx", "args": ["-y", "discogs-mcp-server"], "env": { "DISCOGS_PERSONAL_ACCESS_TOKEN":examples provided.No response