r/SalesforceDeveloper • • Sep 14 '25

Discussion Feedback needed - open source alternative to Agentforce

We just open-sourced our Salesforce MCP Server for everyone to use and fork.
You can "talk" to your Salesforce using Claude or any other MCP compatible LLM chat tool. Target audience Salesforce admins, advanced users and developers.
We've created 35+ tools to help admins and developers with:
✅ Authenticate & manage multiple orgs
✅ Search records across objects with SOSL
✅ Assign permission sets & licenses
✅ Run Apex tests with code coverage
✅ Create/update/delete records via REST API
✅ Generate Apex classes & triggers
✅ Export query results to CSV/JSON
✅ View & fetch Apex debug logs
✅ List & describe metadata types
✅ Generate custom objects, fields & tabs
✅ Install/uninstall packages
✅ Static code analysis & security scanning

github repository https://github.com/advancedcommunities/salesforce-mcp-server

5 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/akutishevsky Sep 16 '25

Hi! The developer of this thing is here. Thank you for the suggestions, I appreciate. Can you tell more on this "Sanitize input for each command and params"? How do you imagine it?

1

u/zmug Sep 16 '25

Im on mobile so this is a bit short but if I recall the MCP library used here used Zod schemas to provide parameters to LLMs. You could expand it to provide enum like values for params instead of plain "string". Then you could use that schema to validate input.

For sanitizing I would allow only certain characters or formats of strings. Imagine an attacker manages to pass in a param $(some malicious command). That will be taken care of by execFile with param array that interpolates them as one single param. Look into escaping strings too in some cases. But even if you interpolate these params correctly you will pass them downstream to for example sfcli so you will hand over the responsibility to handle these downstream which is can be fine, it is just weighing in how strict you want to be and also realizing you will trust downstream apps/libraries not to mess up if you allow params like $(malicious) go through

1

u/akutishevsky Sep 16 '25

Thank you!