Skip to main content

MCP server for CloudSense package upgrade assessment, analysis, and impact verification.

Project description

CloudSense Upgrade Compass

MCP server for CloudSense package upgrade assessment, analysis, and impact verification.

What it does

Given a Salesforce org with CloudSense packages installed, this MCP server:

  1. Discovers installed packages and their versions
  2. Pulls customer metadata (Apex, LWC, Aura, objects, flows, etc.)
  3. Clones CloudSense package repos for from-version and to-version
  4. Runs package diff analysis (breaking changes, new features, bug fixes)
  5. Analyzes customer codebase impact (which customer files reference changed APIs)
  6. Verifies API compatibility (signature-level SAFE/BREAKING verdicts)
  7. Maps test coverage gaps (which impacted files lack test coverage)
  8. Generates a comprehensive upgrade report with phasing, effort, and risk

Prerequisites

  • Python 3.10+
  • Salesforce CLI (sf) installed
  • GitHub CLI (gh) installed or SSH keys configured

Installation

# Via uvx (recommended)
uvx cloudsense-upgrade-compass

# Or install locally for development
uv pip install -e ".[dev]"

Configuration

Cursor IDE

Go to Settings > MCP Servers and add:

{
  "mcpServers": {
    "cloudsense-upgrade-compass": {
      "command": "uvx",
      "args": ["cloudsense-upgrade-compass"]
    }
  }
}

Claude CLI (terminal)

claude mcp add cloudsense-upgrade-compass -- uvx cloudsense-upgrade-compass

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "cloudsense-upgrade-compass": {
      "command": "uvx",
      "args": ["cloudsense-upgrade-compass"]
    }
  }
}

Available Tools

Tool Description
init_assessment Initialize upgrade assessment project. Creates SFDX project, validates prerequisites (sf CLI, GitHub access), checks org authorization, detects production vs sandbox.
get_installed_packages Discover all installed packages in the org. Identifies CloudSense packages, flags cloud service dependencies (CSPOFA, cscfga, csslm), writes installed-packages.json.
get_customer_metadata Pull customer metadata (Apex, LWC, Aura, VF, objects, flows, validation rules, static resources, permissions) from the org. Adaptive batching handles 10K file limit via binary split.
get_managed_package_objects Retrieve CS managed package objects (__c, __mdt) that wildcard retrieval misses. Discovers via sf sobject list, excludes ChangeEvent/History/Share/Feed, retrieves in adaptive batches.

Development

# Clone and install
git clone <repo-url>
cd cloudsense-upgrade-compass
uv venv
source .venv/bin/activate
uv pip install -e ".[dev]"

# Run tests
pytest

# Run server locally
python -m cloudsense_upgrade_compass.server

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloudsense_upgrade_compass-0.5.1.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cloudsense_upgrade_compass-0.5.1-py3-none-any.whl (30.8 kB view details)

Uploaded Python 3

File details

Details for the file cloudsense_upgrade_compass-0.5.1.tar.gz.

File metadata

File hashes

Hashes for cloudsense_upgrade_compass-0.5.1.tar.gz
Algorithm Hash digest
SHA256 b7c0a60049553355594b4f1613355525e7dbadfdbe78ffac0425ef8a2ec5404b
MD5 55394772b66d3afeebb87abcdeb6ceaf
BLAKE2b-256 c5a855dcf433a56ae1c5a0a753b093695f949762d6b2283668416363b2f8348e

See more details on using hashes here.

File details

Details for the file cloudsense_upgrade_compass-0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cloudsense_upgrade_compass-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5bcb2dcbc71eedfe47f244473b153399b3172ddf87955e26f139d1ed3805d611
MD5 97cabdf894e1a6368277619ed5e07e4b
BLAKE2b-256 777c841e157bb163c2e25d20ffbaa43141c2846113741481a35b99186457928b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page