MCP server for CloudSense DX operations (orchestration templates, etc.)
Project description
CloudSense DX MCP Server
An MCP (Model Context Protocol) server for CloudSense DX operations on Salesforce orgs. Provides tools for managing orchestration process templates, running anonymous Apex with savepoint safety, and other CloudSense-specific operations.
Quick Start
1. Install Prerequisites
- Salesforce CLI (
sf) -- Install Guide - uv (Python package runner) -- Install Guide
- At least one authorized Salesforce org:
sf org login web --alias my-org
- (Optional) Set a default target org for your project:
sf config set target-org my-org
2. Configure in Your MCP Client
Add the CloudSense DX MCP server to your client's MCP configuration. The recommended way is via uvx, which automatically installs and runs the latest version.
MCP Client Configurations
Cursor
Add to your project's .cursor/mcp.json (project-level) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"CloudSense DX": {
"command": "uvx",
"args": ["cloudsense-dx-mcp"]
}
}
}
VS Code (Copilot)
Add to .vscode/mcp.json in your project:
{
"servers": {
"CloudSense DX": {
"command": "uvx",
"args": ["cloudsense-dx-mcp"]
}
}
}
Claude Code
Add to .mcp.json in your project:
{
"mcpServers": {
"CloudSense DX": {
"command": "uvx",
"args": ["cloudsense-dx-mcp"]
}
}
}
Cline
Add to your Cline cline_mcp_settings.json:
{
"mcpServers": {
"CloudSense DX": {
"command": "uvx",
"args": ["cloudsense-dx-mcp"]
}
}
}
Windsurf
Add to your Windsurf MCP configuration:
{
"mcpServers": {
"CloudSense DX": {
"command": "uvx",
"args": ["cloudsense-dx-mcp"]
}
}
}
Other MCP Clients
For any other MCP client, use the same pattern -- set the command to uvx with cloudsense-dx-mcp as the argument. Refer to your client's documentation for the exact config file location.
Alternative Installation Methods
Using pip
pip install cloudsense-dx-mcp
Then configure your MCP client with:
{
"command": "cloudsense-dx-mcp"
}
From Source (Development)
git clone https://github.com/ash-agarwalcs/cloudsense-dx-mcp.git
cd cloudsense-dx-mcp
pip install -e .
Direct CLI
You can also run the server directly from the command line:
# Via uvx (no install needed)
uvx cloudsense-dx-mcp
# Via pip install
cloudsense-dx-mcp
The server communicates via stdio and is designed to be launched by MCP clients.
Tools
list_orchestration_templates
List, search, or discover CloudSense orchestration process templates in a Salesforce org.
| Parameter | Type | Required | Description |
|---|---|---|---|
org_alias |
string | No | Org alias or partial hint (e.g. itxdevpro, devpro). Auto-resolved if omitted. |
search_term |
string | No | Filter templates by name (case-insensitive substring match). |
Example prompts:
- "List all orchestration templates"
- "Search for templates containing 'Internet CPE'"
- "Show me templates from devpro"
fetch_orchestration_templates
Fetch and save orchestration process templates as JSON files. Templates are saved to deployment_data/orchestration_templates/<org>/<timestamp>/.
| Parameter | Type | Required | Description |
|---|---|---|---|
org_alias |
string | No | Org alias or partial hint. Auto-resolved if omitted. |
template_names |
string[] | No | Specific template names to fetch. Fetches ALL if omitted. |
max_workers |
integer | No | Parallel workers for concurrent fetching. Default: 5. |
Example prompts:
- "Fetch all orchestration templates"
- "Download the Internet CPE Terminate Flow template"
- "Get templates from sit org"
run_apex
Execute anonymous Apex code on a Salesforce org with automatic savepoint safety.
| Parameter | Type | Required | Description |
|---|---|---|---|
apex_code |
string | Yes | The anonymous Apex code to execute. |
org_alias |
string | No | Org alias or partial hint. Auto-resolved if omitted. |
allow_dml |
boolean | No | Set to true to persist data changes. Default: false (rolls back). |
timeout_seconds |
integer | No | Max execution time. Default: 120. |
Example prompts:
- "Run this Apex query on the org"
- "Execute this CloudSense API call"
- "Query all accounts with Apex"
Prompts
fetch-orchestration
A guided workflow that walks through template discovery, user confirmation, and parallel fetching. Useful for interactive sessions.
Org Resolution
The server handles org resolution automatically -- you don't need to specify an org for every request.
Resolution priority:
- Explicit org -- If you mention an org (e.g. "from itxdevpro"), it's used directly.
- Partial matching -- Partial hints like "devpro" are fuzzy-matched against your authenticated orgs. If multiple orgs match, you'll be asked to choose.
- Session memory -- Within a chat session, the server remembers the last org used and reuses it for subsequent requests.
- Workspace default -- Falls back to the project's default target-org (
sf config get target-org).
Every tool response includes org and org_source fields so you always know which org was used and how it was resolved.
Prerequisites
| Requirement | Details |
|---|---|
| Python | >= 3.10 |
Salesforce CLI (sf) |
Install and authenticate at least one org |
| uv (recommended) | Install for uvx usage |
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cloudsense_dx_mcp-0.2.2.tar.gz.
File metadata
- Download URL: cloudsense_dx_mcp-0.2.2.tar.gz
- Upload date:
- Size: 57.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56b6ad4aba0272ede8543eba830a2d29e552d9fcb0700ba31a8cab1c729d9b4e
|
|
| MD5 |
f543da1ca4070c7e268261592526386f
|
|
| BLAKE2b-256 |
cef718dcb46395852e3c31cb9217a39d3893d18b2ab6769aafbae50ac872bdea
|
File details
Details for the file cloudsense_dx_mcp-0.2.2-py3-none-any.whl.
File metadata
- Download URL: cloudsense_dx_mcp-0.2.2-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
596e1f985537dd305b40dbe3b79d0318db08c54093207ba14eb038ff2685a1f8
|
|
| MD5 |
8e5d0e4038ab3ec9e7bcf0ed8016ac7b
|
|
| BLAKE2b-256 |
6b7ebf14b474e910794b442920f9b63f8a9deb9a5277bf26b7c0c77cf970252b
|