Skip to main content

MCP server for CloudTruth configuration and secrets management

Project description

CloudTruth MCP Server

A Model Context Protocol (MCP) server that provides AI assistants with secure access to CloudTruth configuration and secrets management.

Features

  • 14 MCP Tools for complete CloudTruth operations (projects, environments, parameters, templates, tags)
  • Secure by Default - Secrets are masked unless explicitly requested with include_secrets=true
  • Intelligent Caching - Reduces API calls with configurable TTL
  • Full CRUD Operations - Create, read, update, and delete projects, environments, and parameters
  • Template Rendering - Preview configuration files with parameter substitution
  • Point-in-Time Snapshots - Create tags for environment state snapshots

Installation

pip install cloudtruth-mcp-server

Quick Start

1. Create Configuration File

Create ~/.config/cloudtruth/mcp-config.json:

{
  "api_key": "your-cloudtruth-api-key",
  "api_base_url": "https://api.cloudtruth.io",
  "default_project": "default",
  "default_environment": "default"
}

Set secure permissions:

chmod 600 ~/.config/cloudtruth/mcp-config.json

2. Configure Your MCP Client

Claude Desktop

Add to the appropriate config file for your OS:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "cloudtruth": {
      "command": "python3",
      "args": ["-m", "cloudtruth_mcp.server"]
    }
  }
}

Claude Code (VS Code Extension)

Using the CLI (recommended):

claude mcp add --transport stdio cloudtruth -- python3 -m cloudtruth_mcp.server

Or manually edit the config file for your OS:

  • macOS: ~/Library/Application Support/Code/User/globalStorage/anthropics.claude-code/settings/cline_mcp_settings.json
  • Windows: %APPDATA%\Code\User\globalStorage\anthropics.claude-code\settings\cline_mcp_settings.json
  • Linux: ~/.config/Code/User/globalStorage/anthropics.claude-code/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "cloudtruth": {
      "command": "python3",
      "args": ["-m", "cloudtruth_mcp.server"]
    }
  }
}

Cursor

  1. Open Cursor Settings (Cmd/Ctrl + Shift + J)
  2. Go to the "MCP" tab
  3. Click "Add Server"
  4. Enter:
    • Name: cloudtruth
    • Command: python3
    • Arguments: -m cloudtruth_mcp.server

Or manually edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "cloudtruth": {
      "command": "python3",
      "args": ["-m", "cloudtruth_mcp.server"]
    }
  }
}

Cline (VS Code Extension)

Add to MCP settings via Cline extension settings or manually edit the config file:

{
  "mcpServers": {
    "cloudtruth": {
      "command": "python3",
      "args": ["-m", "cloudtruth_mcp.server"]
    }
  }
}

3. Restart Your MCP Client

  • Claude Desktop: Completely quit and restart the application
  • Claude Code / Cline: Reload VS Code window (Cmd/Ctrl + Shift + P → "Reload Window")
  • Cursor: Restart Cursor or reload the window

Usage Examples

Once configured, you can ask your AI assistant:

  • "List my CloudTruth projects"
  • "Show me the parameters in the production environment"
  • "Get the database credentials for staging" (requires include_secrets=true)
  • "Create a new environment called 'development'"
  • "Update the API_URL parameter in production"
  • "Compare parameters between dev and staging environments"

Available Tools

  • list_projects - List all accessible projects
  • create_project - Create a new project
  • delete_project - Delete a project
  • list_environments - List all environments with hierarchy
  • create_environment - Create a new environment
  • delete_environment - Delete an environment
  • get_parameter - Retrieve a single parameter value
  • get_parameters - Retrieve all parameters for a project/environment
  • set_parameter - Set or update a parameter value
  • create_parameter - Create a new parameter definition
  • delete_parameter - Delete a parameter
  • preview_template - Preview template rendering with parameters
  • export_parameters - Export parameters in JSON, YAML, or dotenv format
  • get_version - Get the CloudTruth MCP server version

Security

  • Secrets are masked by default - Only exposed when include_secrets=true
  • Secure configuration - Config file should have 600 permissions
  • HTTPS only - All API communication over encrypted connection
  • No credential leakage - Secrets are sanitized from error messages and logs

Documentation

Requirements

  • Python 3.11 or higher
  • CloudTruth account and API key
  • MCP-compatible client (Claude Desktop, Cline, etc.)

License

MIT License - See LICENSE file for details

Support

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

cloudtruth_mcp_server-1.0.2.tar.gz (34.9 kB view details)

Uploaded Source

Built Distribution

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

cloudtruth_mcp_server-1.0.2-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

Details for the file cloudtruth_mcp_server-1.0.2.tar.gz.

File metadata

  • Download URL: cloudtruth_mcp_server-1.0.2.tar.gz
  • Upload date:
  • Size: 34.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for cloudtruth_mcp_server-1.0.2.tar.gz
Algorithm Hash digest
SHA256 488e94a9e6313998ffea313c9a4abec045e4abaa9d4babb4fc155c2ae9e5eb3e
MD5 056a77974f6e9d0d183c4ed8f1a5bdee
BLAKE2b-256 586206bfd5e380881e95870f185f4e1c37377cfcb5de574b3028f7492e2bf801

See more details on using hashes here.

File details

Details for the file cloudtruth_mcp_server-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cloudtruth_mcp_server-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b4b0eea7dd80cb6b660b3e7e4a671fcdc8c3d948592233cd6d1e70ba37db23b9
MD5 c5f739480d61bf69c7337e4f3187b86d
BLAKE2b-256 7b641f3020713a6bc67af6cbefb76640b1ca65c325455ecfb8c2275841687bf1

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