Skip to content

Instantly share code, notes, and snippets.

@philipz
Created June 11, 2025 15:35
Show Gist options
  • Save philipz/4cb234782c9b358c3260e11d1cbca1e3 to your computer and use it in GitHub Desktop.
Save philipz/4cb234782c9b358c3260e11d1cbca1e3 to your computer and use it in GitHub Desktop.
VSCode debug MCP launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug with MCP Inspector",
"type": "node",
"request": "launch",
"runtimeExecutable": "npx",
"runtimeArgs": [
"@modelcontextprotocol/inspector",
"node",
"${workspaceFolder}/dist/index.js"
],
"preLaunchTask": "typescript: build",
"env": {
"DATA_DIR": "${workspaceFolder}/data",
"ENABLE_THOUGHT_CHAIN": "true",
"TEMPLATES_USE": "zh",
"ENABLE_GUI": "true"
},
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"console": "integratedTerminal",
"skipFiles": [
"<node_internals>/**",
"node_modules/**"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment