Max from m-creations
08/28/2025, 10:15 AMreshma
08/28/2025, 3:24 PMMax from m-creations
08/29/2025, 7:35 AMnpm run build. I created the bot in the webapp, because for the CLI it is Forbidden (see my message here: https://discord.com/channels/905144809105260605/1111343068390641776/1410614271611506699). From there I went back to the CLI, and saved and deployed the bot wit npx medplum bot save and npx medplum bot deploy.
2: Before that I also tried to create, save and deploy a bot with the ssh2-sftp-client dependency from within the webapp and the integrated code editor with the same result.
Further details: You could use the sample bot-code from here to reproduce: https://github.com/medplum/medplum-demo-bots/blob/main/src/sftp-upload.ts
The directory I use for the local coding of the bot is a clone of the medplum-demo-bots repo where I removed the existing bots from src/ and medplum.config.json. I have Medplum deployed locally from docker-compose.full-stack.yml with no config changes.
Thanks for your help, regards from Germany, Maxrahul1
08/29/2025, 4:43 PMrahul1
08/29/2025, 4:44 PMrahul1
08/29/2025, 4:49 PMrahul1
08/29/2025, 4:49 PMrahul1
08/29/2025, 4:49 PMMax from m-creations
09/03/2025, 1:18 PMnode_modules from the bot-layer dependencies, and thus the bot executes with the import of ssh2-sftp-client without a problem, when you run the server from source on your PC.
After I understood that I just added the dependency to the server package and built a custom docker image locally.
If there is any way I can help with the issue or the docs, please let me know.
Thanks for your help and regards from Berlin, Max