From 4613c3c9d90b2c6db0aa00d22f75739556485f75 Mon Sep 17 00:00:00 2001 From: Nicolas Bouliol Date: Tue, 14 Apr 2026 10:54:23 +0200 Subject: [PATCH] chore: add debugger config to run standalone mcp --- .vscode/launch.json | 35 +++++++++++++++++++++++++++++++++++ .vscode/tasks.json | 14 ++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000000..65ffff0a11 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,35 @@ +{ + // 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": [ + { + "type": "node", + "request": "launch", + "name": "Launch standalone mcp-server", + "skipFiles": ["/**"], + "program": "dist/cli.js", + "outFiles": [], + "sourceMaps": true, + "cwd": "${workspaceFolder}/packages/mcp-server", + "preLaunchTask": "build-all", + "runtimeExecutable": "node", + "console": "integratedTerminal", + "internalConsoleOptions": "neverOpen", + "env": { + "FOREST_APP_URL": "https://app.development.forestadmin.com", + "NODE_TLS_REJECT_UNAUTHORIZED": "0", + "FOREST_SERVER_URL": "https://api.development.forestadmin.com", + "FOREST_URL": "https://api.development.forestadmin.com", + + // Fill these with the secrets from the project you want to connect to + "FOREST_AUTH_SECRET": "", + "FOREST_ENV_SECRET": "", + + // comment this to enable all tools + "FOREST_MCP_ENABLED_TOOLS": "list,details" + } + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000000..84a934382a --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,14 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build-all", + "type": "shell", + "command": "yarn build", + "group": "build", + "options": { + "cwd": "${workspaceFolder}" + } + } + ] +}