# CloudSense DX MCP Server

An MCP (Model Context Protocol) server for CloudSense DX operations. Provides tools for managing orchestration process templates and other CloudSense-specific Salesforce operations.

## Installation

```bash
cd itxdevpro/mcp-cloudsense-server
pip install -e .
```

This installs the `cloudsense-dx-mcp` CLI command.

## Usage

### As a Cursor MCP Server

Add to `.vscode/mcp.json`:

```json
{
  "servers": {
    "CloudSense DX": {
      "command": "cloudsense-dx-mcp"
    }
  }
}
```

### Direct CLI

```bash
cloudsense-dx-mcp
```

The server communicates via stdio and is designed to be launched by MCP clients like Cursor.

## Tools

- **list_orchestration_templates** -- List/search orchestration process templates in a Salesforce org.
- **fetch_orchestration_templates** -- Fetch and save orchestration process templates as JSON files.

## Prompts

- **fetch-orchestration** -- Guided workflow that walks through template discovery, confirmation, and fetching.

## Prerequisites

- Salesforce CLI (`sf`) installed and authenticated (`sf org login web`)
- A default target-org set (`sf config set target-org <alias>`)
