# Databricks Source: https://docs.getcalmo.com/essentials/databricks Connect Calmo to Databricks for comprehensive data platform operations and analytics through AI assistance # Databricks Integration Connect Calmo to your Databricks workspace to enable comprehensive data platform operations and analytics through AI assistance. This integration provides access to **10 specialized tools** across **4 categories** for complete data platform workflows. ## Overview The Databricks integration transforms how your team handles data platform operations by providing: * **Intelligent Cluster Management** - AI-powered cluster lifecycle management with automatic scaling recommendations * **Advanced Job Operations** - Comprehensive job execution and monitoring with intelligent retry logic * **Notebook Intelligence** - Enhanced notebook discovery and export capabilities with content analysis * **Data Operations** - SQL query execution and DBFS file management with optimization suggestions * **Safe Operations** - Read-only tools enabled by default with controlled write access for cluster and job management ## Key Capabilities When connected, Calmo gains access to **10 Databricks tools** across **4 categories**: | Category | Tools | Capability | | ----------------------- | ------- | --------------------------------------------------- | | **Cluster Management** | 4 tools | List, create, terminate, and start compute clusters | | **Job Management** | 2 tools | Execute and monitor Databricks jobs | | **Notebook Operations** | 2 tools | Access and export workspace notebooks | | **Data Operations** | 2 tools | Query data and browse DBFS files | ## Prerequisites * Databricks workspace with appropriate access permissions * Admin access to generate personal access tokens * Calmo account with team or personal workspace ## Setup Process ### Step 1: Access Your Databricks Workspace **Locate Your Workspace URL:** 1. Navigate to your Databricks workspace 2. Note your workspace URL (e.g., `https://your-workspace.cloud.databricks.com`) 3. Ensure you have admin or developer access to the workspace ### Step 2: Generate Personal Access Token **Create Personal Access Token:** 1. Go to your Databricks workspace 2. Click on your username in the top right corner 3. Select "User Settings" 4. Navigate to the "Access tokens" tab 5. Click "Generate new token" 6. Configure token settings: * **Comment**: "Calmo Integration" * **Lifetime**: Set appropriate expiration (recommended: 90 days) 7. Copy the generated token immediately **Important Security Notes:** * Store the token securely - you won't be able to see it again * Use tokens with minimal required permissions * Regularly rotate tokens according to security policies ### Step 3: Connect to Calmo 1. Navigate to **Integrations** in your Calmo dashboard 2. Click **Databricks** integration 3. Enter your **Workspace URL** (including protocol: https\://) 4. Enter your **Personal Access Token** 5. Configure tool permissions: * ✅ **Read-only operations** enabled by default * ❌ **Write operations** disabled for safety 6. Test the connection 7. Complete the integration setup ## Tool Categories & Configuration ### **Cluster Management** (Mixed Safety) **Default: Read operations enabled** - Compute cluster lifecycle management **Read Operations (✅ Enabled by default):** * **databricks\_list\_clusters** - List all available Databricks clusters in your workspace **Write Operations (⚠️ Disabled by default):** * **databricks\_create\_cluster** - Create new compute clusters with specified configurations * **databricks\_terminate\_cluster** - Terminate running clusters to save costs * **databricks\_start\_cluster** - Start terminated clusters when needed *Use Cases: Cluster monitoring, cost optimization, capacity planning, development environment management* ### **Job Management** (Mixed Safety) **Default: Read operations enabled** - Job execution and monitoring **Read Operations (✅ Enabled by default):** * **databricks\_list\_jobs** - List all scheduled and on-demand jobs in your workspace **Write Operations (⚠️ Disabled by default):** * **databricks\_run\_job** - Execute Databricks jobs with parameters *Use Cases: Job monitoring, pipeline execution, workflow automation, job troubleshooting* ### **Notebook Operations** (Safe) **Default: Enabled** - Workspace notebook management * **databricks\_list\_notebooks** - Browse notebooks in your workspace directories * **databricks\_export\_notebook** - Export notebook content in various formats *Use Cases: Code discovery, notebook backup, content analysis, documentation generation* ### **Data Operations** (Safe) **Default: Enabled** - Data analysis and file management * **databricks\_execute\_sql** - Execute SQL queries on your data warehouse * **databricks\_list\_files** - Browse files in Databricks File System (DBFS) *Use Cases: Data exploration, ad-hoc analysis, file management, data validation* ## Team vs Personal Configuration ### Team/Organization Setup * Shared Databricks workspace access across team members * Organization-level data governance and cluster policies * Centralized job scheduling and monitoring workflows * Team administrators control cluster creation and job execution permissions ### Personal Setup * Individual Databricks workspace connections * Personal notebook development and experimentation * Private data analysis and exploration * Full control over enabled tool capabilities ## Security & Best Practices ### ⚠️ Safety Recommendations 1. **Read-First Approach** - Begin with read-only tools, monitor usage patterns 2. **Token Security** - Use dedicated tokens with minimal required permissions 3. **Workspace URL Validation** - Ensure workspace URL uses HTTPS and is correct 4. **Cluster Management** - Enable cluster creation/termination only when necessary 5. **Cost Monitoring** - Monitor cluster usage to prevent unexpected costs ### 🔒 Permission Levels | Risk Level | Operations | Recommendation | | ---------- | ----------------------------------------------------- | ---------------------- | | **Low** | List clusters/jobs, browse notebooks, execute queries | ✅ Safe to enable | | **Medium** | Export notebooks, browse DBFS files | ✅ Generally safe | | **High** | Create/terminate clusters, run jobs | ⚠️ Enable with caution | ## Configuration Management ### Updating Databricks Connection 1. Navigate to **Integrations** → **Databricks** 2. Click **Edit Configuration** 3. Update workspace URL or personal access token as needed 4. Modify tool permissions based on team requirements 5. Test connection to verify changes 6. Save configuration updates ### Managing Multiple Workspaces * Connect separate Databricks workspaces for different environments * Use different access tokens for production vs development * Configure environment-specific cluster and job policies * Maintain separate data governance workflows per workspace ## Advanced Features ### Cluster Lifecycle Management * **Intelligent Provisioning** - AI-powered cluster size recommendations * **Cost Optimization** - Automated cluster termination suggestions * **Multi-Environment Support** - Separate cluster configurations per environment * **Performance Monitoring** - Cluster utilization analysis and optimization ### Job Orchestration * **Workflow Automation** - Intelligent job scheduling and dependency management * **Parameter Management** - Dynamic parameter injection for job execution * **Error Handling** - Automated retry logic and failure analysis * **Performance Optimization** - Job execution time analysis and optimization ### Data Analytics Integration * **SQL Intelligence** - Query optimization and performance analysis * **Schema Discovery** - Automatic data structure analysis * **Data Quality** - Automated data validation and quality checks * **Visualization Support** - Integration with existing dashboard tools ## Data Platform Workflows ### Development & Testing * **Environment Management** - Automated development cluster provisioning * **Code Validation** - Notebook execution and testing workflows * **Data Pipeline Development** - ETL job creation and testing * **Performance Testing** - Load testing and optimization analysis ### Production Operations * **Job Monitoring** - Production job health and performance tracking * **Cluster Optimization** - Resource utilization and cost management * **Data Quality Assurance** - Automated data validation pipelines * **Incident Response** - Failed job analysis and remediation ### Analytics & Insights * **Ad-Hoc Analysis** - Interactive SQL query execution * **Data Exploration** - Intelligent data discovery and profiling * **Reporting Automation** - Scheduled report generation and distribution * **Business Intelligence** - Integration with BI tools and dashboards ## Troubleshooting ### Common Issues **Authentication Failed** * Verify personal access token is correct and hasn't expired * Check workspace URL format and accessibility * Ensure token has required permissions for enabled tools * Verify network connectivity to Databricks workspace **Workspace Access Denied** * Confirm user has appropriate workspace access level * Check if workspace has IP access restrictions * Verify token scope includes necessary workspace permissions * Contact workspace administrator for access verification **Cluster Operations Failed** * Verify cluster policies allow requested operations * Check workspace compute quotas and limits * Ensure sufficient permissions for cluster management * Review workspace configuration and restrictions **Job Execution Issues** * Verify job exists and is accessible with current permissions * Check job configuration and parameter requirements * Ensure cluster resources are available for job execution * Review job history and error logs for detailed diagnostics ### Getting Help 1. **Test Connection** - Use the built-in connection test feature 2. **Update Credentials** - Regenerate personal access token if authentication issues persist 3. **Check Documentation** - Refer to Databricks official documentation for workspace setup 4. **Contact Support** - Reach out to [support@getcalmo.com](mailto:support@getcalmo.com) for integration assistance ## Data Types & Analysis ### Cluster Data * **Cluster Configurations** - Instance types, autoscaling settings, runtime versions * **Performance Metrics** - CPU, memory, disk utilization and performance data * **Cost Analytics** - Cluster usage costs and optimization recommendations * **Lifecycle Events** - Cluster creation, termination, and state change history ### Job Data * **Job Definitions** - Job configurations, schedules, and parameter specifications * **Execution History** - Job run history, success rates, and performance metrics * **Dependencies** - Job dependency graphs and workflow relationships * **Error Analytics** - Failed job analysis and troubleshooting insights ### Notebook Data * **Content Analysis** - Code structure, documentation, and complexity metrics * **Execution History** - Notebook run history and cell execution patterns * **Collaboration Data** - Sharing permissions and collaborative editing history * **Version Control** - Notebook version history and change tracking ### Data Assets * **DBFS File System** - File structure, metadata, and access patterns * **SQL Query Results** - Query execution results and performance metrics * **Data Schemas** - Table structures, column definitions, and relationships * **Data Quality** - Data profiling results and quality assessment metrics The Databricks integration provides comprehensive data platform capabilities, enabling your team to manage clusters, execute jobs, and analyze data efficiently through AI-powered assistance while maintaining strict operational controls and cost optimization. *** *For additional help with Databricks integration, contact our support team at [support@getcalmo.com](mailto:support@getcalmo.com).* # Datadog Source: https://docs.getcalmo.com/essentials/datadog Connect Calmo to Datadog for comprehensive observability, monitoring, and performance analysis through AI assistance # Datadog Integration Connect Calmo to your Datadog account to enable comprehensive observability, monitoring, and performance analysis through AI assistance. This integration provides access to **22 specialized tools** across **5 categories** for complete monitoring and observability workflows. ## Overview & Value Proposition The Datadog integration transforms how your team handles observability and monitoring by providing: * **Intelligent Monitoring** - AI-powered analysis of metrics, logs, and traces with automatic anomaly detection * **Comprehensive Observability** - Full-stack monitoring from infrastructure to application performance * **Advanced Analytics** - Real User Monitoring (RUM) insights and performance bottleneck identification * **Incident Response** - Rapid investigation and correlation across monitoring signals * **Infrastructure Management** - Host monitoring, downtime scheduling, and capacity planning * **Safe Operations** - Read-only tools enabled by default with controlled write access ## Key Capabilities When connected, Calmo gains access to **22 Datadog tools** across **5 categories**: | Category | Tools | Capability | | ------------------------ | ------- | -------------------------------------------------- | | **Monitoring & Metrics** | 4 tools | Query metrics, dashboards, and monitors | | **Logs & Traces** | 4 tools | Access logs, traces, and service information | | **Infrastructure** | 4 tools | Host management and infrastructure monitoring | | **Incidents** | 2 tools | Incident tracking and management | | **Real User Monitoring** | 5 tools | RUM applications, events, and performance analysis | | **Downtimes** | 3 tools | Downtime scheduling and management | ## Prerequisites * Datadog account with appropriate access permissions * Admin access to generate API and Application keys * Calmo account with team or personal workspace ## Setup Process ### Step 1: Generate Datadog Credentials **Create API Key:** 1. Log in to your [Datadog account](https://app.datadoghq.com) 2. Navigate to **Organization Settings** → **API Keys** 3. Click **+ New Key** 4. Name: "Calmo Integration API Key" 5. Copy the generated API key immediately **Create Application Key:** 1. Navigate to **Organization Settings** → **Application Keys** 2. Click **+ New Key** 3. Name: "Calmo Integration App Key" 4. Copy the generated Application key immediately ### Step 2: Configure Site Selection Choose your Datadog site based on your account location: | Site | URL | Region | | ------- | ----------------- | ----------------------- | | **US1** | datadoghq.com | United States (default) | | **EU1** | datadoghq.eu | Europe | | **US3** | us3.datadoghq.com | United States (West) | | **US5** | us5.datadoghq.com | United States (Gov) | | **AP1** | ap1.datadoghq.com | Asia Pacific | | **Gov** | ddog-gov.com | US Government | ### Step 3: Connect to Calmo 1. Navigate to **Integrations** in your Calmo dashboard 2. Click **Datadog** integration 3. Enter your **API Key** and **Application Key** 4. Select your **Datadog Site** from the dropdown 5. Configure tool permissions: * ✅ **Read-only operations** enabled by default * ❌ **Write operations** disabled for safety 6. Complete the connection ## Tool Categories & Configuration ### 📊 Monitoring & Metrics (Safe) **Default: Enabled** - Essential for observability analysis * **query\_metrics** - Query and analyze metric data with filters and aggregations * **list\_dashboards** - List available dashboards and their metadata * **get\_dashboard** - Retrieve specific dashboard configurations and widgets * **get\_monitors** - Access monitor configurations, statuses, and alert history *Use Cases: Performance analysis, trend identification, alert investigation, dashboard insights* ### 📋 Logs & Traces (Safe) **Default: Enabled** - Critical for debugging and troubleshooting * **get\_logs** - Search and retrieve log data with advanced filtering * **get\_all\_services** - List all services reporting to Datadog APM * **list\_traces** - Query distributed traces for performance analysis *Use Cases: Error investigation, performance debugging, service dependency analysis, log correlation* ### 🖥️ Infrastructure (Mixed Safety) **Default: Read operations enabled** - Host and infrastructure monitoring **Read Operations (✅ Enabled by default):** * **list\_hosts** - List all hosts and their metadata * **get\_active\_hosts\_count** - Get count of active hosts **Write Operations (⚠️ Disabled by default):** * **mute\_host** - Mute alerts for specific hosts * **unmute\_host** - Unmute previously muted hosts *Use Cases: Infrastructure inventory, capacity planning, host health monitoring, maintenance windows* ### 🚨 Incidents (Safe) **Default: Enabled** - Incident tracking and response * **list\_incidents** - List incidents with status and metadata * **get\_incident** - Get detailed incident information and timeline *Use Cases: Incident response, post-mortem analysis, incident correlation, status tracking* ### 📱 Real User Monitoring (Safe) **Default: Enabled** - Frontend performance and user experience * **get\_rum\_applications** - List RUM applications and their configurations * **get\_rum\_events** - Query RUM events with filtering capabilities * **get\_rum\_grouped\_event\_count** - Get aggregated event counts and statistics * **get\_rum\_page\_performance** - Analyze page load performance metrics * **get\_rum\_page\_waterfall** - Get detailed page load waterfall analysis *Use Cases: Frontend performance optimization, user experience analysis, page load debugging, conversion funnel analysis* ### ⏰ Downtimes (Write Operations) **Default: Read-only enabled** - Maintenance window management **Read Operations (✅ Enabled by default):** * **list\_downtimes** - List scheduled and active downtimes **Write Operations (⚠️ Disabled by default):** * **schedule\_downtime** - Schedule maintenance windows * **cancel\_downtime** - Cancel scheduled downtimes *Use Cases: Maintenance planning, alert suppression, downtime coordination* ## Team vs Personal Configuration ### Team/Organization Setup * Shared Datadog account access across team members * Organization-level monitoring policies and dashboards * Centralized incident response and escalation procedures * Team administrators control write operation permissions ### Personal Setup * Individual Datadog account connections * Personal dashboard and monitoring preferences * Private metric queries and analysis * Full control over enabled tool capabilities ## Security & Best Practices ### ⚠️ Safety Recommendations 1. **Read-First Approach** - Begin with read-only tools, add write access gradually 2. **Key Rotation** - Regularly rotate API and Application keys 3. **Scope Limitation** - Use least-privilege access for integration keys 4. **Monitoring Integration** - Monitor the integration's own usage through Datadog 5. **Site Verification** - Ensure correct Datadog site selection to avoid data issues ### 🔒 Permission Levels | Risk Level | Operations | Recommendation | | ---------- | ----------------------------------------- | ---------------------- | | **Low** | Query metrics, view dashboards, read logs | ✅ Safe to enable | | **Medium** | List infrastructure, read incidents | ✅ Generally safe | | **High** | Mute hosts, schedule downtimes | ⚠️ Enable with caution | ## Configuration Management ### Updating Datadog Connection 1. Navigate to **Integrations** → **Datadog** 2. Click **Edit Configuration** 3. Update API keys, Application keys, or site selection 4. Modify tool permissions based on team requirements 5. Test connection with read-only operations 6. Save configuration changes ### Managing Multiple Environments * Connect separate Datadog accounts for different environments * Use different API keys for production vs staging * Configure environment-specific tool permissions * Maintain separate monitoring policies per environment ## Advanced Features ### Multi-Site Support The integration supports all Datadog sites globally: * **Geographic Distribution** - Connect to the site closest to your data * **Compliance Requirements** - Meet data residency requirements * **Performance Optimization** - Reduce latency with regional sites ### Advanced Query Capabilities * **Metric Aggregation** - Complex queries with multiple aggregation functions * **Log Analytics** - Advanced log searching with Datadog's query language * **Trace Analysis** - Distributed tracing across microservices * **Custom Dashboards** - Integration with existing dashboard configurations ### Real-Time Monitoring * **Live Metrics** - Real-time metric streaming and analysis * **Alert Correlation** - Cross-reference alerts with system events * **Performance Insights** - Automated performance bottleneck detection * **Anomaly Detection** - AI-powered anomaly identification ## Troubleshooting ### Common Issues **Authentication Failed** * Verify API and Application keys are correct and active * Check that keys haven't expired or been revoked * Ensure proper permissions are assigned to the keys **Wrong Site Selected** * Verify Datadog site matches your account region * Check URLs and endpoints match your Datadog instance * Update site selection in integration settings **Permission Denied** * Review API key permissions in Datadog organization settings * Ensure Application key has required scopes * Check organization-level access restrictions **Rate Limiting** * Datadog enforces API rate limits (varies by endpoint) * Monitor API usage in Datadog organization settings * Contact support if limits are consistently exceeded ### Getting Help 1. **Test Connection** - Use the connection test feature in integration settings 2. **Update Credentials** - Regenerate API and Application keys if needed 3. **Contact Support** - Reach out to [support@getcalmo.com](mailto:support@getcalmo.com) for assistance ## Data Types & Analysis ### Metrics Analysis * **Infrastructure Metrics** - CPU, memory, disk, network utilization * **Application Metrics** - Request rates, error rates, response times * **Custom Metrics** - Business-specific KPIs and measurements * **Synthetic Monitoring** - Uptime and performance of critical services ### Log Investigation * **Application Logs** - Error tracking and debugging information * **Infrastructure Logs** - System events and security logs * **Audit Logs** - User activity and configuration changes * **Custom Log Sources** - Integration with third-party logging systems ### Performance Monitoring * **APM Traces** - Distributed tracing across services and databases * **Database Performance** - Query performance and database health * **RUM Analytics** - Real user experience and frontend performance * **Network Monitoring** - Network performance and connectivity issues The Datadog integration provides comprehensive observability capabilities, enabling your team to monitor, analyze, and optimize system performance efficiently through AI-powered assistance while maintaining strict operational controls. *** *For additional help with Datadog integration, contact our support team at [support@getcalmo.com](mailto:support@getcalmo.com).* # GitHub Source: https://docs.getcalmo.com/essentials/github Connect Calmo to your GitHub repositories for comprehensive code analysis, repository management, and collaboration through AI assistance # GitHub Integration Connect Calmo to your GitHub repositories to enable comprehensive code analysis, repository management, and collaboration through AI assistance. This integration provides access to **26 specialized tools** across **7 categories** for complete development workflow automation. ## Overview & Value Proposition The GitHub integration transforms how your team manages code and collaboration by providing: * **Intelligent Code Analysis** - AI-powered code review, issue investigation, and repository insights * **Automated Repository Management** - Create, fork, and manage repositories through conversational AI * **Advanced Pull Request Workflows** - Comprehensive PR analysis, review automation, and merge management * **Issue Tracking & Resolution** - Automated issue creation, updates, and intelligent problem diagnosis * **Repository Discovery** - Powerful search across code, repositories, issues, and users * **Safe Operation Modes** - Read-only tools enabled by default with granular write permission control ## Key Capabilities When connected, Calmo gains access to **26 GitHub tools** across **7 categories**: | Category | Tools | Capability | | ------------------------- | ------- | --------------------------------------- | | **Code Reading** | 1 tool | AI reads and analyzes your codebase | | **Code Management** | 2 tools | Edit files and push code changes | | **Repository Operations** | 2 tools | Create and fork repositories | | **Branch Management** | 2 tools | Create branches and view commit history | | **Pull Requests** | 9 tools | Complete PR lifecycle management | | **Issue Management** | 6 tools | Full issue tracking and collaboration | | **Search & Discovery** | 4 tools | Advanced search across GitHub ecosystem | ## Prerequisites * GitHub account with repository access * Appropriate permissions for target repositories * Calmo account with team or personal workspace ## Setup Methods ### Method 1: OAuth Authentication (Recommended) **Quick and secure connection with automatic permission management** 1. Navigate to **Integrations** in your Calmo dashboard 2. Click **GitHub** integration 3. Choose **Connect with OAuth** 4. Review and customize tool permissions: * ✅ **Read-only operations** enabled by default * ❌ **Write operations** disabled for safety 5. Click **Connect with GitHub** 6. Authorize Calmo in GitHub OAuth flow 7. Select repositories to grant access **OAuth Benefits:** * Automatic token management and renewal * Granular repository permissions * Enhanced security with scope-limited access * No manual token generation required ### Method 2: Personal Access Token (Advanced) **For custom workflows and enhanced control** **Step 1: Generate GitHub PAT** 1. Go to GitHub **Settings** → **Developer settings** → **Personal access tokens** 2. Click **Generate new token (classic)** 3. Configure token settings: * **Name**: "Calmo Integration" * **Expiration**: Set according to security policies * **Scopes**: Select based on desired capabilities **Required Scopes by Tool Category:** | Tool Category | Required Scopes | | ------------------------- | --------------------------------------------- | | **Code Reading** | `repo` (for private repos) or `public_repo` | | **Code Management** | `repo` (full repository access) | | **Repository Operations** | `repo`, `delete_repo` (if deletion needed) | | **Pull Requests** | `repo`, `pull_requests` | | **Issues** | `repo`, `issues` | | **Search** | `repo` (for private), `read:org`, `read:user` | 4. Generate and copy token immediately **Step 2: Connect to Calmo** 1. Choose **Connect with Personal Access Token** 2. Paste your GitHub token 3. Enter target repository name 4. Configure tool permissions 5. Complete connection ## Tool Categories & Configuration ### 📖 Code Reading (Safe) **Default: Enabled** - Essential for AI code analysis * **github\_get\_file\_contents** - Read and analyze code files *Use Cases: Code review, bug investigation, architecture analysis, documentation generation* ### ✏️ Code Management (Write Operations) **Default: Disabled** - Direct code modification capabilities * **github\_create\_or\_update\_file** - Create or modify files (⚠️ Write operation) * **github\_push\_files** - Push multiple file changes (⚠️ Write operation) *Use Cases: Automated code fixes, documentation updates, configuration changes* ### 🏗️ Repository Operations (Write Operations) **Default: Disabled** - Repository lifecycle management * **github\_create\_repository** - Create new repositories (⚠️ Write operation) * **github\_fork\_repository** - Fork existing repositories (⚠️ Write operation) *Use Cases: Project initialization, repository duplication, development environment setup* ### 🌿 Branch Management (Mixed Safety) **Default: Read-only enabled** - Branch and commit operations * **github\_create\_branch** - Create new branches (⚠️ Write operation) * **github\_list\_commits** - View commit history (✅ Read-only) *Use Cases: Feature development, commit analysis, branch strategy management* ### 🔄 Pull Request Management (Mixed Safety) **Default: Read operations enabled** - Comprehensive PR workflow **Read Operations (✅ Enabled by default):** * **github\_get\_pull\_request** - Get PR details and metadata * **github\_list\_pull\_requests** - List PRs with filters * **github\_get\_pull\_request\_files** - View PR file changes * **github\_get\_pull\_request\_status** - Check CI/CD status * **github\_get\_pull\_request\_comments** - Read PR discussions * **github\_get\_pull\_request\_reviews** - View code reviews **Write Operations (⚠️ Disabled by default):** * **github\_create\_pull\_request** - Create new pull requests * **github\_merge\_pull\_request** - Merge approved PRs * **github\_create\_pull\_request\_review** - Submit code reviews * **github\_update\_pull\_request\_branch** - Update PR branches *Use Cases: Code review automation, PR analysis, merge management, CI/CD integration* ### 🐛 Issue Management (Mixed Safety) **Default: Read operations enabled** - Complete issue lifecycle **Read Operations (✅ Enabled by default):** * **github\_get\_issue** - Get issue details and metadata * **github\_list\_issues** - List issues with advanced filters **Write Operations (⚠️ Disabled by default):** * **github\_create\_issue** - Create new issues * **github\_update\_issue** - Modify issue details * **github\_add\_issue\_comment** - Add comments to issues *Use Cases: Bug tracking, feature requests, project management, automated issue triaging* ### 🔍 Search & Discovery (Safe) **Default: Enabled** - Advanced search capabilities * **github\_search\_code** - Search code across repositories * **github\_search\_repositories** - Find repositories by criteria * **github\_search\_issues** - Search issues and PRs * **github\_search\_users** - Find GitHub users and organizations *Use Cases: Code discovery, repository exploration, contributor identification, issue research* ## Team vs Personal Configuration ### Team/Organization Setup * Shared repository access across team members * Organization-level tool policies and permissions * Centralized repository and branch management * Team administrators control write operation access ### Personal Setup * Individual repository connections * Personal tool preferences and configurations * Private repository access * Full control over enabled capabilities ## Security & Best Practices ### ⚠️ Safety Recommendations 1. **Start Read-Only** - Begin with read operations, add write access gradually 2. **Repository Scope** - Connect only necessary repositories 3. **Regular Token Rotation** - Update PATs according to security policies 4. **Permission Auditing** - Regularly review enabled tools and repository access 5. **OAuth Preferred** - Use OAuth for automatic token management when possible ### 🔒 Permission Levels | Risk Level | Operations | Recommendation | | ---------- | ----------------------------------- | ---------------------------- | | **Low** | Read files, list PRs/issues, search | ✅ Safe to enable | | **Medium** | Create issues/PRs, add comments | ⚠️ Enable with review | | **High** | Push code, merge PRs, create repos | ❌ Enable only when necessary | ## Configuration Management ### Updating GitHub Connection 1. Navigate to **Integrations** → **GitHub** 2. Click **Edit Configuration** 3. Update authentication method (OAuth/PAT) 4. Modify repository access or generate new tokens 5. Adjust tool permissions based on team needs 6. Save configuration changes ### Managing Repository Access * **OAuth**: Modify permissions through GitHub app settings * **PAT**: Update token scopes and regenerate if needed * **Multi-Repository**: Configure access per repository * **Organization Integration**: Set up organization-wide policies ## Advanced Features ### Repository Selection Flow * Choose specific repositories during OAuth setup * Filter by organization, visibility, and activity * Configure per-repository tool permissions * Support for private and public repository access ### Multi-Repository Management * Connect multiple repositories with different permission levels * Maintain separate configurations per repository * Cross-repository search and analysis capabilities * Unified issue and PR management across repositories ### Integration Workflows * **Code Review Automation** - AI-powered PR analysis and suggestions * **Issue Intelligence** - Automated issue categorization and assignment * **Repository Insights** - Code quality analysis and technical debt detection * **Development Acceleration** - Automated code generation and documentation ## Troubleshooting ### Common Issues **Authentication Failed** * Verify GitHub token has required scopes * Check token expiration date * Ensure repository access permissions are granted **Permission Denied** * Review GitHub token scopes match enabled tools * Verify repository access in GitHub settings * Check organization/team permissions **API Rate Limits** * GitHub enforces API rate limits (5,000 requests/hour) * OAuth apps have higher limits than PATs * Contact support if limits are consistently exceeded ### Getting Help 1. **Reconnect Integration** - Use reconnection flow to refresh authentication 2. **Update Permissions** - Modify GitHub token scopes or OAuth permissions 3. **Contact Support** - Reach out to [support@getcalmo.com](mailto:support@getcalmo.com) for assistance ## Migration from Legacy Setup If you previously connected GitHub through basic PAT setup: 1. Navigate to GitHub integration settings 2. Choose **Upgrade to OAuth** for enhanced security 3. Or update to new PAT with comprehensive scopes 4. Configure new tool permissions 5. Test functionality with read-only operations first The GitHub integration provides comprehensive development workflow automation, enabling your team to manage code, issues, and collaboration efficiently through AI-powered assistance while maintaining strict security controls. *** *For additional help with GitHub integration, contact our support team at [support@getcalmo.com](mailto:support@getcalmo.com).* # Grafana Source: https://docs.getcalmo.com/essentials/grafana Connect Calmo to Grafana for comprehensive monitoring, alerting, and visualization through AI assistance # Grafana Integration Connect Calmo to your Grafana instance to enable monitoring, alerting, and visualization through AI assistance. This integration provides access to **26 specialized tools** across **8 categories** for complete observability and incident management workflows. ## Overview The Grafana integration transforms how your team handles monitoring and observability by providing: * **Advanced Dashboard Intelligence** - AI-powered dashboard analysis and panel query optimization * **Multi-Source Data Querying** - Direct access to Prometheus, Loki, and other configured datasources * **Intelligent Alerting** - Comprehensive alert rule management and status monitoring * **Incident Response** - Integrated incident management with Grafana Incident * **OnCall Coordination** - Complete on-call schedule and user management with Grafana OnCall * **Safe Operations** - Read-only tools enabled by default with controlled write access ## Key Capabilities When connected, Calmo gains access to **26 Grafana tools** across **8 categories**: | Category | Tools | Capability | | ------------------------ | ------- | -------------------------------------------------------- | | **Dashboard Management** | 3 tools | Search, view, and analyze Grafana dashboards | | **Data Sources** | 3 tools | Manage and query Prometheus, Loki, and other datasources | | **Prometheus Querying** | 5 tools | Execute PromQL queries and retrieve metadata | | **Loki Querying** | 4 tools | Query logs and metrics using LogQL | | **Alerting** | 2 tools | View alert rules and their statuses | | **Incident Management** | 4 tools | Manage incidents in Grafana Incident | | **OnCall Management** | 5 tools | Manage on-call schedules and users | | **Admin & Teams** | 1 tool | View and manage teams | ## Prerequisites * Grafana instance with API access enabled * Admin access to create service accounts and API keys * Calmo account with team or personal workspace ## Setup Process ### Step 1: Access Your Grafana Instance **Locate Your Grafana URL:** 1. Navigate to your Grafana instance 2. Note your instance URL (e.g., `https://your-grafana-instance.com`) 3. Ensure API access is enabled on your instance ### Step 2: Create Service Account and API Key **Create Service Account:** 1. Log in to your Grafana instance as an administrator 2. Navigate to **Administration** → **Service accounts** 3. Click **Add service account** 4. Configure service account: * **Display name**: "Calmo Integration" * **Role**: Editor or Viewer (based on desired permissions) 5. Create the service account **Generate API Key:** 1. Click on the created service account 2. Navigate to **Tokens** tab 3. Click **Add service account token** 4. Configure token settings: * **Display name**: "Calmo API Token" * **Expiration**: Set appropriate expiration date 5. Copy the generated token immediately **Required Permissions by Tool Category:** | Tool Category | Required Permissions | | ---------------------------- | -------------------------------------------------- | | **Dashboard Management** | `dashboards:read` | | **Data Sources** | `datasources:read` | | **Prometheus/Loki Querying** | `datasources:query` | | **Alerting** | `alert.rules:read` | | **Incident Management** | `incidents:read`, `incidents:write` (for creation) | | **OnCall Management** | `oncall:read` | | **Admin & Teams** | `teams:read` | ### Step 3: Connect to Calmo 1. Navigate to **Integrations** in your Calmo dashboard 2. Click **Grafana** integration 3. Enter your **Grafana URL** (including protocol: https\://) 4. Enter your **API Key** 5. Configure tool permissions: * ✅ **Read-only operations** enabled by default * ❌ **Write operations** disabled for safety 6. Test the connection using the built-in connection test 7. Complete the integration setup ## Tool Categories & Configuration ### **Dashboard Management** (Safe) **Default: Enabled** - Essential for dashboard analysis and visualization * **search\_dashboards** - Search for dashboards by title or metadata * **get\_dashboard\_by\_uid** - Retrieve full dashboard details using unique identifier * **get\_dashboard\_panel\_queries** - Get panel queries and datasource info from dashboards *Use Cases: Dashboard discovery, performance analysis, panel optimization, visualization insights* ### **Data Sources** (Safe) **Default: Enabled** - Datasource management and configuration * **list\_datasources** - View all configured datasources * **get\_datasource\_by\_uid** - Get datasource details by UID * **get\_datasource\_by\_name** - Get datasource details by name *Use Cases: Datasource inventory, configuration validation, connection testing* ### **Prometheus Querying** (Safe) **Default: Enabled** - Direct PromQL query execution and metadata retrieval * **query\_prometheus** - Execute PromQL queries against Prometheus datasources * **list\_prometheus\_metric\_metadata** - Retrieve metric metadata from Prometheus * **list\_prometheus\_metric\_names** - List available metric names * **list\_prometheus\_label\_names** - List label names matching a selector * **list\_prometheus\_label\_values** - List values for a specific label *Use Cases: Metrics analysis, performance monitoring, capacity planning, troubleshooting* ### **Loki Querying** (Safe) **Default: Enabled** - LogQL query execution and log analysis * **query\_loki\_logs** - Query logs and metrics using LogQL * **list\_loki\_label\_names** - List all available label names in logs * **list\_loki\_label\_values** - List values for a specific log label * **query\_loki\_stats** - Get statistics about log streams *Use Cases: Log analysis, error investigation, application debugging, security monitoring* ### **Alerting** (Safe) **Default: Enabled** - Alert rule management and monitoring * **list\_alert\_rules** - List alert rules and their statuses * **get\_alert\_rule\_by\_uid** - Get alert rule details by UID *Use Cases: Alert monitoring, rule validation, alerting optimization, incident correlation* ### **Incident Management** (Mixed Safety) **Default: Read operations enabled** - Grafana Incident integration **Read Operations (✅ Enabled by default):** * **list\_incidents** - List incidents in Grafana Incident **Write Operations (⚠️ Disabled by default):** * **create\_incident** - Create an incident in Grafana Incident * **add\_activity\_to\_incident** - Add activity to an incident * **resolve\_incident** - Resolve an incident *Use Cases: Incident response, escalation management, post-mortem analysis, team coordination* ### **OnCall Management** (Safe) **Default: Enabled** - Grafana OnCall integration * **list\_oncall\_schedules** - List schedules from Grafana OnCall * **get\_oncall\_shift** - Get details for a specific OnCall shift * **get\_current\_oncall\_users** - Get users currently on-call for a schedule * **list\_oncall\_teams** - List teams from Grafana OnCall * **list\_oncall\_users** - List users from Grafana OnCall *Use Cases: On-call coordination, schedule management, escalation planning, team availability* ### **Admin & Teams** (Safe) **Default: Enabled** - Team and user management * **list\_teams** - View all configured teams in Grafana *Use Cases: Team organization, user management, access control, collaboration* ## Team vs Personal Configuration ### Team/Organization Setup * Shared Grafana instance access across team members * Organization-level monitoring policies and alert configurations * Centralized incident response and on-call management * Team administrators control incident creation and resolution permissions ### Personal Setup * Individual Grafana instance connections * Personal dashboard preferences and custom queries * Private metric analysis and debugging sessions * Full control over enabled tool capabilities ## Security & Best Practices ### ⚠️ Safety Recommendations 1. **Service Account Approach** - Use dedicated service accounts instead of personal API keys 2. **Minimal Permissions** - Grant only necessary permissions for intended use cases 3. **Token Rotation** - Regularly rotate API tokens according to security policies 4. **Instance Security** - Ensure Grafana instance uses HTTPS and proper authentication 5. **Access Monitoring** - Monitor API usage and access patterns ### 🔒 Permission Levels | Risk Level | Operations | Recommendation | | ---------- | ------------------------------------------------ | ---------------------- | | **Low** | View dashboards, query metrics/logs, read alerts | ✅ Safe to enable | | **Medium** | List incidents, view on-call schedules | ✅ Generally safe | | **High** | Create incidents, modify alert rules | ⚠️ Enable with caution | ## Configuration Management ### Updating Grafana Connection 1. Navigate to **Integrations** → **Grafana** 2. Click **Edit Configuration** 3. Update Grafana URL or API key as needed 4. Modify tool permissions based on team requirements 5. Test connection to verify changes 6. Save configuration updates ### Managing Multiple Environments * Connect separate Grafana instances for different environments * Use different service accounts for production vs development * Configure environment-specific monitoring and alerting policies * Maintain separate incident response workflows per environment ## Advanced Features ### Multi-Datasource Support * **Unified Querying** - Query multiple datasources through single interface * **Cross-Datasource Correlation** - Correlate metrics and logs across different sources * **Datasource Health Monitoring** - Monitor datasource connectivity and performance * **Query Optimization** - Intelligent query optimization across different backends ### Advanced Analytics * **Custom PromQL Queries** - Complex metric analysis with advanced aggregations * **LogQL Intelligence** - Sophisticated log analysis with pattern recognition * **Alert Correlation** - Cross-reference alerts with system events and metrics * **Performance Insights** - Automated performance bottleneck detection ### Incident Response Integration * **Automated Incident Creation** - AI-powered incident creation based on alert patterns * **Escalation Management** - Intelligent escalation based on severity and on-call schedules * **Timeline Tracking** - Comprehensive incident timeline with activity logging * **Post-Incident Analysis** - Automated post-mortem generation and analysis ## Monitoring Workflows ### Real-Time Monitoring * **Live Dashboard Analysis** - Real-time dashboard data analysis and insights * **Metric Streaming** - Continuous metric monitoring with anomaly detection * **Log Stream Analysis** - Real-time log analysis with pattern recognition * **Alert Processing** - Intelligent alert filtering and prioritization ### Incident Response * **Alert Correlation** - Automatic correlation of related alerts and incidents * **On-Call Coordination** - Intelligent routing based on schedules and expertise * **Escalation Automation** - Automated escalation based on response times * **Communication Integration** - Seamless integration with communication tools ### Performance Analysis * **Capacity Planning** - Resource utilization analysis and capacity recommendations * **Performance Trending** - Long-term performance trend analysis * **Optimization Insights** - Query and dashboard optimization recommendations * **Anomaly Detection** - AI-powered anomaly identification across metrics and logs ## Troubleshooting ### Common Issues **Authentication Failed** * Verify API key is correct and hasn't expired * Check service account permissions in Grafana * Ensure API access is enabled on Grafana instance * Verify network connectivity to Grafana instance **Datasource Access Denied** * Confirm service account has datasource query permissions * Check datasource configuration and accessibility * Verify datasource health in Grafana interface * Review Grafana logs for detailed error information **Dashboard Not Found** * Verify dashboard exists and is accessible with current permissions * Check dashboard UID and ensure it's correct * Confirm user has read access to target dashboard * Review dashboard sharing and permission settings **Query Execution Failed** * Verify datasource is healthy and responsive * Check query syntax for PromQL or LogQL compliance * Ensure time range is appropriate for data availability * Review datasource-specific troubleshooting guides ### Getting Help 1. **Test Connection** - Use the built-in connection test feature 2. **Update Credentials** - Regenerate API key if authentication issues persist 3. **Check Documentation** - Refer to Grafana official documentation for API setup 4. **Contact Support** - Reach out to [support@getcalmo.com](mailto:support@getcalmo.com) for integration assistance ## Data Types & Analysis ### Dashboard Data * **Dashboard Configurations** - Panel layouts, query definitions, and visualization settings * **Panel Analytics** - Query performance, data sources, and refresh patterns * **Usage Metrics** - Dashboard access patterns and user interaction data * **Performance Data** - Dashboard load times and query execution metrics ### Metrics Data * **Time Series Metrics** - Prometheus metrics with full dimensional data * **Aggregated Data** - Pre-computed aggregations and rollups * **Custom Metrics** - Application-specific and business metrics * **Infrastructure Metrics** - System and infrastructure performance data ### Log Data * **Structured Logs** - JSON and structured log entries with full context * **Unstructured Logs** - Free-form log entries with pattern extraction * **Log Metadata** - Log source, timestamp, and classification information * **Error Logs** - Exception and error logs with stack traces ### Alert Data * **Alert Rules** - Alert definitions, thresholds, and evaluation criteria * **Alert History** - Historical alert firing and resolution data * **Alert States** - Current alert states and evaluation results * **Notification Data** - Alert routing and notification delivery status ### Incident Data * **Incident Details** - Incident metadata, severity, and status information * **Activity Timeline** - Incident response activities and timeline events * **Resolution Data** - Incident resolution steps and outcome documentation * **Team Coordination** - On-call assignments and escalation history The Grafana integration provides comprehensive monitoring and observability capabilities, enabling your team to analyze dashboards, query multiple datasources, and manage incidents efficiently through AI-powered assistance while maintaining strict operational controls. *** *For additional help with Grafana integration, contact our support team at [support@getcalmo.com](mailto:support@getcalmo.com).* # Overview Source: https://docs.getcalmo.com/essentials/integrations-overview Understanding how Calmo transforms your development and operations workflows through intelligent integrations # Integrations Overview Calmo transforms your existing development and operations tools into an intelligent, AI-powered workflow engine. Our comprehensive integration platform provides **154+ specialized tools** across **13 major integrations**, enabling your team to solve complex problems through natural conversation. ## Key Challenges Solved Calmo integrates with your existing tools to solve critical challenges: * **Overwhelming Observability** - Cut through alert noise and correlate signals across systems with AI-powered analysis * **Costly Downtime** - Reduce MTTR with faster detection and resolution workflows powered by intelligent automation * **Investigation Complexity** - Centralize relevant data and provide context-aware root cause analysis * **Knowledge Silos** - Capture institutional knowledge and make expert-level insights available to all team members * **Manual Operations** - Automate routine tasks while maintaining human oversight and control * **Context Switching** - Eliminate the need to switch between multiple tools and dashboards ## Available Integrations ### **Infrastructure** #### Kubernetes Integration **15+ tools across 5 categories** - Complete container orchestration management * **Resource Management** - Get, list, describe, apply, and create Kubernetes resources * **Operations** - View logs, scale deployments, patch resources, manage rollouts * **Cluster Management** - Context switching, API discovery, resource documentation * **Advanced Operations** - Port forwarding, resource deletion, generic kubectl commands * **Helm Operations** - Chart installation, upgrades, and lifecycle management *Use Cases: Cluster monitoring, troubleshooting, deployment management, multi-cloud operations* ### **Operations** #### Datadog Integration **22 tools across 6 categories** - Comprehensive observability and monitoring * **Monitoring & Metrics** - Query metrics, dashboards, and monitor configurations * **Logs & Traces** - Advanced log analysis and distributed tracing * **Infrastructure** - Host management and capacity monitoring * **Incidents** - Incident tracking and response coordination * **Real User Monitoring** - Frontend performance and user experience analysis * **Downtimes** - Maintenance window scheduling and management *Use Cases: Performance monitoring, error investigation, capacity planning, incident response* #### SigNoz Integration **9 tools across 4 categories** - Open-source observability and APM platform * **Dashboard Management** - Complete dashboard lifecycle management and data visualization * **APM & Metrics** - Application performance monitoring with distributed tracing * **Data Analysis** - Advanced ClickHouse SQL queries and trace/log investigation * **Connection & Setup** - Configuration verification and connectivity testing *Use Cases: APM monitoring, distributed tracing, custom analytics, open-source observability* #### Grafana Integration **26 tools across 8 categories** - Comprehensive monitoring and visualization * **Dashboard Management** - Search, view, and analyze Grafana dashboards * **Data Sources** - Manage and query Prometheus, Loki, and other datasources * **Prometheus Querying** - Execute PromQL queries and retrieve metadata * **Loki Querying** - Query logs and metrics using LogQL * **Alerting** - View alert rules and their statuses * **Incident Management** - Manage incidents in Grafana Incident * **OnCall Management** - Manage on-call schedules and users * **Admin & Teams** - View and manage teams *Use Cases: Multi-datasource monitoring, alerting, incident response, on-call management* ### **Incident Management** #### PagerDuty Integration **Comprehensive tools across 6 categories** - End-to-end incident response * **Incident Management** - Create, update, resolve, and analyze incidents * **Service Monitoring** - Service health and dependency tracking * **Escalation Policies** - Workflow optimization and routing management * **On-Call Scheduling** - Schedule coordination and coverage analysis * **User Management** - Team coordination and notification management * **Analytics & Reporting** - Performance metrics and historical analysis *Use Cases: Incident response, on-call optimization, escalation management, team coordination* #### Slack Integration **8 tools across 4 categories** - Intelligent team communication * **Channel Management** - Workspace navigation and channel discovery * **Messaging** - Context-aware messaging, threading, and reactions * **Data Retrieval** - Historical analysis and conversation context * **User Management** - Team identification and profile access *Use Cases: Automated incident updates, collaborative troubleshooting, knowledge sharing* ### **Development & Code Management** #### GitHub Integration **26 tools across 7 categories** - Complete development workflow automation * **Code Reading** - AI-powered code analysis and investigation * **Code Management** - File editing and repository modifications * **Repository Operations** - Repository creation and management * **Branch Management** - Branch workflows and commit analysis * **Pull Request Management** - Complete PR lifecycle automation * **Issue Management** - Bug tracking and project management * **Search & Discovery** - Advanced search across the GitHub ecosystem *Use Cases: Code review automation, repository management, issue tracking, development acceleration* #### Sentry Integration **11 tools across 5 categories** - Comprehensive error monitoring and debugging * **Project Management** - Project discovery and creation * **Issue Tracking** - Error investigation and resolution workflow * **Error Monitoring** - Event analysis and pattern recognition * **Session Replay** - Visual debugging and user experience analysis * **Configuration** - Advanced setup and project management *Use Cases: Error investigation, performance debugging, user experience optimization* ### **Data & Analytics** #### Databricks Integration **10 tools across 4 categories** - Data platform operations and analytics * **Cluster Management** - List, create, terminate, and start compute clusters * **Job Management** - Execute and monitor Databricks jobs * **Notebook Operations** - Access and export workspace notebooks * **Data Operations** - Query data and browse DBFS files *Use Cases: Data platform management, analytics workflows, cluster optimization, job monitoring* #### Redshift Integration **3 tools across 3 categories** - Data warehouse analytics and insights * **Querying** - Execute read-only SQL queries against Redshift * **Schema Inspection** - Get detailed information about specific tables * **Column Search** - Find tables containing columns with specific patterns *Use Cases: Data warehouse analytics, schema exploration, business intelligence, data discovery* #### S3 Integration **3 tools across 2 categories** - Object storage management and data operations * **Buckets** - List all S3 buckets with metadata * **Objects** - List and retrieve objects from buckets *Use Cases: Object storage management, data retrieval, backup verification, content analysis* ### **LLM & AI Operations** #### Langfuse Integration **9 tools across 3 categories** - LLM observability and prompt management * **Prompt Management** - Manage and retrieve prompts with version control * **Trace & Observations** - Analyze LLM execution traces and performance * **Session Analytics** - Session analysis and user activity monitoring *Use Cases: LLM performance monitoring, prompt optimization, conversation analytics, cost tracking* ### **Productivity & Knowledge Management** #### Notion Integration **24 tools across 7 categories** - Workspace data access and knowledge management * **Users** - Manage and retrieve Notion users * **Databases** - Query, update, and retrieve databases * **Pages** - Work with Notion pages and content * **Blocks** - Manipulate Notion blocks and content structure * **Comments** - Read and create comments for collaboration * **Search** - Search across your Notion workspace * **Properties** - Work with page properties and metadata *Use Cases: Knowledge management, content analysis, team collaboration, documentation automation* ## Integration Capabilities Matrix | Integration | Total Tools | Read-Only Tools | Write Operations | Safety Level | | -------------- | ----------- | --------------- | ---------------- | -------------------------- | | **Kubernetes** | 15+ | 8 | 7 | Mixed - High control | | **Datadog** | 22 | 19 | 3 | Mostly safe | | **SigNoz** | 9 | 9 | 0 | Safe - Read-only | | **Grafana** | 26 | 22 | 4 | Mostly safe | | **PagerDuty** | Multiple | Multiple | Multiple | Mixed - Policy-driven | | **Slack** | 8 | 5 | 3 | Safe with controls | | **GitHub** | 26 | 15 | 11 | Mixed - Graduated access | | **Sentry** | 11 | 8 | 3 | Mostly safe | | **Databricks** | 10 | 5 | 5 | Mixed - Controlled access | | **Redshift** | 3 | 3 | 0 | Safe - Read-only | | **S3** | 3 | 3 | 0 | Safe - Read-only | | **Langfuse** | 9 | 9 | 0 | Safe - Read-only | | **Notion** | 24 | 13 | 11 | Mixed - Content management | | **Total** | **154+** | **119+** | **47+** | **Configurable** | ## Security & Safety First ### Graduated Access Model **Default Configuration:** * ✅ **Read-only tools enabled** - Safe discovery and analysis capabilities * ❌ **Write operations disabled** - Require explicit enablement for safety * **Granular control** - Enable specific tools based on team needs **Permission Levels:** * **Low Risk** - Read operations, discovery, analysis (Always safe to enable) * **Medium Risk** - Limited write operations, updates (Enable with review) * **High Risk** - Destructive operations, configuration changes (Enable only when necessary) ### Enterprise-Grade Controls * **Team vs Personal Context** - Separate configurations for organization and individual use * **Role-Based Access** - Different permission levels based on team roles * **Audit Trail** - Complete logging of all AI-powered operations * **Rollback Capabilities** - Safe experimentation with easy rollback options ## Getting Started ### Quick Start Workflow 1. **Choose Your Integration** - Start with your most critical operational tool 2. **Connect Safely** - Begin with read-only access for exploration 3. **Explore Capabilities** - Use AI assistance to understand your systems 4. **Gradual Enablement** - Add write permissions as trust and understanding builds 5. **Scale Across Tools** - Expand to additional integrations based on workflow needs ### Setup Recommendations **For Development Teams:** * Start with **GitHub** for code analysis and repository management * Add **Sentry** for error monitoring and debugging workflows * Include **Notion** for documentation and knowledge management * Integrate **Slack** for collaborative development and incident response **For Operations Teams:** * Begin with **Datadog**, **SigNoz**, or **Grafana** for observability and monitoring analysis * Add **Kubernetes** for infrastructure management and troubleshooting * Include **PagerDuty** for incident response and on-call optimization **For Data Teams:** * Start with **Databricks** for data platform operations and analytics * Add **Redshift** for data warehouse analysis and reporting * Include **S3** for object storage management and data operations * Integrate **Langfuse** for LLM observability and optimization **For DevOps Teams:** * Implement **full integration suite** for comprehensive coverage * Focus on **cross-tool correlation** for complex problem solving * Emphasize **automation workflows** while maintaining human oversight ## Advanced Workflows ### Cross-Integration Intelligence * **Incident Correlation** - Link alerts across Datadog, Grafana, PagerDuty, and Slack * **Code-to-Production Tracking** - Connect GitHub changes to operational metrics * **Error Impact Analysis** - Correlate Sentry errors with infrastructure performance * **Automated Response** - Trigger Kubernetes operations based on monitoring alerts * **Data Pipeline Monitoring** - Track data flows from S3 through Databricks to Redshift ### AI-Powered Workflows * **Intelligent Escalation** - Smart routing based on expertise and availability * **Pattern Recognition** - Learn from historical data across all integrations * **Predictive Analysis** - Anticipate issues before they become critical * **Knowledge Synthesis** - Combine insights from multiple tools for comprehensive understanding * **Cost Optimization** - Analyze and optimize costs across cloud and data platforms ## Support & Resources ### Documentation Each integration has comprehensive documentation covering: * **Setup guides** with step-by-step instructions * **Tool references** with detailed capability descriptions * **Security guidelines** and best practices * **Troubleshooting** and common issues ### Getting Help * **Integration-specific documentation** - Detailed guides for each platform * **Community support** - Best practices and workflow sharing * **Enterprise support** - Dedicated assistance for complex implementations * **Contact us** - [support@getcalmo.com](mailto:support@getcalmo.com) for personalized help *** Transform your operations with intelligent automation. Each integration is designed to enhance human expertise, not replace it, ensuring your team maintains control while gaining superhuman capabilities. **Ready to get started?** Select an integration from the sidebar to begin your intelligent automation journey. # Kubernetes Source: https://docs.getcalmo.com/essentials/kubernetes Connect Calmo to your Kubernetes clusters for comprehensive container orchestration and monitoring through AI assistance # Kubernetes Integration Connect Calmo to your Kubernetes clusters to enable comprehensive container orchestration, monitoring, and troubleshooting through AI assistance. This integration provides access to 15+ specialized tools across 5 categories for complete cluster management. ## Overview & Value Proposition The Kubernetes integration transforms how your team manages containerized applications by providing: * **Cluster-Wide Visibility** - Monitor pods, services, deployments, and resources across namespaces * **Intelligent Troubleshooting** - AI-powered analysis of pod failures, resource constraints, and configuration issues * **Safe Operations** - Read-only tools enabled by default with granular control over write operations * **Multi-Cloud Support** - Works with GKE, EKS, AKS, and self-managed clusters * **Context-Aware Management** - Switch between clusters and namespaces seamlessly ## Key Capabilities When connected, Calmo gains access to **15+ Kubernetes tools** across **5 categories**: | Category | Tools | Capability | | ----------------------- | ------- | -------------------------------------------------------------- | | **Resource Management** | 5 tools | Get, list, describe, apply, and create Kubernetes resources | | **Operations** | 4 tools | View logs, scale deployments, patch resources, manage rollouts | | **Cluster Management** | 3 tools | Switch contexts, list API resources, explain resource types | | **Advanced Operations** | 3 tools | Port forwarding, resource deletion, generic kubectl commands | | **Helm Operations** | 3 tools | Install, upgrade, and uninstall Helm charts | ## Prerequisites * Kubernetes cluster access (GKE, EKS, AKS, or self-managed) * Valid kubeconfig file with appropriate permissions * For cloud providers: Service account keys (optional but recommended) * Calmo account with team or personal workspace ## Setup Methods ### Method 1: Kubeconfig Upload (Recommended) **Step 1: Prepare Your Kubeconfig** 1. Locate your kubeconfig file (typically `~/.kube/config`) 2. Ensure it contains valid cluster credentials and contexts 3. Verify access by running: `kubectl cluster-info` **Step 2: Connect to Calmo** Kubernetes Integration Setup 1. Navigate to **Integrations** in your Calmo dashboard 2. Click **Kubernetes** integration 3. Choose **Upload Kubeconfig File** 4. Select your kubeconfig file or paste the contents 5. Select your desired **context** from available options 6. Choose target **namespace** (default: `default`) ### Method 2: Cloud Provider Service Account (Enhanced Security) For enhanced security with cloud providers, you can supplement kubeconfig with service account keys: #### Google Kubernetes Engine (GKE) 1. Create a service account in Google Cloud Console 2. Assign appropriate Kubernetes permissions 3. Download the service account key (JSON) 4. Upload both kubeconfig and service account key to Calmo #### Amazon Elastic Kubernetes Service (EKS) 1. Configure AWS IAM role with EKS permissions 2. Update kubeconfig with AWS authentication 3. Provide AWS credentials through service account key #### Azure Kubernetes Service (AKS) 1. Create Azure service principal 2. Assign Kubernetes permissions 3. Configure kubeconfig with Azure authentication *Use Cases: Resource discovery, status checking, configuration analysis* ### ⚙️ Operations (Mixed Safety) **Default: Logs only** - Operational tasks with varying risk levels * **kubectl\_logs** - View container logs (✅ Read-only) * **kubectl\_scale** - Scale deployments (⚠️ Write operation) * **kubectl\_patch** - Patch resource configurations (⚠️ Write operation) * **kubectl\_rollout** - Manage deployment rollouts (⚠️ Write operation) *Use Cases: Debugging applications, scaling services, deployment management* ### 🗂️ Cluster Management (Read-Safe) **Default: Enabled** - Essential cluster navigation * **kubectl\_context** - Switch between cluster contexts * **list\_api\_resources** - Discover available Kubernetes APIs * **explain\_resource** - Get resource documentation and schemas *Use Cases: Multi-cluster management, API discovery, resource understanding* ### 🔧 Advanced Operations (High Risk) **Default: Disabled** - Powerful but potentially dangerous operations * **port\_forward** - Forward local ports to pods (⚠️ Network access) * **kubectl\_delete** - Delete Kubernetes resources (⚠️ Destructive) * **kubectl\_generic** - Execute arbitrary kubectl commands (⚠️ Unrestricted) *Use Cases: Advanced debugging, direct cluster access, emergency operations* ### 📦 Helm Operations (Package Management) **Default: Disabled** - Helm chart lifecycle management * **install\_helm\_chart** - Install Helm charts (⚠️ Write operation) * **upgrade\_helm\_chart** - Upgrade existing releases (⚠️ Write operation) * **uninstall\_helm\_chart** - Remove Helm releases (⚠️ Destructive) *Use Cases: Application deployment, package management, release lifecycle* ## Team vs Personal Configuration ### Team/Organization Setup * Shared cluster access across team members * Centralized tool configuration and policies * Organization-level context and namespace defaults * Team administrators can manage tool permissions ### Personal Setup * Individual cluster connections * Personal tool preferences and configurations * Private contexts and namespace selections * Full control over enabled capabilities ## Security & Best Practices ### ⚠️ Safety Recommendations 1. **Start with Read-Only** - Enable only read operations initially 2. **Gradual Enablement** - Add write operations as trust builds 3. **Namespace Isolation** - Restrict to specific namespaces when possible 4. **Regular Auditing** - Review enabled tools and permissions periodically 5. **Service Account Keys** - Use cloud provider service accounts for enhanced security ### 🔒 Permission Levels | Risk Level | Operations | Recommendation | | ---------- | --------------------------- | ---------------------------- | | **Low** | Get, List, Describe, Logs | ✅ Safe to enable | | **Medium** | Apply, Create, Scale, Patch | ⚠️ Enable with caution | | **High** | Delete, Generic commands | ❌ Enable only when necessary | ## Configuration Management ## Configure Tool Access\*\* Review and customize tool categories based on your needs: * ✅ **Resource Management** - Read operations (get, list, describe) enabled by default * ❌ **Write Operations** - Apply, create, delete disabled by default for safety * ✅ **Cluster Management** - Context switching and resource discovery enabled * ❌ **Advanced Operations** - Port forwarding and generic commands disabled by default ## Tool Categories & Configuration ### 🔍 Resource Management (Read-Safe) **Default: Enabled** - Essential for cluster visibility * **kubectl\_get** - Retrieve specific Kubernetes resources * **kubectl\_list** - List resources by type across namespaces * **kubectl\_describe** - Get detailed resource information * **kubectl\_apply** - Apply configuration changes (⚠️ Write operation) * **kubectl\_create** - Create new resources (⚠️ Write operation) ### Updating Cluster Configuration 1. Navigate to **Integrations** → **Kubernetes** 2. Click **Edit Configuration** 3. Upload new kubeconfig or service account keys 4. Modify context and namespace selections 5. Adjust tool permissions as needed 6. Save changes ### Managing Multiple Clusters * Not yet supported ## Troubleshooting ### Common Issues **Connection Failed** * Verify kubeconfig has valid credentials * Check cluster connectivity: `kubectl cluster-info` * Ensure proper context is selected **Permission Denied** * Verify service account has required Kubernetes permissions * Check RBAC policies in your cluster * Ensure namespace access is properly configured **Tool Execution Errors** * Review enabled tool permissions * Check if operations require write access * Verify cluster resources exist and are accessible ### Getting Help 1. **Reconnect Integration** - Use the reconnect option in integration settings 2. **Update Credentials** - Upload fresh kubeconfig or service account keys 3. **Contact Support** - Reach out to [support@getcalmo.com](mailto:support@getcalmo.com) for assistance ## Advanced Features ### Multi-Cloud Support * **Google GKE** - Full integration with Google Cloud service accounts * **Amazon EKS** - AWS IAM integration for enhanced security * **Azure AKS** - Azure Active Directory integration * **Self-Managed** - Support for any standard Kubernetes cluster ### Context & Namespace Management * Switch between multiple cluster contexts * Set default namespaces per context * Maintain separate configurations per environment * Support for namespace-scoped operations The Kubernetes integration provides the most comprehensive container orchestration capabilities in Calmo, enabling your team to manage clusters efficiently through AI-powered assistance while maintaining strict security controls. *** *For additional help with Kubernetes integration, contact our support team at [support@getcalmo.com](mailto:support@getcalmo.com).* # Langfuse Source: https://docs.getcalmo.com/essentials/langfuse Connect Calmo to Langfuse for comprehensive LLM observability and prompt management through AI assistance # Langfuse Integration Connect Calmo to your Langfuse instance to enable LLM observability and prompt management through AI assistance. This integration provides access to **9 specialized tools** across **3 categories** for complete LLM monitoring and optimization workflows. ## Overview The Langfuse integration transforms how your team handles LLM operations and observability by providing: * **Intelligent Prompt Management** - AI-powered prompt optimization and version control * **Advanced Trace Analysis** - Comprehensive LLM execution tracing with performance insights * **Session Analytics** - User activity analysis and conversation pattern recognition * **Cost Optimization** - Token usage analysis and cost monitoring across LLM providers * **Quality Assurance** - Automated evaluation and quality scoring of LLM outputs * **Safe Operations** - All tools are read-only for secure observability without data modification ## Key Capabilities When connected, Calmo gains access to **9 Langfuse tools** across **3 categories**: | Category | Tools | Capability | | ------------------------ | ------- | ------------------------------------------------ | | **Prompt Management** | 2 tools | Manage and retrieve prompts with version control | | **Trace & Observations** | 5 tools | Analyze LLM execution traces and performance | | **Session Analytics** | 2 tools | Session analysis and user activity monitoring | ## Prerequisites * Langfuse instance (cloud or self-hosted) with API access * Project access with appropriate permissions * Calmo account with team or personal workspace ## Setup Process ### Step 1: Access Your Langfuse Instance **Locate Your Langfuse Configuration:** 1. Navigate to your Langfuse dashboard 2. Note your instance URL (e.g., `https://cloud.langfuse.com` or your self-hosted URL) 3. Ensure you have project access and API key generation permissions ### Step 2: Generate Langfuse API Keys **Create Project API Keys:** 1. Log in to your Langfuse instance 2. Navigate to your target project 3. Go to **Settings** → **API Keys** 4. Click **Create new API key pair** 5. Configure key settings: * **Description**: "Calmo Integration" * **Permissions**: Read-only (recommended for security) 6. Copy both the **Public Key** and **Secret Key** immediately **API Key Types:** * **Public Key**: Used for client-side operations and identification * **Secret Key**: Used for server-side operations and authentication * **Base URL**: Your Langfuse instance URL (cloud or self-hosted) **Required Permissions:** * Read access to prompts and prompt versions * Read access to traces and observations * Read access to sessions and user activity data * Read access to project statistics and metadata ### Step 3: Connect to Calmo 1. Navigate to **Integrations** in your Calmo dashboard 2. Click **Langfuse** integration 3. Enter your **Public Key** 4. Enter your **Secret Key** 5. Enter your **Base URL** (defaults to `https://cloud.langfuse.com`) 6. Configure tool permissions: * ✅ **All operations are read-only** for security * ✅ **All tools enabled by default** for comprehensive observability 7. Test the connection using the built-in connection test 8. Complete the integration setup ## Tool Categories & Configuration ### **Prompt Management** (Safe) **Default: Enabled** - Essential for prompt optimization and version control * **get-prompts** - Get all prompts with metadata and version information * **get-prompt** - Get a specific prompt with full version history and configuration *Use Cases: Prompt discovery, version comparison, performance analysis, optimization tracking* ### **Trace & Observations** (Safe) **Default: Enabled** - Core LLM execution monitoring and analysis * **get\_trace** - Get comprehensive trace information with all spans and metadata * **get-trace-details** - Get detailed trace information including costs and performance * **fetch-traces** - Fetch multiple traces with filtering and pagination * **fetch-observations** - Fetch observations with advanced filtering capabilities * **fetch-observation** - Fetch a single observation with complete details *Use Cases: Performance monitoring, error investigation, cost analysis, quality assessment* ### **Session Analytics** (Safe) **Default: Enabled** - User behavior and conversation analysis * **fetch-sessions** - Fetch user sessions with activity and conversation data * **analyze-user-activity** - Analyze user activity patterns and engagement metrics *Use Cases: User behavior analysis, conversation optimization, engagement tracking, pattern recognition* ## Team vs Personal Configuration ### Team/Organization Setup * Shared Langfuse project access across team members * Organization-level LLM monitoring and governance policies * Centralized prompt management and optimization workflows * Team-wide cost monitoring and optimization insights ### Personal Setup * Individual Langfuse project connections * Personal prompt experimentation and analysis * Private LLM performance monitoring and debugging * Individual cost tracking and optimization ## Security & Best Practices ### ⚠️ Safety Recommendations 1. **Read-Only Access** - All tools are read-only by design for maximum security 2. **Key Security** - Use dedicated API keys with minimal required permissions 3. **Instance Security** - Ensure Langfuse instance uses HTTPS and proper authentication 4. **Data Privacy** - Review data retention and privacy policies for your Langfuse instance 5. **Access Monitoring** - Monitor API usage and access patterns regularly ### 🔒 Permission Levels | Risk Level | Operations | Recommendation | | ---------- | --------------------------------------------- | ---------------- | | **Low** | All Langfuse operations (read-only by design) | ✅ Safe to enable | ## Configuration Management ### Updating Langfuse Connection 1. Navigate to **Integrations** → **Langfuse** 2. Click **Edit Configuration** 3. Update public/secret keys or base URL as needed 4. Test connection to verify changes 5. Save configuration updates ### Managing Multiple Projects * Connect separate Langfuse projects for different applications * Use different API keys for production vs development environments * Configure project-specific monitoring and analysis workflows * Maintain separate cost tracking per project ## Advanced Features ### Prompt Intelligence * **Version Analysis** - Compare prompt versions and performance metrics * **Optimization Insights** - AI-powered prompt improvement suggestions * **A/B Testing** - Analyze prompt performance across different versions * **Template Management** - Manage prompt templates and variables ### Trace Analytics * **Performance Monitoring** - Real-time LLM execution performance tracking * **Cost Analysis** - Detailed token usage and cost breakdown by provider * **Error Detection** - Automatic identification of failed or problematic traces * **Quality Scoring** - Automated quality assessment of LLM outputs ### Session Intelligence * **Conversation Flow** - Analyze conversation patterns and user journeys * **Engagement Metrics** - Track user engagement and session quality * **Behavioral Patterns** - Identify common user behavior patterns * **Optimization Opportunities** - Discover areas for conversation improvement ## LLM Observability Workflows ### Performance Monitoring * **Real-Time Tracking** - Monitor LLM performance and latency in real-time * **Cost Optimization** - Track and optimize token usage across different models * **Quality Assurance** - Continuous monitoring of output quality and relevance * **Error Analysis** - Identify and analyze LLM execution errors and failures ### Prompt Development * **Iterative Optimization** - Track prompt performance improvements over time * **Version Management** - Manage prompt versions and deployment strategies * **A/B Testing** - Compare different prompt approaches and configurations * **Best Practice Discovery** - Identify high-performing prompt patterns ### User Experience Analysis * **Conversation Quality** - Analyze conversation effectiveness and user satisfaction * **Journey Mapping** - Understand user interaction patterns and preferences * **Engagement Optimization** - Optimize conversation flows for better engagement * **Personalization Insights** - Discover opportunities for conversation personalization ## Troubleshooting ### Common Issues **Authentication Failed** * Verify public and secret keys are correct and haven't been revoked * Check API key permissions in Langfuse project settings * Ensure base URL is correct for your Langfuse instance * Verify network connectivity to Langfuse instance **Project Access Denied** * Confirm API keys have access to the target project * Check project permissions and user access levels * Verify project exists and is accessible * Review Langfuse logs for detailed error information **Data Not Found** * Verify data exists in the specified time range * Check trace IDs and observation IDs are correct * Ensure data collection is active for your application * Review data retention policies for your Langfuse instance **Connection Timeout** * Check network connectivity to Langfuse instance * Verify Langfuse instance is responsive and healthy * Consider increasing timeout settings if using self-hosted instance * Review firewall and proxy settings ### Getting Help 1. **Test Connection** - Use the built-in connection test feature 2. **Update Credentials** - Regenerate API keys if authentication issues persist 3. **Check Documentation** - Refer to Langfuse official documentation for API setup 4. **Contact Support** - Reach out to [support@getcalmo.com](mailto:support@getcalmo.com) for integration assistance ## Data Types & Analysis ### Prompt Data * **Prompt Configurations** - Prompt templates, variables, and version information * **Performance Metrics** - Prompt execution success rates and quality scores * **Version History** - Complete audit trail of prompt changes and deployments * **Usage Analytics** - Prompt usage patterns and frequency analysis ### Trace Data * **Execution Traces** - Complete LLM execution flows with timing and performance data * **Span Information** - Individual operation details within traces * **Cost Metrics** - Token usage and cost breakdown by model and provider * **Quality Scores** - Automated and manual quality assessments ### Observation Data * **LLM Outputs** - Generated text and response quality metrics * **Input Analysis** - Input processing and preparation statistics * **Model Performance** - Model-specific performance and accuracy metrics * **Error Tracking** - Failed operations and error classification ### Session Data * **User Sessions** - Complete user interaction sessions with conversation data * **Activity Patterns** - User behavior patterns and engagement metrics * **Conversation Flows** - Conversation structure and progression analysis * **Engagement Metrics** - Session duration, interaction frequency, and satisfaction ### Analytics Data * **Usage Statistics** - Application usage patterns and adoption metrics * **Performance Trends** - Long-term performance and quality trends * **Cost Optimization** - Cost analysis and optimization recommendations * **Quality Insights** - Quality improvement opportunities and best practices The Langfuse integration provides comprehensive LLM observability capabilities, enabling your team to monitor prompt performance, analyze conversation quality, and optimize LLM operations efficiently through AI-powered assistance while maintaining complete data security. *** *For additional help with Langfuse integration, contact our support team at [support@getcalmo.com](mailto:support@getcalmo.com).* # Notion Source: https://docs.getcalmo.com/essentials/notion Connect Calmo to Notion for comprehensive workspace data access and knowledge management through AI assistance # Notion Integration Connect Calmo to your Notion workspace to enable workspace data access and knowledge management through AI assistance. This integration provides access to **24 specialized tools** across **7 categories** for complete knowledge management and collaboration workflows. ## Overview The Notion integration transforms how your team handles knowledge management and workspace collaboration by providing: * **Intelligent Database Operations** - AI-powered database querying and content analysis * **Advanced Page Management** - Comprehensive page creation, modification, and content extraction * **Smart Block Manipulation** - Precise block-level content management and organization * **Collaborative Features** - Enhanced commenting and collaboration workflows * **Powerful Search** - AI-enhanced search across your entire Notion workspace * **Safe Operations** - Read-only tools enabled by default with controlled write access ## Key Capabilities When connected, Calmo gains access to **24 Notion tools** across **7 categories**: | Category | Tools | Capability | | -------------- | ------- | ---------------------------------------------- | | **Users** | 3 tools | Manage and retrieve Notion users | | **Databases** | 3 tools | Query, update, and retrieve databases | | **Pages** | 3 tools | Work with Notion pages and content | | **Blocks** | 5 tools | Manipulate Notion blocks and content structure | | **Comments** | 2 tools | Read and create comments for collaboration | | **Search** | 1 tool | Search across your Notion workspace | | **Properties** | 1 tool | Work with page properties and metadata | ## Prerequisites * Notion workspace with integration permissions * Admin access to create integrations and generate tokens * Calmo account with team or personal workspace ## Setup Process ### Step 1: Create Notion Integration **Create Internal Integration:** 1. Navigate to [Notion Integrations Dashboard](https://www.notion.com/my-integrations) 2. Click **+ New integration** 3. Configure integration settings: * **Name**: "Calmo Integration" * **Associated workspace**: Select your target workspace * **Type**: Internal integration 4. Configure capabilities (based on desired tool access): * **Read content**: Required for all read operations * **Update content**: Required for write operations * **Insert content**: Required for content creation * **Read comments**: Required for comment access * **Insert comments**: Required for comment creation 5. Submit the integration creation ### Step 2: Generate Integration Token **Get Integration Token:** 1. After creating the integration, navigate to its settings page 2. Copy the **Internal Integration Token** immediately 3. Store the token securely - you'll need it for the Calmo connection **Integration Token Security:** * Tokens provide access to shared pages and databases only * Tokens do not grant access to private content unless explicitly shared * Regularly rotate tokens according to security policies ### Step 3: Share Content with Integration **Share Pages and Databases:** 1. Navigate to the Notion pages or databases you want to access through Calmo 2. Click **Share** in the top-right corner 3. Click **Add connections** 4. Search for and select your "Calmo Integration" 5. Confirm the connection **Important Notes:** * Only shared content will be accessible through the integration * Sharing can be done at the page or database level * Sub-pages inherit sharing permissions from parent pages ### Step 4: Connect to Calmo 1. Navigate to **Integrations** in your Calmo dashboard 2. Click **Notion** integration 3. Enter your **Integration Token** 4. Configure tool permissions: * ✅ **Read-only operations** enabled by default * ❌ **Write operations** disabled for safety 5. Test the connection using the built-in connection test 6. Complete the integration setup ## Tool Categories & Configuration ### **Users** (Safe) **Default: Enabled** - User management and identification * **API-get-user** - Retrieve a single Notion user by ID * **API-get-users** - List all users in the workspace * **API-get-self** - Get information about the current integration *Use Cases: Team identification, user directory, collaboration management* ### **Databases** (Mixed Safety) **Default: Read operations enabled** - Database management and querying **Read Operations (✅ Enabled by default):** * **API-post-database-query** - Query databases with filters and sorting * **API-retrieve-a-database** - Retrieve database schema and configuration **Write Operations (⚠️ Disabled by default):** * **API-update-a-database** - Update database properties and configuration *Use Cases: Data analysis, content discovery, database administration, reporting* ### **Pages** (Mixed Safety) **Default: Read operations enabled** - Page content management **Read Operations (✅ Enabled by default):** * **API-retrieve-a-page** - Retrieve page content and metadata **Write Operations (⚠️ Disabled by default):** * **API-patch-page** - Update existing page properties and content * **API-post-page** - Create new pages in the workspace *Use Cases: Content analysis, documentation management, page creation, knowledge extraction* ### **Blocks** (Mixed Safety) **Default: Read operations enabled** - Block-level content manipulation **Read Operations (✅ Enabled by default):** * **API-get-block-children** - Get children blocks of a parent block * **API-retrieve-a-block** - Retrieve specific block information **Write Operations (⚠️ Disabled by default):** * **API-patch-block-children** - Update children blocks content * **API-update-a-block** - Update specific block content * **API-delete-a-block** - Delete blocks from pages *Use Cases: Content structure analysis, block-level editing, content organization, detailed formatting* ### **Comments** (Mixed Safety) **Default: Read operations enabled** - Collaboration and feedback management **Read Operations (✅ Enabled by default):** * **API-retrieve-a-comment** - Retrieve comments from pages and blocks **Write Operations (⚠️ Disabled by default):** * **API-create-a-comment** - Create new comments for collaboration *Use Cases: Feedback analysis, collaboration tracking, discussion management* ### **Search** (Safe) **Default: Enabled** - Workspace-wide content discovery * **API-post-search** - Search across your accessible Notion workspace *Use Cases: Content discovery, knowledge retrieval, cross-page analysis, research* ### **Properties** (Safe) **Default: Enabled** - Page metadata and property management * **API-retrieve-a-page-property** - Retrieve specific page properties and values *Use Cases: Metadata analysis, property extraction, data validation, reporting* ## Team vs Personal Configuration ### Team/Organization Setup * Shared Notion workspace access across team members * Organization-level knowledge management and documentation policies * Centralized content creation and collaboration workflows * Team administrators control page creation and modification permissions ### Personal Setup * Individual Notion workspace connections * Personal knowledge management and note-taking * Private content analysis and organization * Full control over enabled tool capabilities ## Security & Best Practices ### ⚠️ Safety Recommendations 1. **Selective Sharing** - Share only necessary pages and databases with the integration 2. **Read-First Approach** - Begin with read-only operations, add write access gradually 3. **Token Security** - Use dedicated integration tokens with minimal required permissions 4. **Access Monitoring** - Regularly review shared content and integration access 5. **Content Validation** - Validate content before bulk operations or automated changes ### 🔒 Permission Levels | Risk Level | Operations | Recommendation | | ---------- | --------------------------------------------------- | ---------------------- | | **Low** | Retrieve users, pages, databases, search content | ✅ Safe to enable | | **Medium** | Retrieve comments, page properties | ✅ Generally safe | | **High** | Create/update pages, modify blocks, create comments | ⚠️ Enable with caution | ## Configuration Management ### Updating Notion Connection 1. Navigate to **Integrations** → **Notion** 2. Click **Edit Configuration** 3. Update integration token if needed 4. Modify tool permissions based on team requirements 5. Test connection to verify changes 6. Save configuration updates ### Managing Content Access * **Add New Content**: Share additional pages/databases with the integration * **Remove Access**: Unshare content that should no longer be accessible * **Audit Access**: Regularly review which content is shared with integrations * **Permission Updates**: Modify integration capabilities in Notion settings ## Advanced Features ### Database Intelligence * **Advanced Querying** - Complex database queries with filters, sorts, and aggregations * **Schema Analysis** - Automatic database schema discovery and validation * **Data Relationships** - Cross-database relationship analysis and mapping * **Content Classification** - AI-powered content categorization and tagging ### Content Analysis * **Semantic Search** - AI-enhanced search across all accessible content * **Content Insights** - Automated content analysis and summarization * **Knowledge Mapping** - Relationship discovery between pages and concepts * **Quality Assessment** - Content quality and completeness analysis ### Collaboration Enhancement * **Activity Tracking** - Monitor collaboration patterns and engagement * **Comment Analysis** - Analyze feedback and discussion patterns * **Team Insights** - Understand team collaboration and knowledge sharing * **Workflow Optimization** - Identify and optimize content creation workflows ## Knowledge Management Workflows ### Content Discovery * **Intelligent Search** - AI-powered search across entire workspace * **Content Recommendations** - Suggest relevant content based on context * **Knowledge Gaps** - Identify missing or incomplete documentation * **Content Clustering** - Group related content for better organization ### Documentation Management * **Automated Documentation** - Generate documentation from existing content * **Content Standards** - Enforce documentation standards and templates * **Version Tracking** - Monitor content changes and version history * **Quality Assurance** - Automated content quality checks and validation ### Team Collaboration * **Knowledge Sharing** - Facilitate knowledge transfer between team members * **Collaboration Analytics** - Analyze team collaboration patterns * **Expertise Mapping** - Identify subject matter experts and knowledge areas * **Workflow Automation** - Automate routine content management tasks ## Troubleshooting ### Common Issues **Authentication Failed** * Verify integration token is correct and hasn't been revoked * Check integration permissions in Notion integration settings * Ensure integration is properly configured in Notion workspace * Verify network connectivity to Notion API **Content Not Accessible** * Confirm content is shared with the Calmo integration * Check page and database sharing permissions * Verify content exists and hasn't been deleted * Review workspace access and user permissions **Operation Not Permitted** * Check integration capabilities in Notion settings * Verify required permissions are enabled for the operation * Confirm user has appropriate workspace permissions * Review integration token scope and access levels **API Rate Limiting** * Notion enforces API rate limits based on plan type * Monitor API usage and request frequency * Implement appropriate delays between operations * Consider upgrading Notion plan for higher limits ### Getting Help 1. **Test Connection** - Use the built-in connection test feature 2. **Update Token** - Regenerate integration token if authentication issues persist 3. **Check Sharing** - Verify content is properly shared with the integration 4. **Contact Support** - Reach out to [support@getcalmo.com](mailto:support@getcalmo.com) for integration assistance ## Data Types & Analysis ### User Data * **User Profiles** - User information, roles, and workspace permissions * **Activity Patterns** - User activity and collaboration patterns * **Expertise Areas** - User knowledge areas and content contributions * **Team Structure** - Team organization and collaboration relationships ### Page Data * **Content Structure** - Page hierarchy, organization, and relationships * **Content Analysis** - Text analysis, summarization, and key insights * **Metadata** - Page properties, tags, and classification information * **Version History** - Page change history and evolution tracking ### Database Data * **Schema Information** - Database structure, properties, and relationships * **Record Data** - Database records with full property values * **Query Results** - Filtered and sorted database query results * **Usage Analytics** - Database access patterns and usage statistics ### Block Data * **Content Blocks** - Individual content blocks with type and formatting * **Block Hierarchy** - Parent-child relationships and content structure * **Rich Content** - Images, files, embeds, and multimedia content * **Formatting** - Text formatting, styling, and presentation information ### Comment Data * **Discussion Threads** - Comment conversations and reply chains * **Feedback Analysis** - Comment sentiment and feedback patterns * **Collaboration Metrics** - Comment frequency and engagement levels * **Resolution Tracking** - Issue resolution and feedback follow-up The Notion integration provides comprehensive workspace data access and knowledge management capabilities, enabling your team to analyze content, manage databases, and optimize collaboration efficiently through AI-powered assistance while maintaining strict access controls. *** *For additional help with Notion integration, contact our support team at [support@getcalmo.com](mailto:support@getcalmo.com).* # PagerDuty Source: https://docs.getcalmo.com/essentials/pagerduty Connect Calmo to PagerDuty for comprehensive incident management, escalation, and on-call coordination through AI assistance # PagerDuty Integration Connect Calmo to your PagerDuty account to enable comprehensive incident management, escalation coordination, and on-call optimization through AI assistance. This integration provides access to **specialized tools** across multiple categories for complete incident response workflows. ## Overview & Value Proposition The PagerDuty integration transforms how your team handles incident management and on-call operations by providing: * **Intelligent Incident Analysis** - AI-powered investigation of incidents with automatic context gathering * **Smart Escalation Management** - Automated escalation policy optimization and routing decisions * **On-Call Intelligence** - Intelligent scheduling analysis and workload distribution insights * **Service Health Monitoring** - Comprehensive service status tracking and dependency analysis * **Incident Response Automation** - Streamlined workflows from detection to resolution * **Historical Pattern Recognition** - Learning from past incidents to prevent future occurrences ## Key Capabilities When connected, Calmo gains access to **PagerDuty tools** across multiple categories: | Category | Capability | | ------------------------- | ---------------------------------------------- | | **Incident Management** | Create, update, resolve, and analyze incidents | | **Service Monitoring** | Monitor service health and dependencies | | **Escalation Policies** | Manage and optimize escalation workflows | | **On-Call Scheduling** | Coordinate schedules and coverage analysis | | **User Management** | Team coordination and notification management | | **Analytics & Reporting** | Historical analysis and performance metrics | ## Prerequisites * PagerDuty account with appropriate access permissions * Admin or manager access to generate API tokens * Calmo account with team or personal workspace ## Setup Process ### Step 1: Generate PagerDuty API Token **Create REST API Key:** 1. Log in to your [PagerDuty account](https://app.pagerduty.com) 2. Navigate to **Configuration** → **API Access** 3. Click **Create New API Key** 4. Configure API key settings: * **Description**: "Calmo Integration" * **Role**: Select appropriate access level **Recommended Access Levels:** | Access Level | Capabilities | Use Cases | | ------------------ | -------------------------------------- | ------------------------------------ | | **Read-Only User** | View incidents, services, schedules | Basic monitoring and analysis | | **Observer** | Read incidents, limited write access | Incident investigation with updates | | **Responder** | Full incident management | Complete incident response workflows | | **Manager/Admin** | All operations including configuration | Full integration capabilities | 5. Click **Create Key** 6. Copy the generated API key immediately ### Step 2: Connect to Calmo 1. Navigate to **Integrations** in your Calmo dashboard 2. Click **PagerDuty** integration 3. Enter your **API Token** 4. Configure tool permissions: * ✅ **Read-only operations** enabled by default * ❌ **Write operations** disabled for safety 5. Complete the connection ## Tool Categories & Configuration ### 🚨 Incident Management (Mixed Safety) **Default: Read operations enabled** - Core incident response capabilities **Read Operations (✅ Enabled by default):** * **List Incidents** - Query incidents with filtering and status tracking * **Get Incident Details** - Retrieve comprehensive incident information * **Get Incident Timeline** - Access complete incident response history * **List Incident Notes** - View all incident communication and updates **Write Operations (⚠️ Disabled by default):** * **Create Incident** - Trigger new incidents programmatically * **Update Incident** - Modify incident status, priority, and assignments * **Resolve Incident** - Close incidents with resolution details * **Add Incident Note** - Add contextual information to incidents *Use Cases: Incident investigation, response coordination, status tracking, post-mortem analysis* ### 🔧 Service Management (Safe) **Default: Enabled** - Service health and dependency monitoring * **List Services** - Discover all monitored services and their configurations * **Get Service Details** - Retrieve service metadata and health status * **List Service Dependencies** - Map service relationships and dependencies * **Get Service Metrics** - Access service performance and availability data *Use Cases: Service discovery, dependency analysis, health monitoring, capacity planning* ### 📈 Escalation Policies (Mixed Safety) **Default: Read-only enabled** - Escalation workflow management **Read Operations (✅ Enabled by default):** * **List Escalation Policies** - View all escalation workflows and rules * **Get Escalation Policy Details** - Detailed policy configuration and routing **Write Operations (⚠️ Disabled by default):** * **Create Escalation Policy** - Define new escalation workflows * **Update Escalation Policy** - Modify existing escalation rules *Use Cases: Escalation optimization, policy analysis, workflow design, coverage planning* ### 📅 On-Call Scheduling (Mixed Safety) **Default: Read operations enabled** - Schedule coordination and management **Read Operations (✅ Enabled by default):** * **List Schedules** - View all on-call schedules and rotations * **Get Schedule Details** - Detailed schedule configuration and coverage * **List On-Call Users** - Current and upcoming on-call assignments * **Get Schedule Overrides** - Temporary schedule modifications **Write Operations (⚠️ Disabled by default):** * **Create Schedule Override** - Temporary schedule adjustments * **Update Schedule** - Modify schedule configuration and rotations *Use Cases: Coverage analysis, schedule optimization, on-call coordination, workload distribution* ### 👥 User Management (Safe) **Default: Enabled** - Team coordination and communication * **List Users** - Directory of all PagerDuty users and their roles * **Get User Details** - Detailed user profiles and contact information * **List User Contact Methods** - Available communication channels per user * **Get User On-Call Status** - Current on-call assignments and availability *Use Cases: Team coordination, contact management, escalation routing, availability tracking* ### 📊 Analytics & Reporting (Safe) **Default: Enabled** - Performance analysis and insights * **Get Analytics Data** - Historical incident and response metrics * **List Log Entries** - Comprehensive audit trail of all activities * **Get Service Metrics** - Service-level performance indicators * **Generate Reports** - Custom reporting on incidents and response times *Use Cases: Performance analysis, trend identification, team optimization, compliance reporting* ## Team vs Personal Configuration ### Team/Organization Setup * Organization-wide incident response coordination * Shared escalation policies and schedule management * Team-level analytics and performance tracking * Administrators control incident creation and modification permissions ### Personal Setup * Individual on-call schedule management * Personal incident investigation and analysis * Private analytics and performance insights * Full control over enabled tool capabilities ## Security & Best Practices ### ⚠️ Safety Recommendations 1. **Read-First Approach** - Begin with read-only operations, add write access gradually 2. **Token Management** - Regularly rotate API tokens according to security policies 3. **Scope Limitation** - Use minimal required access level for integration needs 4. **Incident Hygiene** - Establish clear policies for AI-assisted incident creation 5. **Escalation Testing** - Regular testing of escalation policies and workflows ### 🔒 Permission Levels | Risk Level | Operations | Recommendation | | ---------- | ----------------------------------- | ----------------------------- | | **Low** | View incidents, services, schedules | ✅ Safe to enable | | **Medium** | Update incidents, add notes | ⚠️ Enable with review | | **High** | Create incidents, modify policies | ⚠️ Enable only when necessary | ## Configuration Management ### Updating PagerDuty Connection 1. Navigate to **Integrations** → **PagerDuty** 2. Click **Edit Configuration** 3. Update API token or access permissions 4. Modify tool permissions based on team requirements 5. Test connection with read-only operations 6. Save configuration changes ### Managing Multiple Teams * Configure access to multiple PagerDuty teams and services * Set up team-specific tool permissions and workflows * Maintain separate escalation policies per team * Cross-team incident correlation and analysis ## Advanced Features ### Intelligent Incident Analysis * **Context Gathering** - Automatic collection of relevant incident data * **Pattern Recognition** - Identification of recurring incident patterns * **Root Cause Correlation** - Link incidents to underlying service issues * **Impact Assessment** - Automatic evaluation of incident severity and scope ### Escalation Optimization * **Policy Analysis** - Review and optimize escalation workflows * **Coverage Planning** - Ensure adequate on-call coverage across teams * **Workload Distribution** - Balance incident load across team members * **Response Time Analysis** - Identify bottlenecks in incident response ### Service Dependency Mapping * **Dependency Visualization** - Map complex service relationships * **Impact Propagation** - Understand how incidents affect dependent services * **Critical Path Analysis** - Identify mission-critical service dependencies * **Capacity Planning** - Service growth and scaling recommendations ## Integration Workflows ### Automated Incident Response 1. **Incident Detection** - Automatic monitoring of PagerDuty incident feeds 2. **Context Enrichment** - Gather relevant service and historical data 3. **Impact Analysis** - Assess incident scope and potential effects 4. **Escalation Intelligence** - Smart routing and escalation recommendations 5. **Resolution Tracking** - Monitor incident resolution progress ### Proactive Management * **Schedule Optimization** - Analysis and recommendations for on-call schedules * **Policy Enhancement** - Suggestions for improving escalation policies * **Performance Monitoring** - Track team and service performance metrics * **Predictive Analysis** - Identify potential issues before they become incidents ## Troubleshooting ### Common Issues **Authentication Failed** * Verify API token is correct and hasn't expired * Check that token hasn't been revoked or deactivated * Ensure proper access level for enabled tools **Permission Denied** * Review API token access level and permissions * Check team membership for target services and escalation policies * Verify organization-level access restrictions **Rate Limiting** * PagerDuty enforces API rate limits (varies by plan) * Monitor API usage in PagerDuty account settings * Consider upgrading PagerDuty plan for higher limits **Service Not Found** * Verify service names and IDs are correct * Check that services exist and are accessible with current token * Ensure proper team membership for private services ### Getting Help 1. **Test Connection** - Use connection test feature in integration settings 2. **Update Token** - Regenerate API token with appropriate access level 3. **Contact Support** - Reach out to [support@getcalmo.com](mailto:support@getcalmo.com) for assistance ## Data Types & Analysis ### Incident Data * **Incident Metadata** - Title, description, severity, status, timestamps * **Assignment Information** - Current assignees and escalation history * **Response Timeline** - Complete incident lifecycle tracking * **Resolution Details** - Actions taken and final resolution information ### Service Data * **Service Configuration** - Service settings and integration details * **Health Status** - Current operational status and availability * **Dependency Mapping** - Service relationships and impact analysis * **Performance Metrics** - Response times and error rates ### Team Data * **User Profiles** - Team member information and contact details * **Schedule Information** - On-call rotations and coverage patterns * **Escalation Policies** - Workflow definitions and routing rules * **Performance Analytics** - Response times and workload distribution ## PagerDuty Webhooks Enhance your PagerDuty integration with real-time notifications that automatically create issues in Calmo when incidents occur. This provides seamless incident-to-issue tracking for complete workflow automation. ### Overview & Benefits PagerDuty webhooks transform how your team handles incident notifications by providing: * **Automatic Issue Creation** - Incidents become trackable issues in Calmo instantly * **Real-time Synchronization** - Status updates flow bidirectionally between systems * **Contextual Integration** - Issues include full incident metadata and timeline * **Team Collaboration** - Shared visibility across personal and team contexts * **Enterprise Security** - Cryptographic signature validation for secure data transfer ### Webhook Capabilities When configured, PagerDuty webhooks provide comprehensive incident lifecycle tracking: | Event Category | PagerDuty Events | Calmo Action | | -------------------- | --------------------------------------------------------------------------------------------------- | ---------------------------------------------------- | | **Issue Creation** | `incident.triggered`, `incident.escalated`, `incident.responder.added`, `incident.priority_updated` | Creates new issues with appropriate severity mapping | | **Issue Resolution** | `incident.resolved`, `incident.acknowledged` | Marks existing issues as resolved or acknowledged | | **Issue Updates** | `incident.annotated`, `incident.delegated`, `incident.reassigned`, `incident.responder.replied` | Updates issue metadata and timeline | | **Issue Reopening** | `incident.reopened`, `incident.unacknowledged` | Reopens previously resolved issues | ### Setup Process #### Step 1: Generate Webhook URL in Calmo 1. Navigate to **Integrations** → **PagerDuty** in your Calmo dashboard 2. Ensure your PagerDuty integration is active and connected 3. In the **Webhook Management** section, click **Generate Webhook** 4. Copy the generated webhook URL securely #### Step 2: Create PagerDuty V3 Webhook Subscription 1. **Access PagerDuty Webhooks:** * Log in to [PagerDuty](https://app.pagerduty.com) * Navigate to **Integrations** → **Generic Webhooks** 2. **Create Webhook Subscription:** * Click **"Add Webhook Subscription"** * Select **"V3 Webhook Subscription"** * Enter your Calmo webhook URL * Set description: **"Calmo Integration Webhook"** * Choose scope: **Service** or **Account** based on requirements 3. **Configure Event Types:** Select events based on your workflow needs: * **Essential Events**: `incident.triggered`, `incident.resolved`, `incident.acknowledged` * **Extended Events**: `incident.escalated`, `incident.responder.added`, `incident.priority_updated` * **Advanced Events**: All remaining incident events for complete tracking 4. **Apply Filters (Optional):** * **Service Filter**: Limit to specific services * **Team Filter**: Restrict to particular teams * **Leave empty**: Receive all account incidents 5. **Save and Copy Signing Secret:** * Click **"Save"** to create the subscription * **Important**: Copy the signing secret immediately (shown only once) #### Step 3: Configure Signature Validation (Recommended) 1. Return to Calmo's **Webhook Management** section 2. Click **"Add Signing Secret"** next to your webhook 3. Paste the PagerDuty signing secret 4. Complete the validation wizard to verify security setup ##### How to Get Your PagerDuty Webhook Signing Secret When setting up webhooks in PagerDuty, follow these steps to obtain your signing secret: 1. **Create a new webhook subscription** in your PagerDuty account 2. **During setup, PagerDuty will display a signing secret** - copy it immediately 3. **You won't be able to see it again** after leaving the page 4. **Paste the secret into Calmo** so we can verify incoming webhooks > ⚠️ **Important**: If you didn't copy the secret during initial setup, you'll need to create a new webhook subscription to get a new secret. #### Step 4: Test Integration 1. Use Calmo's **"Test Endpoint"** button for connectivity verification 2. Trigger a test incident in PagerDuty 3. Verify the issue appears in your Calmo dashboard 4. Confirm resolution workflows update correctly ### Security & Best Practices #### Enterprise Security Features * **HMAC-SHA256 Encryption**: Industry-standard cryptographic signature validation * **Timing-Safe Comparison**: Protection against timing attack vulnerabilities * **Secure Secret Storage**: Encrypted webhook secrets with per-webhook isolation * **Request Validation**: Comprehensive payload integrity verification #### Configuration Best Practices 1. **Always Enable Signature Validation** - Ensures webhook authenticity and prevents spoofing 2. **Use Service Filters** - Reduce noise by targeting specific services 3. **Monitor Webhook Status** - Regular testing and status verification 4. **Secure Secret Management** - Treat signing secrets as sensitive credentials 5. **Test Thoroughly** - Validate complete incident lifecycle workflows ### Priority and Severity Mapping PagerDuty incident priorities automatically map to appropriate Calmo severity levels: | PagerDuty Priority | Calmo Severity | Visual Indicator | | -------------------------- | -------------- | ----------------------------- | | **P1, P2, Critical, High** | Critical | Red alert indicators | | **P3, Medium** | Warning | Yellow warning indicators | | **P4, P5, Low, Info** | Info | Blue informational indicators | | **Unknown/Unset** | Medium | Default yellow indicators | This mapping ensures consistent incident classification and appropriate response prioritization across both systems. ### Team vs Personal Webhooks #### Personal Webhook Configuration * **Scope**: Individual user context * **Visibility**: Private to webhook creator * **Use Case**: Personal on-call responsibilities and individual incident tracking * **Setup**: Generate webhook without organization context #### Team Webhook Configuration * **Scope**: Organization/team context * **Visibility**: Shared across all team members * **Use Case**: Collaborative incident response and team coordination * **Setup**: Generate webhook with organization ID parameter ### Advanced Integration Scenarios #### Multi-Service Monitoring * Configure separate webhooks for different service categories * Use PagerDuty service filters for targeted incident routing * Implement team-specific webhooks for service ownership models #### Escalation Policy Integration * Map PagerDuty escalation events to Calmo issue assignments * Track escalation patterns for team performance analysis * Automate response coordination through combined incident and issue workflows #### Analytics and Reporting * Leverage webhook data for incident trend analysis * Combine PagerDuty API tools with webhook automation * Generate custom reports on incident response effectiveness ### Troubleshooting #### Common Issues and Solutions **Webhook Not Receiving Events:** * Verify webhook URL is correctly configured in PagerDuty * Check PagerDuty integration status in Calmo (must be active) * Confirm selected event types match your testing scenarios * Use Calmo's "Test Endpoint" feature for connectivity verification **Signature Validation Failures:** * Ensure signing secret was copied correctly during PagerDuty setup * Verify the secret was pasted without extra whitespace or characters * Re-run the validation wizard if verification fails * Check webhook logs for specific signature mismatch details **Issues Not Created in Expected Context:** * Verify organization ID parameter for team vs personal webhooks * Confirm team membership for organization-scoped webhooks * Check webhook generation logs for context configuration **Missing Issue Updates:** * Ensure comprehensive event type selection in PagerDuty * Verify incident IDs match between PagerDuty events and Calmo issues * Check for webhook rate limiting or delivery failures #### Advanced Debugging Access webhook logs and metrics through Calmo's integration management interface: * **Connectivity Tests**: Real-time endpoint verification * **Event Logs**: Complete webhook delivery history * **Signature Validation Logs**: Security verification audit trail * **Issue Creation Tracking**: End-to-end workflow monitoring For persistent issues or advanced configuration requirements, contact support at [support@getcalmo.com](mailto:support@getcalmo.com). *** The PagerDuty integration provides comprehensive incident management and on-call coordination capabilities, enabling your team to respond to incidents efficiently and optimize operational workflows through AI-powered assistance while maintaining strict operational controls. *** *For additional help with PagerDuty integration, contact our support team at [support@getcalmo.com](mailto:support@getcalmo.com).* # Redshift Source: https://docs.getcalmo.com/essentials/redshift Connect Calmo to Redshift for comprehensive data warehouse analytics and insights through AI assistance # Redshift Integration Connect Calmo to your Amazon Redshift data warehouse to enable comprehensive analytics and insights through AI assistance. This integration provides access to **3 specialized tools** across **3 categories** for complete data warehouse analysis and exploration workflows. ## Overview The Redshift integration transforms how your team handles data warehouse operations by providing: * **Intelligent SQL Querying** - AI-powered query optimization and result analysis * **Advanced Schema Inspection** - Comprehensive table structure analysis and documentation * **Smart Column Discovery** - Efficient data exploration and column-based searches * **Cost-Effective Operations** - Read-only access to prevent accidental data modifications * **Performance Optimization** - Query performance insights and optimization recommendations * **Safe Operations** - All tools are read-only for maximum data security ## Key Capabilities When connected, Calmo gains access to **3 Redshift tools** across **3 categories**: | Category | Tools | Capability | | --------------------- | ------ | ----------------------------------------------------- | | **Querying** | 1 tool | Execute read-only SQL queries against Redshift | | **Schema Inspection** | 1 tool | Get detailed information about specific tables | | **Column Search** | 1 tool | Find tables containing columns with specific patterns | ## Prerequisites * Amazon Redshift cluster with network accessibility * Database credentials with read access permissions * Redshift connection string or connection parameters * Calmo account with team or personal workspace ## Setup Process ### Step 1: Prepare Redshift Access **Gather Connection Information:** 1. Identify your Redshift cluster endpoint 2. Note the database name, port, and region 3. Ensure network security groups allow connections from Calmo 4. Verify SSL/TLS configuration if required **Connection String Format:** ``` postgresql://username:password@host:port/database ``` Example: ``` postgresql://analytics_user:password123@my-cluster.abc123.us-east-1.redshift.amazonaws.com:5439/analytics_db ``` ### Step 2: Create Database User (Recommended) **Create Dedicated User:** ```sql theme={null} -- Create a dedicated user for Calmo integration CREATE USER calmo_user PASSWORD 'secure_password_here'; -- Grant necessary permissions for read-only access GRANT USAGE ON SCHEMA public TO calmo_user; GRANT SELECT ON ALL TABLES IN SCHEMA public TO calmo_user; -- Grant permissions for schema inspection GRANT USAGE ON SCHEMA information_schema TO calmo_user; GRANT SELECT ON ALL TABLES IN SCHEMA information_schema TO calmo_user; -- For specific schemas, replace 'public' with your schema names GRANT USAGE ON SCHEMA your_schema_name TO calmo_user; GRANT SELECT ON ALL TABLES IN SCHEMA your_schema_name TO calmo_user; ``` **Security Best Practices:** * Use a dedicated user account for the integration * Grant only necessary read permissions * Use strong passwords and rotate them regularly * Consider using IAM authentication for enhanced security ### Step 3: Connect to Calmo 1. Navigate to **Integrations** in your Calmo dashboard 2. Click **Redshift** integration 3. Enter your **Connection String** (including credentials) 4. Configure tool permissions: * ✅ **All operations are read-only** by design * ✅ **All tools enabled by default** for comprehensive data access 5. Test the connection using the built-in connection test 6. Complete the integration setup ## Tool Categories & Configuration ### **Querying** (Safe) **Default: Enabled** - Essential for data analysis and exploration * **redshift\_query** - Execute read-only SQL queries against your Redshift data warehouse *Use Cases: Data analysis, reporting, ad-hoc queries, business intelligence, data validation* ### **Schema Inspection** (Safe) **Default: Enabled** - Database structure analysis and documentation * **redshift\_describe\_table** - Get detailed information about a specific table including columns, types, and constraints *Use Cases: Data discovery, schema documentation, data modeling, table analysis* ### **Column Search** (Safe) **Default: Enabled** - Efficient data exploration and discovery * **redshift\_find\_column** - Find tables containing columns with specific name patterns *Use Cases: Data lineage, column discovery, schema exploration, data governance* ## Team vs Personal Configuration ### Team/Organization Setup * Shared Redshift cluster access across team members * Organization-level data governance and access policies * Centralized query execution and analysis workflows * Team-wide data insights and reporting capabilities ### Personal Setup * Individual Redshift cluster connections * Personal data analysis and exploration * Private query development and testing * Individual data discovery and research ## Security & Best Practices ### ⚠️ Safety Recommendations 1. **Read-Only Access** - All tools are read-only by design for maximum security 2. **Dedicated User** - Use a dedicated database user for the integration 3. **Minimal Permissions** - Grant only necessary read permissions to required schemas 4. **Connection Security** - Use SSL/TLS encryption for database connections 5. **Network Security** - Ensure proper security group and firewall configurations ### 🔒 Permission Levels | Risk Level | Operations | Recommendation | | ---------- | --------------------------------------------- | ---------------- | | **Low** | All Redshift operations (read-only by design) | ✅ Safe to enable | ## Configuration Management ### Updating Redshift Connection 1. Navigate to **Integrations** → **Redshift** 2. Click **Edit Configuration** 3. Update connection string if credentials or endpoint change 4. Test connection to verify changes 5. Save configuration updates ### Managing Multiple Clusters * Connect separate Redshift clusters for different environments * Use different database users for production vs development * Configure environment-specific data access policies * Maintain separate analytics workflows per cluster ## Advanced Features ### Query Intelligence * **SQL Optimization** - AI-powered query optimization suggestions * **Performance Analysis** - Query execution time and resource usage analysis * **Result Interpretation** - Intelligent analysis and summarization of query results * **Cost Estimation** - Query cost estimation and optimization recommendations ### Schema Discovery * **Automated Documentation** - Generate documentation from schema analysis * **Data Lineage** - Trace data relationships and dependencies * **Schema Comparison** - Compare schemas across different environments * **Data Quality Assessment** - Analyze data quality and completeness ### Data Exploration * **Smart Recommendations** - Suggest relevant tables and columns based on queries * **Pattern Recognition** - Identify data patterns and anomalies * **Relationship Discovery** - Discover relationships between tables and columns * **Business Context** - Add business context to technical data structures ## Data Analytics Workflows ### Business Intelligence * **Report Generation** - Automated report creation and data extraction * **Dashboard Support** - Data preparation for visualization tools * **KPI Calculation** - Business metrics calculation and analysis * **Trend Analysis** - Historical data analysis and trend identification ### Data Exploration * **Exploratory Analysis** - Interactive data exploration and discovery * **Data Profiling** - Comprehensive data quality and structure analysis * **Schema Navigation** - Efficient navigation of complex database schemas * **Column Analytics** - Column-level statistics and data distribution analysis ### Performance Optimization * **Query Performance** - Analyze and optimize query execution performance * **Resource Usage** - Monitor resource consumption and optimization opportunities * **Indexing Insights** - Identify opportunities for performance improvements * **Cost Management** - Analyze and optimize data warehouse costs ## Troubleshooting ### Common Issues **Connection Failed** * Verify connection string format and credentials * Check network connectivity and security group settings * Ensure Redshift cluster is running and accessible * Verify SSL/TLS configuration if required **Authentication Failed** * Confirm database username and password are correct * Check user permissions and access rights * Verify user exists and is not locked or expired * Review password policy and character restrictions **Permission Denied** * Confirm user has SELECT permissions on target tables * Check schema access permissions * Verify information\_schema access for metadata queries * Review role memberships and inherited permissions **Query Timeout** * Check query complexity and data volume * Verify cluster performance and resource availability * Consider optimizing query for better performance * Review Redshift cluster configuration and scaling ### Getting Help 1. **Test Connection** - Use the built-in connection test feature 2. **Update Credentials** - Update connection string if credentials change 3. **Check Documentation** - Refer to Amazon Redshift documentation for setup issues 4. **Contact Support** - Reach out to [support@getcalmo.com](mailto:support@getcalmo.com) for integration assistance ## Data Types & Analysis ### Query Results * **Structured Data** - Query results with full data type preservation * **Performance Metrics** - Query execution time, rows processed, and resource usage * **Result Analysis** - Automated analysis and insights from query results * **Data Export** - Query results in various formats for further analysis ### Schema Information * **Table Metadata** - Table definitions, column types, constraints, and indexes * **Relationship Data** - Foreign key relationships and table dependencies * **Data Statistics** - Row counts, data distributions, and table sizes * **Schema Evolution** - Track schema changes and version history ### Column Discovery * **Column Metadata** - Column names, types, constraints, and descriptions * **Usage Patterns** - Column usage frequency and access patterns * **Data Quality** - Column-level data quality and completeness metrics * **Business Context** - Business meaning and context for technical columns ### Performance Data * **Execution Statistics** - Query performance metrics and resource utilization * **Optimization Opportunities** - Performance improvement recommendations * **Cost Analysis** - Query cost analysis and optimization suggestions * **Resource Usage** - Cluster resource utilization and capacity planning The Redshift integration provides comprehensive data warehouse analytics capabilities, enabling your team to query data, explore schemas, and discover insights efficiently through AI-powered assistance while maintaining strict read-only access for maximum security. *** *For additional help with Redshift integration, contact our support team at [support@getcalmo.com](mailto:support@getcalmo.com).* # S3 Source: https://docs.getcalmo.com/essentials/s3 Connect Calmo to S3 for comprehensive object storage management and data operations through AI assistance # S3 Integration Connect Calmo to your S3-compatible object storage to enable object storage management and data operations through AI assistance. This integration provides access to **3 specialized tools** across **2 categories** for complete object storage workflows. ## Overview The S3 integration transforms how your team handles object storage operations by providing: * **Intelligent Bucket Management** - AI-powered bucket discovery and analysis * **Advanced Object Operations** - Comprehensive object listing and retrieval with metadata analysis * **Multi-Provider Support** - Compatible with AWS S3, MinIO, and other S3-compatible services * **Cost-Effective Operations** - Efficient object access with intelligent caching and optimization * **Flexible Configuration** - Support for custom endpoints, regions, and bucket restrictions * **Safe Operations** - All tools are read-only for maximum data security ## Key Capabilities When connected, Calmo gains access to **3 S3 tools** across **2 categories**: | Category | Tools | Capability | | ----------- | ------- | -------------------------------------- | | **Buckets** | 1 tool | List all S3 buckets with metadata | | **Objects** | 2 tools | List and retrieve objects from buckets | ## Prerequisites * S3-compatible storage service (AWS S3, MinIO, etc.) * Access credentials with appropriate permissions * Network access to the S3 endpoint * Calmo account with team or personal workspace ## Setup Process ### Step 1: Prepare S3 Access **Gather Required Information:** 1. **Endpoint URL**: Your S3 service endpoint * AWS S3: `https://s3.amazonaws.com` or regional endpoint * MinIO: `https://your-minio-instance.com` * Other S3-compatible: Custom endpoint URL 2. **Access Key**: S3 access key ID 3. **Secret Key**: S3 secret access key 4. **Region** (optional): Target region for operations 5. **Buckets** (optional): Comma-separated list of specific buckets to access ### Step 2: Configure Access Permissions **AWS S3 - IAM Policy Example:** ```json theme={null} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:ListAllMyBuckets", "s3:ListBucket", "s3:GetObject", "s3:GetObjectMetadata" ], "Resource": [ "arn:aws:s3:::*", "arn:aws:s3:::your-bucket-name/*" ] } ] } ``` **MinIO - Policy Example:** ```json theme={null} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:ListAllMyBuckets", "s3:ListBucket", "s3:GetObject" ], "Resource": [ "arn:aws:s3:::*" ] } ] } ``` **Required Permissions:** * `s3:ListAllMyBuckets` - List all accessible buckets * `s3:ListBucket` - List objects within buckets * `s3:GetObject` - Retrieve object content and metadata ### Step 3: Connect to Calmo 1. Navigate to **Integrations** in your Calmo dashboard 2. Click **S3** integration 3. Enter your connection details: * **S3 Endpoint**: Your S3 service endpoint URL * **Access Key**: Your S3 access key ID * **Secret Key**: Your S3 secret access key * **Region** (optional): Target region for operations * **Buckets** (optional): Specific buckets to restrict access to 4. Configure tool permissions: * ✅ **All operations are read-only** by design * ✅ **All tools enabled by default** for comprehensive storage access 5. Test the connection using the built-in connection test 6. Complete the integration setup ## Tool Categories & Configuration ### **Buckets** (Safe) **Default: Enabled** - Essential for bucket discovery and management * **list-s3-buckets** - List all S3 buckets with metadata including creation date and location *Use Cases: Bucket inventory, storage organization, capacity planning, access validation* ### **Objects** (Safe) **Default: Enabled** - Object discovery and retrieval operations * **list-s3-objects** - List objects in a bucket with metadata including size, modified date, and storage class * **get-s3-object** - Retrieve an object from a bucket including content and metadata *Use Cases: Data discovery, file management, content analysis, backup verification* ## Team vs Personal Configuration ### Team/Organization Setup * Shared S3 storage access across team members * Organization-level data governance and access policies * Centralized object storage management and monitoring * Team-wide data access and analysis capabilities ### Personal Setup * Individual S3 storage connections * Personal data analysis and file management * Private object storage exploration * Individual backup and data retrieval needs ## Security & Best Practices ### ⚠️ Safety Recommendations 1. **Read-Only Access** - All tools are read-only by design for maximum security 2. **Minimal Permissions** - Grant only necessary read permissions to required buckets 3. **Access Key Security** - Use dedicated access keys with limited scope 4. **Endpoint Security** - Ensure S3 endpoints use HTTPS encryption 5. **Bucket Restrictions** - Limit access to specific buckets when possible ### 🔒 Permission Levels | Risk Level | Operations | Recommendation | | ---------- | --------------------------------------- | ---------------- | | **Low** | All S3 operations (read-only by design) | ✅ Safe to enable | ## Configuration Management ### Updating S3 Connection 1. Navigate to **Integrations** → **S3** 2. Click **Edit Configuration** 3. Update endpoint, credentials, or bucket restrictions as needed 4. Test connection to verify changes 5. Save configuration updates ### Managing Multiple Storage Systems * Connect separate S3 instances for different environments * Use different access keys for production vs development * Configure environment-specific bucket access policies * Maintain separate storage workflows per system ## Advanced Features ### Multi-Provider Support * **AWS S3** - Full compatibility with Amazon S3 service * **MinIO** - Complete support for MinIO object storage * **S3-Compatible Services** - Support for any S3-compatible storage service * **Flexible Endpoints** - Custom endpoint configuration for various providers ### Object Intelligence * **Metadata Analysis** - Comprehensive object metadata analysis and insights * **Content Classification** - AI-powered content type detection and classification * **Storage Optimization** - Storage class recommendations and cost optimization * **Access Pattern Analysis** - Object access pattern analysis and optimization ### Bucket Management * **Inventory Management** - Comprehensive bucket and object inventory * **Capacity Analysis** - Storage usage analysis and capacity planning * **Organization Insights** - Bucket organization and structure optimization * **Cost Analysis** - Storage cost analysis and optimization recommendations ## Object Storage Workflows ### Data Discovery * **Content Exploration** - Intelligent exploration of object storage contents * **File Organization** - Analysis of file organization and structure patterns * **Duplicate Detection** - Identification of duplicate objects and optimization opportunities * **Data Classification** - Automated classification of stored data by type and content ### Backup and Recovery * **Backup Verification** - Validate backup integrity and completeness * **Recovery Planning** - Analyze backup structure for recovery planning * **Version Management** - Track object versions and retention policies * **Disaster Recovery** - Support disaster recovery planning and validation ### Analytics and Reporting * **Usage Analytics** - Comprehensive storage usage analysis and reporting * **Performance Monitoring** - Object access performance and optimization * **Cost Management** - Storage cost tracking and optimization recommendations * **Compliance Reporting** - Generate compliance reports for data governance ## Troubleshooting ### Common Issues **Connection Failed** * Verify endpoint URL is correct and accessible * Check access key and secret key credentials * Ensure network connectivity to S3 endpoint * Verify SSL/TLS configuration if using HTTPS **Authentication Failed** * Confirm access key and secret key are correct * Check IAM permissions for S3 operations * Verify credentials haven't expired or been revoked * Review access key status in IAM console (for AWS) **Bucket Access Denied** * Confirm bucket exists and is accessible * Check bucket permissions and access policies * Verify region configuration matches bucket location * Review bucket-level access restrictions **Object Not Found** * Verify object key and path are correct * Check object exists in the specified bucket * Confirm object hasn't been deleted or moved * Review object-level access permissions ### Getting Help 1. **Test Connection** - Use the built-in connection test feature 2. **Update Credentials** - Update access credentials if authentication issues persist 3. **Check Documentation** - Refer to your S3 provider's documentation for setup issues 4. **Contact Support** - Reach out to [support@getcalmo.com](mailto:support@getcalmo.com) for integration assistance ## Data Types & Analysis ### Bucket Data * **Bucket Metadata** - Bucket information including creation date, location, and access policies * **Storage Statistics** - Bucket storage usage, object counts, and capacity metrics * **Access Patterns** - Bucket access frequency and usage patterns * **Configuration Data** - Bucket settings, versioning, and lifecycle policies ### Object Data * **Object Metadata** - Object information including size, modification date, and storage class * **Content Analysis** - Object content type detection and classification * **Access History** - Object access patterns and download statistics * **Version Information** - Object version history and retention data ### Storage Analytics * **Usage Metrics** - Comprehensive storage usage analysis and trends * **Cost Analytics** - Storage cost breakdown and optimization opportunities * **Performance Data** - Object access performance and transfer metrics * **Optimization Insights** - Storage optimization recommendations and best practices ### Security Information * **Access Permissions** - Object and bucket access permissions and policies * **Encryption Status** - Object encryption status and key management * **Access Logs** - Access logging and audit trail information * **Compliance Data** - Data retention and compliance status information The S3 integration provides comprehensive object storage management capabilities, enabling your team to explore buckets, analyze objects, and optimize storage efficiently through AI-powered assistance while maintaining strict read-only access for maximum security. *** *For additional help with S3 integration, contact our support team at [support@getcalmo.com](mailto:support@getcalmo.com).* # Sentry Source: https://docs.getcalmo.com/essentials/sentry Connect Calmo to Sentry for comprehensive error monitoring, issue tracking, and performance analysis through AI assistance # Sentry Integration Connect Calmo to your Sentry account to enable comprehensive error monitoring, issue tracking, and performance analysis through AI assistance. This integration provides access to **11 specialized tools** across **4 categories** for complete error management workflows. ## Overview & Value Proposition The Sentry integration transforms how your team handles error monitoring and issue resolution by providing: * **Intelligent Error Analysis** - AI-powered investigation of errors, stack traces, and performance issues * **Automated Issue Tracking** - Comprehensive issue management with context-aware categorization * **Session Replay Integration** - Visual debugging with user session recordings * **Performance Monitoring** - Detailed performance insights and bottleneck identification * **Proactive Error Management** - Automated error detection and intelligent resolution suggestions * **Safe Operations** - Read-only tools enabled by default with controlled project creation access ## Key Capabilities When connected, Calmo gains access to **11 Sentry tools** across **4 categories**: | Category | Tools | Capability | | ---------------------- | ------- | ------------------------------------------------ | | **Project Management** | 2 tools | List projects and create new ones | | **Issue Tracking** | 4 tools | Comprehensive issue investigation and management | | **Error Monitoring** | 3 tools | Event analysis and error searching | | **Session Replay** | 1 tool | Visual debugging with user session recordings | | **Configuration** | 1 tool | Advanced Sentry setup and configuration | ## Prerequisites * Sentry account with appropriate access permissions * Admin or member access to target organizations and projects * Calmo account with team or personal workspace ## Setup Process ### Step 1: Generate Sentry Auth Token **Create Organization Token:** 1. Log in to your [Sentry account](https://sentry.io) 2. Navigate to **Settings** → **Auth Tokens** (under Organization) 3. Click **Create New Token** 4. Configure token settings: * **Name**: "Calmo Integration" * **Scopes**: Select based on desired capabilities **Required Scopes by Tool Category:** | Tool Category | Required Scopes | | ---------------------- | ---------------------------------------------- | | **Project Management** | `project:read`, `project:write` (for creation) | | **Issue Tracking** | `event:read`, `event:write` (for updates) | | **Error Monitoring** | `event:read`, `org:read` | | **Session Replay** | `org:read`, `project:read` | | **Configuration** | `org:read`, `project:write` | **Recommended Minimal Scopes:** * `project:read` - Essential for project access * `event:read` - Core for error and issue investigation * `org:read` - Required for organization-level operations * `member:read` - Helpful for team context * `team:read` - Useful for team assignment features 5. Click **Create Token** 6. Copy the generated token immediately ### Step 2: Configure Organization and Project **Identify Target Configuration:** * **Organization**: Your Sentry organization slug * **Project**: Primary project slug for initial connection * **Additional Projects**: Can be configured after initial setup ### Step 3: Connect to Calmo 1. Navigate to **Integrations** in your Calmo dashboard 2. Click **Sentry** integration 3. Enter your **Auth Token** 4. Specify **Organization** name/slug 5. Enter primary **Project** name/slug 6. Configure tool permissions: * ✅ **Read-only operations** enabled by default * ❌ **Write operations** disabled for safety 7. Complete the connection ## Tool Categories & Configuration ### 🏗️ Project Management (Mixed Safety) **Default: Read-only enabled** - Project visibility and creation **Read Operations (✅ Enabled by default):** * **list\_projects** - List all projects with metadata and configuration details **Write Operations (⚠️ Disabled by default):** * **create\_project** - Create new Sentry projects with custom configurations *Use Cases: Project discovery, team organization, development environment setup, project lifecycle management* ### 🐛 Issue Tracking (Mixed Safety) **Default: Read operations enabled** - Comprehensive issue investigation **Read Operations (✅ Enabled by default):** * **list\_project\_issues** - List issues with filtering, sorting, and pagination * **get\_sentry\_issue** - Get detailed issue information including stack traces * **list\_issue\_events** - List all events associated with specific issues * **resolve\_short\_id** - Convert Sentry short IDs to full issue references *Use Cases: Error investigation, issue triage, stack trace analysis, error correlation, debugging workflows* ### 🔍 Error Monitoring (Safe) **Default: Enabled** - Event analysis and error investigation * **get\_sentry\_event** - Retrieve detailed event information and context * **list\_error\_events\_in\_project** - List error events with advanced filtering * **search\_errors\_in\_file** - Search for errors in specific files or code paths *Use Cases: Error pattern analysis, performance debugging, code-specific error tracking, trend identification* ### 🎬 Session Replay (Safe) **Default: Enabled** - Visual debugging and user experience analysis * **list\_organization\_replays** - List available session replay recordings *Use Cases: Visual debugging, user experience analysis, error reproduction, user journey investigation* ### ⚙️ Setup & Configuration (Write Operations) **Default: Disabled** - Advanced Sentry configuration * **setup\_sentry** - Configure Sentry projects and advanced settings *Use Cases: Initial project setup, configuration management, integration customization* ## Team vs Personal Configuration ### Team/Organization Setup * Shared access to organization projects and issues * Team-level error assignment and escalation workflows * Centralized error monitoring policies and alerting * Organization administrators control project creation permissions ### Personal Setup * Individual developer error tracking and investigation * Personal project access and issue assignment * Private error analysis and debugging sessions * Full control over enabled tool capabilities ## Security & Best Practices ### ⚠️ Safety Recommendations 1. **Read-First Approach** - Begin with read-only operations, add write access as needed 2. **Scope Limitation** - Use minimal required scopes for auth tokens 3. **Token Rotation** - Regularly rotate auth tokens according to security policies 4. **Project Isolation** - Connect only necessary projects initially 5. **Team Permissions** - Leverage Sentry's built-in team and permission system ### 🔒 Permission Levels | Risk Level | Operations | Recommendation | | ---------- | ----------------------------------------------- | ---------------------- | | **Low** | List projects, read issues/events, view replays | ✅ Safe to enable | | **Medium** | Search errors, resolve short IDs | ✅ Generally safe | | **High** | Create projects, setup configuration | ⚠️ Enable with caution | ## Configuration Management ### Updating Sentry Connection 1. Navigate to **Integrations** → **Sentry** 2. Click **Edit Configuration** 3. Update auth token, organization, or project settings 4. Modify tool permissions based on team requirements 5. Test connection with read-only operations 6. Save configuration changes ### Managing Multiple Projects * Configure access to multiple Sentry projects * Set up project-specific tool permissions * Maintain separate error tracking workflows per project * Cross-project error correlation and analysis ## Advanced Features ### Multi-Project Support * **Project Discovery** - Automatically discover available projects * **Cross-Project Analysis** - Correlate errors across multiple projects * **Project-Specific Configuration** - Different tool permissions per project * **Unified Error Management** - Centralized view of errors across projects ### Issue Intelligence * **Error Pattern Recognition** - AI-powered identification of error patterns * **Stack Trace Analysis** - Automated analysis of complex stack traces * **Issue Correlation** - Link related issues across different events * **Performance Impact Assessment** - Understand error impact on application performance ### Session Replay Integration * **Visual Error Reproduction** - See exactly what users experienced * **User Journey Analysis** - Understand error context within user workflows * **Performance Debugging** - Visual identification of performance bottlenecks * **Error Context Enhancement** - Rich context for error investigation ## Error Analysis Workflows ### Automated Error Investigation * **Error Categorization** - Automatic classification of error types * **Root Cause Analysis** - AI-powered investigation of error sources * **Fix Suggestions** - Intelligent recommendations for error resolution * **Impact Assessment** - Understanding of error severity and user impact ### Performance Monitoring * **Transaction Analysis** - Detailed performance trace investigation * **Performance Regression Detection** - Identification of performance degradations * **Database Query Analysis** - SQL query performance and optimization insights * **Frontend Performance** - Browser-specific performance issue identification ## Troubleshooting ### Common Issues **Authentication Failed** * Verify auth token is correct and hasn't expired * Check token scopes match enabled tool requirements * Ensure organization and project names are accurate **Project Not Found** * Verify project slug is correct (case-sensitive) * Check project exists and is accessible with current token * Ensure proper team membership for private projects **Permission Denied** * Review auth token scopes in Sentry organization settings * Check team permissions for target projects * Verify organization-level access rights **Rate Limiting** * Sentry enforces API rate limits (varies by plan) * Monitor API usage in Sentry organization settings * Consider upgrading Sentry plan for higher limits ### Getting Help 1. **Test Connection** - Use connection test feature in integration settings 2. **Update Token** - Regenerate auth token with appropriate scopes 3. **Contact Support** - Reach out to [support@getcalmo.com](mailto:support@getcalmo.com) for assistance ## Data Types & Analysis ### Error Data * **Exception Details** - Complete stack traces and error messages * **User Context** - User information associated with errors * **Request Context** - HTTP request details and parameters * **Environment Data** - Runtime environment and configuration information ### Performance Data * **Transaction Traces** - Detailed performance traces across services * **Database Queries** - SQL query performance and execution details * **External Service Calls** - API call performance and failure tracking * **Frontend Metrics** - Browser performance and user experience metrics ### User Experience Data * **Session Replays** - Visual recordings of user sessions * **User Interactions** - Click patterns and navigation behavior * **Error User Impact** - Understanding which users are affected by errors * **Conversion Funnel Analysis** - Impact of errors on business metrics The Sentry integration provides comprehensive error monitoring and debugging capabilities, enabling your team to identify, investigate, and resolve issues efficiently through AI-powered assistance while maintaining strict operational controls. *** *For additional help with Sentry integration, contact our support team at [support@getcalmo.com](mailto:support@getcalmo.com).* # SigNoz Source: https://docs.getcalmo.com/essentials/signoz Connect Calmo to SigNoz for comprehensive observability, monitoring, and performance analysis through AI assistance # SigNoz Integration Connect Calmo to your SigNoz instance to enable observability, monitoring, and performance analysis through AI assistance. This integration provides access to **9 specialized tools** across **4 categories** for complete observability and APM workflows. ## Overview The SigNoz integration transforms how your team handles observability and monitoring by providing: * **APM** - Application Performance Monitoring with distributed tracing and metrics analysis * **Advanced Query Capabilities** - Both ClickHouse SQL and SigNoz builder queries for custom analysis * **Dashboard Querying** - Complete dashboard lifecycle queries with data visualization * **Service Discovery** - Automatic instrumented service detection and monitoring * **Intelligent Debugging** - AI-powered trace and log analysis for faster issue resolution * **Safe Operations** - Read-only tools enabled by default with controlled write access ## Key Capabilities When connected, Calmo gains access to **9 SigNoz tools** across **4 categories**: | Category | Tools | Capability | | ------------------------ | ------- | --------------------------------------------------------- | | **Dashboard Management** | 3 tools | List, view, and analyze dashboard data | | **APM & Metrics** | 3 tools | Service monitoring, metrics analysis, and builder queries | | **Data Analysis** | 2 tools | Advanced ClickHouse queries and trace/log investigation | | **Connection & Setup** | 1 tool | Connection verification and configuration testing | ## Prerequisites * SigNoz instance with API access enabled * Admin access to generate API keys * Calmo account with team or personal workspace ## Setup Process ### Step 1: Access Your SigNoz Instance **Locate Your SigNoz URL:** 1. Navigate to your SigNoz dashboard 2. Note your instance URL (e.g., `https://your-signoz-instance.com`) 3. Ensure API access is enabled on your instance ### Step 2: Generate SigNoz API Key **Create API Key:** 1. Log in to your SigNoz instance 2. Navigate to **Settings** → **API** (or equivalent in your SigNoz version) 3. Click **Create New API Key** 4. Configure key settings: * **Name**: "Calmo Integration" * **Permissions**: Ensure read access to dashboards, metrics, and logs 5. Copy the generated API key immediately **Required Permissions:** * Dashboard read access * Metrics query access * Trace and log read access * Service discovery access ### Step 3: Connect to Calmo 1. Navigate to **Integrations** in your Calmo dashboard 2. Click **SigNoz** integration 3. Enter your **SigNoz URL** (including protocol: https\://) 4. Enter your **API Key** 5. Configure tool permissions: * ✅ **Read-only operations** enabled by default * ❌ **Write operations** disabled for safety 6. Test the connection using the built-in connection test 7. Complete the integration setup ## Tool Categories & Configuration ### 📊 Dashboard Management (Safe) **Default: Enabled** - Essential for observability visualization * **signoz\_fetch\_dashboards** - List all available dashboards with metadata * **signoz\_fetch\_dashboard\_details** - Retrieve detailed dashboard configuration by ID * **signoz\_fetch\_dashboard\_data** - Fetch all panel data for dashboards with time range filtering *Use Cases: Dashboard discovery, performance monitoring, data visualization, trend analysis* ### 🔍 APM & Metrics (Safe) **Default: Enabled** - Core application performance monitoring * **signoz\_fetch\_apm\_metrics** - Retrieve standard APM metrics (request rate, error rate, latency, apdex) * **signoz\_fetch\_services** - List all instrumented services with optional time filtering * **signoz\_execute\_builder\_query** - Execute SigNoz builder queries for custom metrics and aggregations *Use Cases: Service health monitoring, performance analysis, custom metric analysis, SLI/SLO tracking* ### 🗄️ Data Analysis (Safe) **Default: Enabled** - Advanced querying and investigation capabilities * **signoz\_execute\_clickhouse\_query** - Execute custom ClickHouse SQL queries with time range support * **signoz\_fetch\_traces\_or\_logs** - Fetch traces or logs using ClickHouse SQL with advanced filtering *Use Cases: Advanced analytics, custom reporting, deep trace analysis, log investigation* ### 🔧 Connection & Setup (Safe) **Default: Enabled** - Configuration and connectivity verification * **signoz\_test\_connection** - Verify connectivity and configuration health *Use Cases: Integration testing, troubleshooting, configuration validation* ## Team vs Personal Configuration ### Team/Organization Setup * Shared SigNoz instance access across team members * Organization-level observability policies and dashboards * Centralized APM monitoring and alerting workflows * Team administrators control access to production metrics ### Personal Setup * Individual SigNoz instance connections * Personal dashboard preferences and custom queries * Private metric analysis and debugging sessions * Full control over enabled tool capabilities ## Security & Best Practices ### ⚠️ Safety Recommendations 1. **Read-Only First** - Begin with read-only access, monitor usage patterns 2. **API Key Security** - Use dedicated API keys with minimal required permissions 3. **URL Validation** - Ensure SigNoz URL uses HTTPS for secure communication 4. **Access Control** - Leverage SigNoz's built-in access control and user management 5. **Time Range Limits** - Use appropriate time ranges to avoid overwhelming queries ### 🔒 Permission Levels | Risk Level | Operations | Recommendation | | ---------- | ------------------------------------------------- | ---------------------- | | **Low** | View dashboards, query metrics, read traces/logs | ✅ Safe to enable | | **Medium** | Custom ClickHouse queries, service discovery | ✅ Generally safe | | **High** | Future write operations (not currently available) | ⚠️ Enable with caution | ## Configuration Management ### Updating SigNoz Connection 1. Navigate to **Integrations** → **SigNoz** 2. Click **Edit Configuration** 3. Update SigNoz URL or API key as needed 4. Test connection to verify changes 5. Save configuration updates ### Managing Multiple Environments * Connect separate SigNoz instances for different environments * Use different API keys for production vs staging * Configure environment-specific observability policies * Maintain separate monitoring workflows per environment ## Advanced Features ### Time Range Support All SigNoz tools support comprehensive time range filtering: * **Flexible Time Windows** - Minutes to months of historical data * **Real-Time Queries** - Near real-time metric and trace analysis * **Custom Time Ranges** - Precise time window selection for investigation * **Performance Optimization** - Intelligent query optimization based on time ranges ### Custom Query Capabilities **ClickHouse SQL Queries:** * Direct access to SigNoz's underlying ClickHouse database * Complex analytical queries with joins and aggregations * Custom metric calculations and data transformations * Advanced filtering and grouping operations **SigNoz Builder Queries:** * Native SigNoz query interface for metrics and aggregations * Pre-built aggregation functions (sum, avg, max, min, percentiles) * Group-by operations for dimensional analysis * Filter combinations for precise data selection ### Dashboard Integration * **Existing Dashboard Access** - Work with current SigNoz dashboards * **Panel-Level Data** - Access individual panel configurations and data * **Time-Synchronized Analysis** - Correlate data across multiple dashboard panels * **Export Capabilities** - Extract dashboard data for external analysis ## Observability Workflows ### Application Performance Monitoring * **Service Health Overview** - Monitor all instrumented services * **Request Rate Analysis** - Track throughput patterns and trends * **Error Rate Monitoring** - Identify and investigate error patterns * **Latency Analysis** - Performance bottleneck identification * **Apdex Scoring** - User satisfaction metric tracking ### Distributed Tracing * **Trace Investigation** - Deep dive into request flows across services * **Performance Bottlenecks** - Identify slow operations and dependencies * **Error Correlation** - Link errors to specific trace spans * **Service Dependencies** - Understand service interaction patterns ### Log Analysis * **Structured Log Queries** - Advanced log filtering and searching * **Error Log Investigation** - Correlate errors with traces and metrics * **Custom Log Analytics** - Business-specific log analysis patterns * **Real-Time Log Monitoring** - Live log stream analysis ## Troubleshooting ### Common Issues **Connection Failed** * Verify SigNoz URL is correct and accessible * Check API key is valid and has required permissions * Ensure SigNoz instance is running and responsive * Verify network connectivity to SigNoz instance **Authentication Failed** * Regenerate API key in SigNoz settings * Check API key hasn't expired or been revoked * Verify API access is enabled on SigNoz instance * Ensure proper permissions are assigned to the key **Query Timeouts** * Reduce time range for large data queries * Optimize ClickHouse queries for better performance * Check SigNoz instance resource availability * Consider upgrading SigNoz instance if consistently slow **Missing Data** * Verify services are properly instrumented * Check SigNoz data retention policies * Ensure proper time range selection * Verify data collection is active for target services ### Getting Help 1. **Test Connection** - Use the built-in connection test feature 2. **Update Credentials** - Regenerate API key if authentication issues persist 3. **Check Documentation** - Refer to SigNoz official documentation for setup issues 4. **Contact Support** - Reach out to [support@getcalmo.com](mailto:support@getcalmo.com) for integration assistance ## Data Types & Analysis ### Metrics Data * **Application Metrics** - Request rates, error rates, response times, throughput * **Infrastructure Metrics** - CPU, memory, disk, network utilization from instrumented services * **Custom Metrics** - Business-specific KPIs and application-defined metrics * **Aggregated Metrics** - Pre-computed aggregations with various time windows ### Trace Data * **Distributed Traces** - Complete request journeys across microservices * **Span Details** - Individual operation performance and metadata * **Service Maps** - Visual representation of service dependencies * **Error Traces** - Failed request traces with error context ### Log Data * **Application Logs** - Structured and unstructured application logging * **Infrastructure Logs** - System-level logs from instrumented hosts * **Custom Log Sources** - Integration with various logging frameworks * **Correlated Logs** - Logs linked to specific traces and spans ### Dashboard Data * **Panel Configurations** - Chart types, queries, and visualization settings * **Time Series Data** - Historical metric data for trend analysis * **Alert Configurations** - Alert rules and notification settings * **Dashboard Metadata** - Organization, tags, and sharing permissions The SigNoz integration provides comprehensive observability capabilities built on open-source technology, enabling your team to monitor, analyze, and optimize application performance efficiently through AI-powered assistance while maintaining complete control over your observability stack. *** *For additional help with SigNoz integration, contact our support team at [support@getcalmo.com](mailto:support@getcalmo.com).* # Slack Source: https://docs.getcalmo.com/essentials/slack Connect Calmo to your Slack workspace for comprehensive team communication and collaboration through AI assistance # Slack Integration Integrate Calmo with your Slack workspace to transform how your team handles production incidents, alerts, and collaborative troubleshooting. This integration provides access to **8 specialized tools** across **4 categories** for complete team communication workflows. ## Overview & Value Proposition The Slack integration transforms how your team handles incidents and collaboration by providing: * **Engineer-Level Debugging** - AI brings senior engineer expertise directly into your Slack channels * **Real-Time Incident Response** - Automatic alert analysis and comprehensive RCA in under 60 seconds * **Intelligent Communication** - Context-aware messaging, channel management, and user interaction * **Seamless Workflow Integration** - Native Slack tools for channel discovery, message history, and thread management * **Reduced Alert Fatigue** - Automated routine investigations with human escalation when needed * **Knowledge Preservation** - Historical context maintenance across incidents for pattern recognition ## Key Capabilities When connected, Calmo gains access to **8 Slack tools** across **4 categories**: | Category | Tools | Capability | | ---------------------- | ------- | ----------------------------------------------- | | **Channel Management** | 1 tool | Discover and manage workspace channels | | **Messaging** | 3 tools | Send messages, reply to threads, add reactions | | **Data Retrieval** | 2 tools | Access channel history and thread conversations | | **User Management** | 2 tools | Identify users and access profile information | ## Prerequisites * Slack workspace with admin permissions for app installation * Appropriate workspace permissions for target channels * Calmo account with team or personal workspace ## Setup Process ### Step 1: OAuth Connection (Recommended) **Quick and secure workspace integration** 1. Navigate to **Integrations** in your Calmo dashboard 2. Click **Slack** integration 3. Choose **Connect with Slack** 4. Review and customize tool permissions: * ✅ **Read-only operations** enabled by default * ❌ **Write operations** disabled for safety 5. Click **Add to Slack** 6. Authorize Calmo in Slack OAuth flow 7. Select channels to grant access (optional) ### Step 2: Channel Configuration **After connection, configure channel access:** 1. **Invite @Calmo** to relevant channels where you want AI assistance 2. **Set channel preferences** for automated responses vs manual triggers 3. **Configure notification settings** for different alert types 4. **Test integration** with a simple mention: `@Calmo help` ## Tool Categories & Configuration ### 📋 Channel Management (Safe) **Default: Enabled** - Essential for workspace navigation * **slack\_list\_channels** - Discover available channels and their metadata *Use Cases: Channel discovery, workspace organization, access management, bot deployment planning* ### 💬 Messaging (Write Operations) **Default: Disabled** - Direct communication capabilities * **slack\_post\_message** - Send messages to channels (⚠️ Write operation) * **slack\_reply\_to\_thread** - Reply to existing message threads (⚠️ Write operation) * **slack\_add\_reaction** - Add emoji reactions to messages (⚠️ Write operation) *Use Cases: Automated incident updates, RCA delivery, alert acknowledgments, status communication* ### 📚 Data Retrieval (Safe) **Default: Enabled** - Historical context and conversation access * **slack\_get\_channel\_history** - Retrieve channel message history with filtering * **slack\_get\_thread\_replies** - Access complete thread conversations *Use Cases: Incident timeline reconstruction, context gathering, troubleshooting history, pattern analysis* ### 👥 User Management (Safe) **Default: Enabled** - Team member identification and interaction * **slack\_get\_users** - List workspace members and their information * **slack\_get\_user\_profile** - Access detailed user profiles and contact information *Use Cases: Team identification, escalation routing, expertise location, contact management* ## Integration Workflows ### Automated Incident Response **Real-Time Alert Analysis:** 1. **Alert Detection** - Calmo monitors configured channels for alerts 2. **Immediate Analysis** - Comprehensive investigation begins automatically 3. **RCA Delivery** - Detailed root cause analysis delivered in under 60 seconds 4. **Thread Management** - Organized discussion threads for incident resolution 5. **Status Updates** - Automated status communication to stakeholders ### Manual Investigation Support **On-Demand Assistance:** 1. **@Calmo Mention** - Trigger AI analysis with direct mentions 2. **Context Gathering** - Automatic channel history and thread analysis 3. **Expert Investigation** - Senior engineer-level debugging approach 4. **Collaborative Resolution** - Interactive problem-solving with team members ### Knowledge Management **Continuous Learning:** * **Pattern Recognition** - Identify recurring issues across incidents * **Historical Analysis** - Learn from past incident responses * **Team Training** - Educational insights for junior team members * **Documentation** - Automatic incident documentation and knowledge base updates ## Team vs Personal Configuration ### Team/Organization Setup * Organization-wide Slack workspace integration * Shared channel access and monitoring configurations * Team-level escalation policies and notification settings * Administrators control messaging and response permissions ### Personal Setup * Individual workspace connections (for multiple workspaces) * Personal channel preferences and notification settings * Private direct message capabilities with Calmo * Individual tool access and permission controls ## Security & Best Practices ### ⚠️ Safety Recommendations 1. **Read-First Approach** - Begin with read-only tools, add messaging capabilities gradually 2. **Channel Scope** - Invite Calmo only to relevant channels initially 3. **Permission Auditing** - Regularly review channel access and tool permissions 4. **Response Policies** - Establish clear guidelines for automated vs manual responses 5. **Escalation Procedures** - Define when to escalate from AI to human intervention ### 🔒 Permission Levels | Risk Level | Operations | Recommendation | | ---------- | ------------------------------------------ | ----------------------------- | | **Low** | List channels, read history, get user info | ✅ Safe to enable | | **Medium** | Add reactions, reply to threads | ⚠️ Enable with review | | **High** | Post messages to channels | ⚠️ Enable only when necessary | ## Advanced Features ### Intelligent Channel Monitoring * **Multi-Channel Support** - Monitor multiple channels simultaneously * **Context Switching** - Maintain separate conversation contexts per channel * **Alert Correlation** - Cross-reference alerts across different channels * **Priority Detection** - Automatic identification of high-priority incidents ### Real-Time Collaboration * **Thread Organization** - Structured incident response threads * **Expert Summoning** - Intelligent escalation to relevant team members * **Status Broadcasting** - Automated status updates to stakeholder channels * **Resolution Tracking** - Follow incident resolution to closure ### Workspace Integration * **Bot User Management** - Comprehensive bot user identity and permissions * **Custom Emoji Support** - Leverage workspace-specific emoji for reactions * **Channel Archival** - Access to archived channel history when needed * **Cross-Workspace Support** - Multiple workspace connections for large organizations ## Configuration Management ### Updating Slack Integration 1. Navigate to **Integrations** → **Slack** 2. Click **Edit Configuration** 3. Modify tool permissions and channel access 4. Update notification preferences and response settings 5. Test changes with low-risk operations 6. Save configuration changes ### Managing Channel Access * **Add Channels** - Invite @Calmo to additional channels as needed * **Remove Access** - Remove Calmo from channels when no longer needed * **Permission Review** - Regular audits of channel access and capabilities * **Workspace Policies** - Align with organization Slack governance policies ## Troubleshooting ### Common Issues **Bot Not Responding** * Verify @Calmo is invited to the channel * Check that messaging tools are enabled in integration settings * Ensure proper workspace permissions for the bot user **Missing Channel History** * Confirm Calmo was invited before the messages you're trying to access * Check that data retrieval tools are enabled * Verify channel permissions allow history access **Permission Denied** * Review Slack workspace app permissions * Check individual channel permissions for the bot user * Ensure OAuth scopes include required permissions ### Getting Help 1. **Test Commands** - Use `@Calmo help` to verify basic functionality 2. **Reconnect Integration** - Use reconnection flow to refresh permissions 3. **Contact Support** - Reach out to [support@getcalmo.com](mailto:support@getcalmo.com) for assistance ## Best Practices for Teams ### Incident Response Setup 1. **Dedicated Channels** - Create specific channels for incident response 2. **Clear Escalation** - Define when to escalate from AI to human experts 3. **Documentation Standards** - Establish consistent incident documentation 4. **Training Programs** - Regular team training on AI-assisted workflows ### Operational Excellence * **Monitor AI Performance** - Track response quality and accuracy * **Feedback Loops** - Provide feedback to improve AI responses * **Process Optimization** - Continuously improve incident response workflows * **Knowledge Sharing** - Leverage AI insights for team learning The Slack integration provides comprehensive incident response and team collaboration capabilities, enabling your team to handle production issues efficiently through AI-powered assistance while maintaining human oversight and control. *** *For assistance with setting up Calmo in your Slack workspace, contact our support team at [support@getcalmo.com](mailto:support@getcalmo.com).* # Introduction Source: https://docs.getcalmo.com/introduction Root cause analysis in seconds without diving into logs, dashboards, or tools. Let Calmo do it for you. ## Get Started Connect your local machine to Calmo for secure command execution, file access, and MCP server integration Connect Calmo to your environment with our comprehensive integrations covering **154+ specialized tools** across 13 major platforms: Manage Kubernetes clusters with 15+ tools for container orchestration, monitoring, and troubleshooting Connect Slack with 8 tools to automate incident channels and collaborative troubleshooting Integrate PagerDuty for comprehensive incident response, escalation policies, and on-call optimization Connect Sentry with 11 tools for error tracking, debugging, and performance analysis Integrate Datadog, SigNoz, and Grafana with 57+ tools for metrics, logs, traces, and comprehensive monitoring Link GitHub with 26 tools for code analysis, repository management, and development workflows ## Integrations Overview Explore our comprehensive integration platform with **154+ specialized tools** across **13 major integrations**. Each integration is designed to enhance your existing workflows with AI-powered automation. ### Infrastructure 15+ tools for complete container orchestration - resource management, operations, cluster management, Helm operations ### Observability 22 tools for comprehensive observability - monitoring, metrics, logs, traces, infrastructure, and incident response 9 tools for open-source APM - dashboard management, distributed tracing, ClickHouse analytics, and observability 26 tools for monitoring and visualization - dashboards, Prometheus/Loki queries, alerting, incident management ### Incident Management and Communication Comprehensive incident response - incident management, service monitoring, escalation policies, on-call scheduling 8 tools for intelligent team communication - channel management, messaging, data retrieval, user management ### Development and Code 26 tools for complete development workflow - code analysis, repository management, PRs, issues, branch operations 11 tools for comprehensive error monitoring - project management, issue tracking, session replay, debugging ### Data and Analytics 10 tools for data platform operations - cluster management, job execution, notebook operations, data queries 3 tools for data warehouse analytics - SQL querying, schema inspection, column search and discovery 3 tools for object storage management - bucket listing, object retrieval, and data operations ### AI and Productivity 9 tools for LLM observability - prompt management, trace analysis, session analytics, performance monitoring 24 tools for knowledge management - users, databases, pages, blocks, comments, search, and properties Explore our complete integration platform with detailed capabilities, tool breakdowns, and setup guides for all platforms # Best Practices Source: https://docs.getcalmo.com/local-bridge/best-practices Security recommendations and workflow optimization tips for Calmo Bridge IDE # Best Practices This guide covers security recommendations, workflow optimization, and tips for getting the most out of Calmo Bridge IDE's integrated environment. ## Security Recommendations ### Command Approval Strategy Always read the full command in the Command Approval panel before clicking **Allow**. Understand what it will do before execution. Pay attention to risk indicators: * 🟢 LOW = Safe reads * 🟡 MEDIUM = State changes * 🔴 HIGH = Potentially dangerous ### Auto-Approve Patterns Use **Always** strategically for low-risk, frequently-used commands: **Safe patterns to auto-approve:** ``` kubectl get kubectl describe kubectl logs git status git log git diff ls cat pwd docker ps ``` **Patterns to NEVER auto-approve:** ``` kubectl delete kubectl apply rm git push terraform apply terraform destroy npm publish ``` Start with a minimal set of auto-approved commands. Add more as you build confidence in the patterns you use daily. ## Integrated Environment Workflows ### Chat + Terminal + Files The power of Calmo Bridge IDE comes from using all three panels together: **Workflow Example: Fixing a Configuration Bug** 1. **Chat** (right): "The API deployment is failing in staging" 2. **Terminal** (center bottom): See logs appear ```bash theme={null} $ kubectl logs deployment/api -n staging Error: ConfigMap 'api-config' not found ``` 3. **File Browser** (left): Navigate to `kubernetes/staging/api/` 4. **Editor** (center top): Open `deployment.yaml`, spot the typo 5. **Edit** the file: Fix `api-confg` → `api-config` 6. **Chat**: "Apply the fixed deployment" 7. **Terminal**: Watch the apply succeed All without leaving the Bridge IDE window. ### Context Switching Best Practices **Efficient Navigation:** * **Cmd/Ctrl+\`** - Toggle Terminal visibility * **Cmd/Ctrl+/** - Focus Chat input * **Click file** in tree - Open in editor * **Click Terminal/Activity tabs** - Switch views **Workflow Tips:** * Keep relevant files open in tabs * Use Terminal tab for active execution * Switch to Activity tab to review history * Minimize/maximize panels as needed ### Using Workspaces Effectively **Organization:** ✅ **Add specific project directories** ``` /Users/you/projects/frontend /Users/you/projects/backend /Users/you/infra/k8s-configs ``` ✅ **Use workspace categories** * Git Repositories for app code * Terraform Projects for infrastructure * CI/CD Pipelines for deployment configs ✅ **Keep count manageable** * 3-10 workspaces is ideal * Remove when projects are archived ❌ **Avoid adding entire home directory** ``` /Users/you # Too broad ``` ❌ **Don't add system directories** ``` /etc /var /usr/local ``` ❌ **Don't duplicate workspaces** * Check "Current Workspaces" list before adding * One path per workspace ### File Editing Strategy **When to edit in Bridge IDE:** * Quick config tweaks * Viewing files during chat * Small changes suggested by Calmo * Files you want to reference in conversation **When to use your full IDE:** * Large refactorings * Complex multi-file changes * Debugging sessions * Long coding sessions The Bridge IDE editor is designed for quick edits and AI collaboration, not as a full IDE replacement. ## Workflow Optimization ### Effective Prompting Be specific when asking Calmo to run commands: **Good prompts:** * "Check the logs for the api-server pod in the staging namespace, last 50 lines" * "Show me all pods in CrashLoopBackOff state across all namespaces" * "List recent commits in this repo with their authors" **Less effective:** * "Check the logs" (which pod? which namespace?) * "What's wrong?" (too vague for targeted commands) ### Batch Operations For multiple related operations, ask Calmo to handle them sequentially: ``` "First, check the pod status in production. Then, describe any pods that aren't running. Finally, show me the logs from failing containers." ``` Commands queue in the Approval panel. You can: * Approve them one by one as you review * Click **Allow** on all if they're safe * Deny any that look incorrect ### Leveraging MCP Servers Extend capabilities strategically: | Use Case | MCP Server | Benefit | | ----------------------- | ----------------------- | -------------------------------------------- | | Look up library docs | context7 | Get up-to-date documentation for any library | | Access project docs | @mastra/mcp-docs-server | Quick reference to your framework docs | | Complex problem-solving | sequential-thinking | Structured reasoning for debugging | | GitHub operations | server-github | Create PRs, list issues, manage repos | **Example Workflow:** "Using the context7 tool, show me how to use React's useEffect hook with cleanup. Then, update the Timer.tsx file in my workspace to use it properly." Calmo fetches the docs, understands your file, and suggests the edit. ## Development Workflows ### Kubernetes Debugging A streamlined debugging session: **Auto-approve** `kubectl get` patterns for quick status checks. Chat: "Show me all pods in staging" **Auto-approve** `kubectl describe` and `kubectl logs`. Chat: "Describe the failing pod and show me its logs" **Manually approve** any `kubectl delete`, `kubectl apply`, or `kubectl scale`. Chat: "Delete the crashlooping pod to restart it" Review the command, then click **Allow**. **Auto-approved** get commands confirm the fix. Chat: "Check if the pod is healthy now" ### Infrastructure Changes For Terraform or Kubernetes manifest changes: 1. **Edit in Bridge** - Make changes to YAML/HCL files 2. **Preview first** - Run `terraform plan` or `kubectl diff` (safe, auto-approve-able) 3. **Review changes** - Read the plan output in Terminal 4. **Apply intentionally** - Manually approve `terraform apply` or `kubectl apply` 5. **Verify** - Check resources with get commands **Example:** ``` You: [Edit deployment.yaml to increase replicas] You: "Apply this deployment to staging" Calmo: kubectl apply -f deployment.yaml -n staging [Command Approval panel shows MEDIUM RISK] You: [Review, click Allow] Terminal: deployment.apps/api configured You: "How many replicas are running now?" Calmo: kubectl get deployment api -n staging Terminal: api 3/3 3 3 10s ``` ### Git Operations **Safe to auto-approve:** * `git status`, `git log`, `git diff` * `git branch -a`, `git remote -v` * `git show ` **Manually approve:** * `git commit` - Review commit message * `git push` - Ensure correct branch * `git merge` - Understand what's being merged * `git checkout` - Verify branch/file changes **Workflow:** 1. Chat: "Show me the status and recent changes" 2. Review output in Terminal 3. Chat: "Commit these changes with message: fix: correct API endpoint" 4. Review commit command, approve 5. Chat: "Push to feature branch" 6. Verify branch name, approve ## Performance Tips ### Keep Bridge IDE Running Maintain state and connections by keeping Bridge IDE in the background: * **Close window** → Minimizes to menu bar/tray * **Connection persists** → No re-pairing needed * **History preserved** → Command and chat history available * **MCP servers stay connected** → No reload time **When to restart:** * After updating Bridge IDE version * If memory usage is very high * When troubleshooting connection issues ### Manage Pending Commands Don't let commands queue indefinitely: * **Approve or deny promptly** - Review and decide * **Set up auto-approve** for safe patterns * **Clear queue** if needed - Deny commands you don't need ### Regular Cleanup **Clear Activity Log:** * Click **Clear** in Activity tab when log grows large * Doesn't affect command history with Calmo * Frees up memory **Close Unused Tabs:** * Close file tabs you're no longer referencing * Cmd/Ctrl+W to close active tab * Right-click → Close All to clear all tabs ## Team Usage If multiple team members use Calmo Bridge IDE: ### Individual Setup * **Each person pairs their own machine** - One Bridge IDE per developer * **Personal approval patterns** - Auto-approve lists are per-user * **Individual workspaces** - Add your own project directories ### Shared Standards Document across your team: **Auto-Approve Patterns:** ```markdown theme={null} # Team Auto-Approve Patterns Safe for Always: - kubectl get - kubectl describe - kubectl logs - git status - git log Always Manual: - kubectl delete - kubectl apply - terraform apply - git push ``` **MCP Configuration:** Share a base `mcp.json` template: ```json theme={null} { "mcpServers": { "context7": { "url": "https://mcp.context7.com/mcp", "headers": { "CONTEXT7_API_KEY": "${YOUR_KEY_HERE}" } }, "sequential-thinking": { "command": "/usr/local/bin/npx", "args": ["-y", "@modelcontextprotocol/server-sequential-thinking"] } } } ``` **Workspace Guidelines:** * Production systems → High scrutiny, minimal auto-approve * Staging/dev → More auto-approve, faster iteration * Local only → Maximum freedom ## What to Avoid **Security Anti-Patterns** ❌ Don't auto-approve destructive commands ❌ Don't add your entire home directory as a workspace ❌ Don't share `mcp.json` files with API keys ❌ Don't approve commands you don't understand ❌ Don't leave sensitive commands pending indefinitely ❌ Don't disable connection encryption/verification **Workflow Anti-Patterns:** * ❌ Editing production configs without review * ❌ Running commands blindly without reading them * ❌ Adding workspaces you don't actively use * ❌ Keeping 50+ file tabs open * ❌ Ignoring risk level indicators ## Quick Reference ### Risk Assessment Matrix | Command Type | Risk | Auto-Approve? | Examples | | ----------------- | ------ | --------------- | --------------------------------------------------- | | Read operations | Low | ✅ Recommended | `get`, `list`, `describe`, `logs`, `status`, `diff` | | Plan/preview | Low | ✅ Recommended | `terraform plan`, `kubectl diff`, `--dry-run` | | Write operations | Medium | ⚠️ Case by case | `apply`, `create`, `scale`, `commit` | | Delete operations | High | ❌ Never | `delete`, `rm`, `destroy`, `drop` | | Deploy/push | High | ❌ Never | `push`, `publish`, `deploy` (to prod) | ### Workspace Scope Guidelines | Scope | Recommendation | Examples | | --------------------- | -------------- | -------------------------------------- | | Single project | ✅ Ideal | `/Users/you/projects/my-api` | | Related projects | ✅ Good | Multiple repos for one system | | Entire code directory | ⚠️ Broad | `/Users/you/code` - consider splitting | | Home directory | ❌ Too broad | `/Users/you` - security risk | | System directories | ❌ Unnecessary | `/etc`, `/var` - dangerous | ### MCP Server Selection Guide | Need | Recommended Server | Configuration Type | | -------------------------- | -------------------------- | ------------------------------- | | Library documentation | context7 | HTTP (requires API key) | | Framework docs (Mastra) | @mastra/mcp-docs-server | Stdio (npm package) | | Structured problem-solving | server-sequential-thinking | Stdio (npm package) | | GitHub integration | server-github | Stdio (requires GitHub token) | | Database queries | server-postgres | Stdio (requires DB credentials) | ## Troubleshooting Your Workflow ### Commands Taking Too Long If commands seem slow: 1. **Check command scope** - Are you querying too much data? * Use `-n namespace` instead of `-A` (all namespaces) * Add `--tail=100` to log commands * Use `| head -n 20` to limit output 2. **Network latency** - Remote clusters take longer * Use `kubectl` contexts for faster access * Consider running commands on the cluster directly 3. **Optimize patterns** - Make commands more specific ### Losing Context in Chat If Calmo seems to forget what you're working on: 1. **Reference open files** - "Look at the deployment.yaml I have open" 2. **Be explicit** - "In the staging namespace" instead of "there" 3. **Use workspace context** - Calmo sees your workspace structure 4. **Provide recent terminal output** - "Based on the logs you just showed me..." ### Terminal Output Hard to Read If terminal output is difficult to parse: 1. **Use filtering** - `| grep`, `| less`, `| head` 2. **Request formatted output** - Ask Calmo to summarize 3. **Resize panels** - Drag dividers for more space 4. **Copy to editor** - Copy output, paste in new file for analysis *** *For additional workflow guidance, contact our support team at [support@getcalmo.com](mailto:support@getcalmo.com).* # CLI Tools & Terminal Source: https://docs.getcalmo.com/local-bridge/cli-tools Execute local commands through Calmo Bridge IDE integrated terminal with real-time output and command approval # CLI Tools & Terminal Calmo Bridge IDE includes an integrated terminal that allows you to execute CLI commands on your local machine directly from Calmo conversations. The terminal provides real-time output streaming, full shell integration, and a seamless approval workflow—all without leaving the Bridge interface. ## Overview When connected via Calmo Bridge IDE, Calmo has access to powerful command execution capabilities: Full terminal emulation with shell prompt, colors, and real-time output streaming Review commands in a dedicated approval panel before they execute Start, monitor, and terminate long-running processes Track all executed commands with status indicators and full output ## How It Works The command execution flow integrates seamlessly with your chat workflow: Ask Calmo to run a command in the chat panel (right sidebar): "Hey, can you check what pods are running in the staging namespace?" The command appears in the **Command Approval** panel at the top right: Command Approval panel showing pending command ``` kubectl get ns | grep argo 🟢 LOW RISK [Deny] [Always] [Allow] ``` Choose your action: * **Deny** - Reject the command * **Always** - Auto-approve this pattern in the future * **Allow** - Execute just this once Output streams in real-time to the **Terminal panel** (bottom center): Terminal showing real-time command execution ```bash theme={null} $ kubectl get ns | grep argo argo-cd Active 45d argo-workflows Active 32d ✓ Command completed ``` Calmo sees the output and continues the conversation in the chat panel. You can ask follow-up questions or request additional commands. ### Visual Workflow ``` ┌────────────────────────────────────────────────────┐ │ 💬 Chat: "Check pods in staging" │ └────────────────────────────────────────────────────┘ ↓ ┌────────────────────────────────────────────────────┐ │ ⚠️ Command Approval Panel │ │ kubectl get pods -n staging │ │ 🟢 LOW RISK [Deny] [Always] [Allow] ←─── Click │ └────────────────────────────────────────────────────┘ ↓ ┌────────────────────────────────────────────────────┐ │ 🖥️ Terminal Panel │ │ $ kubectl get pods -n staging │ │ NAME READY STATUS RESTARTS │ │ api-server-abc123 1/1 Running 0 │ │ ✓ Command completed │ └────────────────────────────────────────────────────┘ ↓ ┌────────────────────────────────────────────────────┐ │ 💬 Chat: "All pods are running healthy in staging"│ └────────────────────────────────────────────────────┘ ``` ## Integrated Terminal ### Terminal Panel The Terminal panel lives in the bottom section of the center area, below the file editor: **Features:** * **Shell Prompt** - Shows current working directory * **Real-Time Output** - Command results stream as they happen * **Color Support** - ANSI colors and formatting preserved * **Interactive** - Supports prompts and user input * **Resizable** - Drag the divider to adjust height * **Persistent** - History persists across commands **Example Output:** ```bash theme={null} # Kubernetes batch jobs NAME STATUS COMPLETIONS DURATION AGE job-batch/k6-loadgen-8zff1d8 Complete 1/1 87s 55d job-batch/pod-cpu-hog-v9hhkf Complete 1/1 2m37s 116d job-batch/pod-cpu-hog-zc82cq Complete 1/1 97s 25d job-batch/pod-delete-zbsl05 Complete 1/1 105s 55d # StatefulSet operations NAME READY AGE statefulset.apps/litmus-mongodb 3/3 116d statefulset.apps/litmus-mongodb-arbiter 1/1 116d ``` ### Terminal vs. Activity Tabs The bottom panel has two tabs: | Tab | Purpose | Shows | | ------------ | --------------------------- | ------------------------------------------------------------ | | **Terminal** | Real-time command execution | Current command output, shell prompt, live streaming | | **Activity** | Command history | Past commands with timestamps, status, and expandable output | Switch between them to see live execution or review past commands. Activity tab showing command history ## Command Approval Workflow ### Approval Panel The Command Approval panel appears in the top right of the interface: **Layout:** ``` ┌───────────────────────────────────────────┐ │ ⚠️ Command Approval (3 commands) │ ├───────────────────────────────────────────┤ │ kubectl get ns | grep argo │ │ 🟢 LOW RISK │ │ [Deny] [Always] [Allow] │ ├───────────────────────────────────────────┤ │ kubectl get pods -A | grep argo │ │ 🟢 LOW RISK │ │ [Deny] [Always] [Allow] │ └───────────────────────────────────────────┘ ``` **Elements:** * **Command** - The exact command to be executed * **Risk Badge** - Color-coded risk level * **Three Action Buttons** - Deny, Always, Allow * **Queue Count** - Number of pending commands (in header) ### Approval Actions **Deny** Rejects the command. Calmo will be notified that you denied it. **Use when:** * Command looks incorrect or dangerous * You want Calmo to try a different approach * The command would affect the wrong environment **Result:** Command is not executed, marked as denied in activity history **Always Allow** Approves this command AND adds the pattern to your auto-approve list. Future matching commands will execute automatically without asking. **Use when:** * The command is safe and you use it frequently (e.g., `kubectl get`) * You trust this pattern completely * You want to streamline your workflow **Result:** Command executes immediately, pattern added to always-allowed list Be cautious with "Always". Never auto-approve destructive patterns like `kubectl delete` or `rm`. **Allow Once** Approves just this single execution. The next time Calmo suggests the same command, you'll need to approve it again. **Use when:** * The command is fine, but you want to review it each time * Medium or high-risk operations * Commands you use occasionally **Result:** Command executes once, remains in pending queue for next time ### Risk Levels Commands are automatically classified by risk: **Low Risk** - Safe read operations that don't modify state **Examples:** ```bash theme={null} kubectl get pods kubectl describe deployment api-server kubectl logs my-pod-abc123 git status git log ls -la cat config.yaml docker ps ``` **Recommendation:** Safe to use "Always" for frequently-used patterns **Medium Risk** - Operations that modify state but are generally reversible **Examples:** ```bash theme={null} kubectl delete pod my-pod # Pod will recreate kubectl scale deployment api --replicas=3 git commit -m "message" npm install package docker stop container-id ``` **Recommendation:** Review each time or use "Always" selectively for trusted patterns **High Risk** - Potentially dangerous operations with significant impact **Examples:** ```bash theme={null} kubectl delete deployment api-server kubectl delete pvc data-volume terraform destroy rm -rf directory/ kubectl apply -f production.yaml ``` **Recommendation:** ALWAYS review manually. Never use "Always" for these patterns. ## Command Execution ### Basic Examples **Infrastructure Operations:** ```bash theme={null} # Check Kubernetes resources kubectl get pods -n production kubectl describe deployment api-server kubectl logs my-pod-abc123 --tail=100 --follow # View cluster status kubectl get nodes kubectl top pods -n monitoring # Check Argo CD applications kubectl get applications -n argocd ``` **Development Workflows:** ```bash theme={null} # Git operations git status git log --oneline -10 git diff HEAD~1 git branch -a # Package management npm install pip install -r requirements.txt poetry install pnpm build # Docker operations docker ps docker logs container-id docker-compose up -d ``` **System Administration:** ```bash theme={null} # File system operations ls -la /path/to/project cat config.yaml find . -name "*.log" -mtime -1 tree -L 2 # Process inspection ps aux | grep node top -bn1 df -h ``` ## Common Use Cases ### Kubernetes Troubleshooting A typical debugging workflow with the integrated terminal: **You:** "Check if there are any failing pods in staging" **Terminal:** ```bash theme={null} $ kubectl get pods -n staging NAME READY STATUS RESTARTS api-server-7d4f8b-x9k2p 0/1 CrashLoopBackOff 5 worker-6b8c9d-abc12 1/1 Running 0 ✓ Command completed ``` **Calmo:** "I see the api-server pod is in CrashLoopBackOff. Let me get more details." **Terminal:** ```bash theme={null} $ kubectl describe pod api-server-7d4f8b-x9k2p -n staging Events: Type Reason Age Message ---- ------ ---- ------- Warning BackOff 2m Back-off restarting failed container ✓ Command completed ``` **Calmo:** "Let me check the container logs for errors." **Terminal:** ```bash theme={null} $ kubectl logs api-server-7d4f8b-x9k2p -n staging Error: Cannot connect to database at postgres:5432 Connection refused ✓ Command completed ``` **Calmo:** "The pod can't connect to the database. The postgres service might be down or misconfigured." All of this happens in the same window—chat on the right, terminal output in the center. ### Development Environment Setup ```bash theme={null} # Clone and setup a new project git clone https://github.com/org/repo.git cd repo npm install npm run dev ``` The terminal shows real-time progress for each step. ### Infrastructure as Code ```bash theme={null} # Terraform workflow cd terraform/staging terraform init terraform plan -out=plan.tfplan terraform apply plan.tfplan # Kustomize + kubectl kustomize build overlays/staging | kubectl apply -f - ``` ### Log Analysis ```bash theme={null} # Search logs for errors kubectl logs deployment/api -n production | grep -i error # Tail logs in real-time kubectl logs -f pod/api-server-abc123 -n production # Get logs from specific container kubectl logs pod/my-pod -c init-container -n staging --tail=50 ``` The terminal preserves colors and formatting, making log analysis easier. ## Long-Running Processes The terminal supports processes that run continuously: ### Starting Background Processes ```bash theme={null} # Development servers npm run dev # Port forwarding kubectl port-forward svc/api 8080:80 -n staging # Log tailing kubectl logs -f deployment/api -n production # Watch commands watch -n 5 kubectl get pods ``` ### Managing Processes **While Running:** * Output streams continuously to the terminal * You can continue chatting with Calmo * New commands can be approved and queued **Stopping Processes:** * Ask Calmo: "Stop the port-forward process" * Calmo will terminate the running process * Or manually close the terminal tab Long-running processes continue in the background even if you switch to the Activity tab. Switch back to Terminal to see live output. ## Working Directory Commands execute in the context of your configured workspaces: ### Workspace Context If you've added `/Users/pankaj/local_code/calmo-ci` as a workspace: ```bash theme={null} # Calmo understands the workspace structure $ pwd /Users/pankaj/local_code/calmo-ci # Can navigate within it $ cd environments/staging $ ls kustomization.yaml deployment.yaml service.yaml ``` ### Multiple Workspaces With multiple workspaces, Calmo asks which one to use: **You:** "List the files in this project" **Calmo:** "Which workspace? You have: * calmo-demos * calmo-ci * calmo-gmail" **You:** "calmo-ci" **Terminal:** ```bash theme={null} $ cd /Users/pankaj/local_code/calmo-ci && ls environments/ base/ README.md kustomization.yaml ``` ## Activity Panel ### Command History The Activity tab shows all executed commands: Activity panel with command history and status indicators **Each Entry Shows:** * **Status Icon:** * ✅ **Auto-approved** - Matched an always-allow pattern (shown with timestamp like "1d ago", "2d ago") * ✅ **Approved** - Manually approved by you * ❌ **Denied** - Rejected by you * **Timestamp** - When the command ran (e.g., "1d ago", "2d ago", "Exit 1") * **Command** - The full command that was executed (e.g., "kubectl get ns | grep argo") * **Exit Status** - Shows "Exit 1" or "Exit 0" for command result * **Expand Arrow** - Click to see full output and details **Features:** * **Searchable** - Find past commands by text * **Clickable** - Click to expand and see full output * **Copyable** - Click the copy icon to copy the command * **Filterable** - Filter by status (approved, denied, auto-approved) ### Managing History **Clear History:** * Click **Clear** button to remove all history * Useful for decluttering after long sessions **Export History:** * Commands are logged for your audit trail * Logs persist across bridge restarts ## Environment & Shell ### Shell Integration Commands run in your default shell with full environment: **macOS/Linux:** * Uses your default shell (`bash`, `zsh`, `fish`) * Sources shell profile (`.bashrc`, `.zshrc`) * Environment variables available * PATH and aliases work * Shell functions available **Windows:** * Uses PowerShell or cmd.exe (configurable) * Environment variables available * PATH settings honored ### Environment Variables Your shell environment is fully available: ```bash theme={null} $ echo $KUBECONFIG /Users/pankaj/.kube/config $ echo $NODE_ENV development $ which kubectl /usr/local/bin/kubectl ``` Custom variables from your `.bashrc`/`.zshrc` are accessible. ## Best Practices ### 1. Use Specific Commands Target your commands to limit output and improve clarity: ```bash theme={null} # Good: Specific and bounded kubectl logs deployment/api -n staging --tail=50 # Avoid: Unbounded output kubectl logs deployment/api -n staging ``` ### 2. Preview Before Applying For infrastructure changes, always preview first: ```bash theme={null} # First, preview terraform plan kubectl diff -f manifest.yaml # Then apply (separate approval) terraform apply kubectl apply -f manifest.yaml ``` ### 3. Scope Operations Limit scope to reduce risk and improve performance: ```bash theme={null} # Good: Namespaced kubectl get pods -n specific-namespace # Risky: All namespaces (slow, verbose) kubectl get pods -A ``` ### 4. Use Filters and Limits Make output manageable: ```bash theme={null} # Limit results kubectl get events --sort-by='.lastTimestamp' --field-selector type!=Normal | head -n 20 # Use grep kubectl get pods -A | grep -i error # Tail logs kubectl logs deployment/api --tail=100 ``` ### 5. Set Up Auto-Approve Wisely **Safe to auto-approve:** ``` kubectl get kubectl describe kubectl logs git status git log ls cat pwd ``` **Never auto-approve:** ``` kubectl delete kubectl apply rm terraform destroy git push ``` ## Troubleshooting ### Command Not Found If commands fail with "command not found": 1. **Verify installation** ```bash theme={null} which kubectl which terraform ``` 2. **Check PATH** ```bash theme={null} echo $PATH ``` 3. **Use full path** ```bash theme={null} /usr/local/bin/kubectl get pods ``` 4. **Restart bridge** to reload environment ### Permission Denied If commands fail with permission errors: * Commands run with **your user permissions** (not root) * Some operations may need `sudo` (use with caution) * Check file/directory permissions * Verify you're in the correct workspace ### Output Not Showing If command output doesn't appear in the terminal: 1. **Check Terminal tab** - Ensure you're on Terminal (not Activity) 2. **Scroll down** - Output might be below viewport 3. **Wait** - Some commands take time to produce output 4. **Check Activity tab** - Command might have completed ### Command Stuck If a command seems stuck: 1. **Check for approval** - Ensure you clicked Allow 2. **Long-running** - Some commands take time (e.g., `kubectl apply`) 3. **Interactive prompt** - Command might be waiting for input 4. **Ask Calmo to stop** - "Cancel the current command" ### Terminal Not Responding If the terminal becomes unresponsive: 1. **Refresh** - Click the refresh icon 2. **Restart bridge** - Quit and relaunch the application 3. **Check logs** - Look for errors in Activity Log *** *For assistance with CLI tools and terminal usage, contact our support team at [support@getcalmo.com](mailto:support@getcalmo.com).* # MCP Configuration Source: https://docs.getcalmo.com/local-bridge/mcp-configuration Configure Model Context Protocol servers to extend Calmo Bridge IDE capabilities with external tools and documentation # MCP Configuration The Model Context Protocol (MCP) is an open standard that allows AI assistants to connect to external tools and data sources. Calmo Bridge IDE supports MCP servers, enabling you to extend Calmo's capabilities with documentation lookup, specialized tools, sequential thinking, and more—all integrated into the same workspace. ## What is MCP? MCP provides a standardized way for AI applications to: * **Access External Tools** - Connect to specialized tools and services * **Retrieve Documentation** - Fetch up-to-date docs and code examples * **Enable New Capabilities** - Add sequential thinking, file access, database queries, and more * **Extend Context** - Give Calmo access to information beyond its training data MCP servers run locally (stdio) or remotely (http/https) and communicate with Calmo through a standardized protocol. ## Welcome Wizard During initial setup, the Welcome screen introduces Calmo Bridge IDE: Calmo Bridge IDE welcome screen with feature overview **Calmo - Agent-Native SRE Platform** The welcome screen highlights the key capabilities: * **Secure Command Execution** - Run kubectl, git, npm, and other CLI tools directly from Calmo with your approval * **Local Workspace Access** - Give Calmo context about your projects, repositories, and files * **Human-in-the-Loop** - Review and approve every command before execution. You're always in control * **MCP Integration** - Extend capabilities with Model Context Protocol servers * **Real-Time Logs** - Monitor bridge activity and command execution in real-time * **Seamless Integration** - Works with your existing workflows and tools **Get Started Button** - Takes less than 2 minutes to set up After clicking Get Started, you'll configure MCP servers and workspaces. You can skip MCP configuration during setup and add servers later via the MCP Servers panel in the IDE. ## Viewing MCP Servers ### Server List Panel The MCP Servers section appears in the left sidebar below Workspaces: MCP Servers panel showing connected servers **Panel Header:** ``` 🔌 MCP Servers ↻ Servers: 6 Tools: 64 ``` * **Servers count** - Total number of configured servers (6) * **Tools count** - Total tools across all servers (64) * **Refresh icon (↻)** - Reload all servers **Server List:** Each server shows: * **Server name** - Configured identifier (e.g., "ArgoCD", "context7", "GitHub") * **Status indicator** - Green dot (🟢) = connected/online, Gray dot (⚪) = disconnected/offline * **Tool count** - Number of tools provided (e.g., "2", "51", "60mp", "5emp") * **Status label** - "Offline" displayed for disconnected servers * **Expand arrow (>)** - Click to view server details **Example:** ``` > 🟢 ArgoCD Offline 60mp > 🟢 context7 2 > ⚪ GitHub Offline 51 > ⚪ Kubernetes Offline 5emp > 🟢 mastra 10 > 🟢 sequential-thinking 1 ``` ### Server Detail View Click on any server name to open its detail panel: MCP server detail view showing context7 server information **Detail Panel Contents:** **Server Status:** * **Server name** - Large heading (e.g., "context7") * **Connected** badge - Green status indicator **Server Information Section:** * **Type** - Transport type (http or stdio) * **Status** - Connection state (Connected, Disconnected, Error) * **Tools Available** - Count of tools this server provides **Available Tools Section:** * "2 tools provided by this server" (expandable) * Click to see list of tool names and descriptions **Action Buttons:** * **Reload Server** - Restart this server's connection * **Edit Config** - Open `mcp.json` in the editor ## Configuring MCP Servers ### Accessing the Configuration There are two ways to edit MCP configuration: **Method 1: From Server Detail Panel** 1. Click on any server in the MCP Servers list 2. Click **Edit Config** button in the detail panel **Method 2: From Panel Footer** 1. Scroll to the bottom of the MCP Servers panel 2. Click **Edit Config** button Both methods open the `mcp.json` file in the center editor panel. MCP configuration file open in the integrated editor **Configuration File Location:** * **macOS**: `~/Library/Application Support/Calmo Bridge IDE/mcp.json` * **Windows**: `%APPDATA%\Calmo Bridge IDE\mcp.json` * **Linux**: `~/.config/Calmo Bridge IDE/mcp.json` ### Configuration Format The configuration uses JSON format with an `mcpServers` object: ```json theme={null} { "mcpServers": { "server-name": { // Server configuration } } } ``` Each server is configured with either **stdio** (local process) or **http/https** (remote) transport. ## Server Types ### Stdio Servers Local processes that communicate via stdin/stdout. Best for npm packages and local tools. **Configuration:** ```json theme={null} { "mcpServers": { "mastra": { "command": "/usr/local/bin/npx", "args": ["-y", "@mastra/mcp-docs-server"], "env": { "PATH": "/usr/local/bin:/usr/bin:/bin" } } } } ``` **Required Fields:** | Field | Type | Description | | --------- | ------ | ------------------------------------------------------------- | | `command` | string | Full path to executable (e.g., `/usr/local/bin/npx`) | | `args` | array | Command arguments (e.g., `["-y", "@mastra/mcp-docs-server"]`) | **Optional Fields:** | Field | Type | Description | | ---------- | ------- | ----------------------------------------- | | `env` | object | Environment variables for the process | | `disabled` | boolean | Set to `true` to disable without removing | **Finding Command Paths:** ```bash theme={null} # macOS/Linux which npx # Output: /usr/local/bin/npx # Windows where npx # Output: C:\Program Files\nodejs\npx.cmd ``` ### HTTP/HTTPS Servers Remote servers accessed over the network. Best for cloud-hosted services. **Configuration:** ```json theme={null} { "mcpServers": { "context7": { "url": "https://mcp.context7.com/mcp", "headers": { "CONTEXT7_API_KEY": "ctx7sk-xxxx-xxxx-xxxx" } } } } ``` **Required Fields:** | Field | Type | Description | | ----- | ------ | ----------------------------------- | | `url` | string | Full URL to the MCP server endpoint | **Optional Fields:** | Field | Type | Description | | ---------- | ------- | ----------------------------------------- | | `headers` | object | HTTP headers (typically for API keys) | | `disabled` | boolean | Set to `true` to disable without removing | ## Example Configurations ### Documentation Server (Context7) Provides up-to-date documentation for any library: ```json theme={null} { "mcpServers": { "context7": { "url": "https://mcp.context7.com/mcp", "headers": { "CONTEXT7_API_KEY": "ctx7sk-xxxx-xxxx-xxxx" } } } } ``` **Tools Provided:** * `resolve-library-id` - Find the correct library identifier * `get-library-docs` - Retrieve documentation for any library **Use Cases:** * "Show me the React docs for useState" * "How do I use Terraform's aws\_instance resource?" * "Get me examples of using Express.js middleware" ### Mastra Documentation Access Mastra.ai documentation, examples, and migration guides: ```json theme={null} { "mcpServers": { "mastra": { "command": "/usr/local/bin/npx", "args": ["-y", "@mastra/mcp-docs-server"], "env": { "PATH": "/usr/local/bin:/usr/bin:/bin" } } } } ``` **Tools Provided:** * `mastraDocs` - Access documentation * `mastraExamples` - Code examples * `mastraBlog` - Blog posts and tutorials * `mastraChanges` - Changelog * `mastraMigration` - Migration guides * ...and more ### GitHub Integration Access GitHub repositories, issues, and pull requests: ```json theme={null} { "mcpServers": { "github": { "command": "/usr/local/bin/npx", "args": ["-y", "@modelcontextprotocol/server-github"], "env": { "GITHUB_TOKEN": "ghp_xxxxxxxxxxxx", "PATH": "/usr/local/bin:/usr/bin:/bin" } } } } ``` **Tools Provided:** 50+ tools for repository management, issues, PRs, and more **Use Cases:** * "List open issues in my repo" * "Create a PR for this branch" * "Show me recent commits" ### Sequential Thinking Enables structured problem-solving through step-by-step reasoning: ```json theme={null} { "mcpServers": { "sequential-thinking": { "command": "/usr/local/bin/npx", "args": [ "-y", "@modelcontextprotocol/server-sequential-thinking" ], "env": { "PATH": "/usr/local/bin:/usr/bin:/bin" } } } } ``` **Tools Provided:** * `sequentialthinking` - Structured reasoning tool **Use Cases:** * Complex debugging * Architecture decisions * Multi-step problem solving ### Complete Example A full configuration with multiple servers: ```json theme={null} { "mcpServers": { "context7": { "url": "https://mcp.context7.com/mcp", "headers": { "CONTEXT7_API_KEY": "ctx7sk-xxxx-xxxx-xxxx" } }, "github": { "command": "/usr/local/bin/npx", "args": ["-y", "@modelcontextprotocol/server-github"], "env": { "GITHUB_TOKEN": "ghp_xxxxxxxxxxxx", "PATH": "/usr/local/bin:/usr/bin:/bin" } }, "mastra": { "command": "/usr/local/bin/npx", "args": ["-y", "@mastra/mcp-docs-server"], "env": { "PATH": "/usr/local/bin:/usr/bin:/bin" } }, "sequential-thinking": { "command": "/usr/local/bin/npx", "args": ["-y", "@modelcontextprotocol/server-sequential-thinking"], "env": { "PATH": "/usr/local/bin:/usr/bin:/bin" } } } } ``` ## Managing Servers ### Reloading Servers After editing the configuration, reload servers to apply changes: **Reload All Servers:** * Click the **↻** refresh icon in the MCP Servers panel header * All servers reconnect with new configuration **Reload Single Server:** 1. Click on the server in the list 2. Click **Reload Server** button in the detail panel 3. That server restarts with updated config **Auto-Reload:** * The IDE watches `mcp.json` for changes * Servers automatically reload when you save the file * No manual reload needed in most cases ### Disabling a Server To temporarily disable a server without removing it: ```json theme={null} { "mcpServers": { "server-name": { "command": "/usr/local/bin/npx", "args": ["-y", "some-server"], "disabled": true } } } ``` The server will show as disconnected in the panel but remain in the config. ### Removing a Server To permanently remove a server: 1. Click **Edit Config** in the MCP Servers panel 2. Delete the entire server object from `mcpServers` 3. Save the file 4. The server disappears from the server list **Example:** ```json theme={null} { "mcpServers": { "context7": { /* ... */ }, // Remove this entire block to delete the server "server-to-remove": { "command": "/usr/local/bin/npx", "args": ["-y", "old-server"] }, "github": { /* ... */ } } } ``` ### Viewing Server Logs Check server activity and errors in the Activity Log: 1. Switch to the **Activity** tab in the bottom panel 2. Look for MCP-related log entries: ``` [15:36:34] [MCP Config] Found server: context7 (http) [15:36:34] [MCP Config] Found server: mastra (stdio) [15:36:35] [MCP:context7] Connected with 2 tools [15:36:37] [MCP:mastra] Connected with 10 tools [15:36:38] [MCP Registry] Active servers: 3 ``` Errors appear with red indicators: ``` [15:37:12] [MCP:github] Error: spawn /usr/local/bin/npx ENOENT ``` ## Popular MCP Servers ### Official Servers | Server | Type | Description | | ---------------------------------------------------- | ----- | ------------------------------------------- | | **@modelcontextprotocol/server-github** | Stdio | GitHub API integration (repos, issues, PRs) | | **@modelcontextprotocol/server-filesystem** | Stdio | File system read/write access | | **@modelcontextprotocol/server-sequential-thinking** | Stdio | Structured reasoning and problem-solving | | **@modelcontextprotocol/server-slack** | Stdio | Slack messaging integration | | **@modelcontextprotocol/server-postgres** | Stdio | PostgreSQL database queries | ### Community Servers | Server | Type | Description | | --------------------------- | ----- | --------------------------------------- | | **context7** | HTTP | Library documentation and code examples | | **@mastra/mcp-docs-server** | Stdio | Mastra.ai documentation and examples | Find more servers at the [Awesome MCP Servers](https://github.com/punkpeye/awesome-mcp-servers) repository and [modelcontextprotocol.io](https://modelcontextprotocol.io). ## Platform-Specific Configuration ### macOS/Linux Standard stdio server configuration: ```json theme={null} { "mcpServers": { "server-name": { "command": "/usr/local/bin/npx", "args": ["-y", "@package/mcp-server"], "env": { "PATH": "/usr/local/bin:/usr/bin:/bin" } } } } ``` ### Windows On Windows, `npx` is a batch script that requires shell access. Wrap with `cmd /c`: ```json theme={null} { "mcpServers": { "server-name": { "command": "cmd", "args": [ "/c", "npx", "-y", "@package/mcp-server" ] } } } ``` Or use PowerShell: ```json theme={null} { "mcpServers": { "server-name": { "command": "powershell", "args": [ "-Command", "npx -y @package/mcp-server" ] } } } ``` ## Security Considerations MCP servers run with your user permissions and may have network access. Only configure servers you trust. **Best Practices:** * **Review Server Code** - Understand what servers do before adding them * **Limit Permissions** - Some servers request file system or network access * **Secure API Keys** - Keep API keys private; don't commit `mcp.json` to git * **Monitor Logs** - Watch for unexpected behavior in the Activity Log * **Use HTTPS** - For remote servers, always use https\:// URLs * **Validate Sources** - Only install servers from trusted repositories **API Key Security:** ```json theme={null} { "mcpServers": { "context7": { "url": "https://mcp.context7.com/mcp", "headers": { // ❌ BAD: Don't commit this to git "CONTEXT7_API_KEY": "ctx7sk-real-key-here" } } } } ``` Consider using environment variables for sensitive values (support varies by server). ## Troubleshooting ### Server Won't Connect If a server shows disconnected in the panel: 1. **Check the configuration** * Click **Edit Config** and verify JSON syntax * Look for typos in server name, command, or URL * Validate all required fields are present 2. **Verify command path** (stdio servers) ```bash theme={null} which npx # macOS/Linux where npx # Windows ``` Use the full path shown in the config. 3. **Check environment** (stdio servers) * Ensure PATH includes necessary directories * Verify npm packages are installed globally or accessible 4. **Review logs** * Switch to Activity tab * Look for error messages from the server * Common errors: * `spawn ENOENT` - Command not found * `Connection refused` - URL incorrect (HTTP servers) * `Unauthorized` - Invalid API key (HTTP servers) 5. **Reload the server** * Click on the server * Click **Reload Server** button ### Server Connected But No Tools If a server shows "Connected" but 0 tools: 1. **Wait for initialization** - Some servers take 10-30 seconds to load tools 2. **Check stderr** - Look in Activity Log for startup errors 3. **Verify package** - Ensure the npm package name is correct 4. **Reload** - Click Reload Server to try again ### API Key Issues (HTTP Servers) If an HTTP server fails to connect: 1. **Check header format** ```json theme={null} "headers": { "CONTEXT7_API_KEY": "your-key-here" } ``` Header names must match what the server expects. 2. **Verify key validity** * Ensure the API key is active * Check it has proper permissions * Test with curl: ```bash theme={null} curl -H "CONTEXT7_API_KEY: your-key" https://mcp.context7.com/mcp ``` 3. **Check URL** * Confirm the full endpoint URL * Ensure it includes `/mcp` or correct path ### Configuration Errors If you get JSON parsing errors: 1. **Validate JSON syntax** * Use an online JSON validator * Common mistakes: missing commas, trailing commas, unquoted keys 2. **Check for typos** * `mcpServers` (not `mcpServer`) * Correct quotes (double quotes for JSON) 3. **Escape special characters** * Backslashes in Windows paths: `C:\\path\\to\\file` * Or use forward slashes: `C:/path/to/file` ### Server Crashes or Restarts If a server repeatedly disconnects: 1. **Check logs** for error patterns 2. **Update server package** ```bash theme={null} npm update -g @package/mcp-server ``` 3. **Report to server maintainers** with error logs ## Next Steps Learn about the file browser and workspace organization Explore command execution with the integrated terminal Tips for using MCP servers effectively in your workflow Solutions to common MCP server issues *** *For assistance with MCP configuration, contact our support team at [support@getcalmo.com](mailto:support@getcalmo.com).* # Calmo Bridge IDE Source: https://docs.getcalmo.com/local-bridge/overview The AI-Native IDE for SREs that brings Calmo AI directly into your local development environment with integrated terminal, file editing, and chat # Calmo Bridge IDE Calmo Bridge IDE is an AI-native integrated development environment designed specifically for SREs that connects your local machine to the Calmo AI platform. It combines a powerful terminal, file browser, code editor, and AI chat interface in one seamless workspace—enabling you to collaborate with AI agents while maintaining complete control over your local environment. ## Overview The Calmo Bridge IDE transforms how you interact with Kubernetes and cloud infrastructure by providing a complete AI-powered development environment with: * **Integrated Terminal** - Execute commands with real-time output streaming and shell integration * **File Browser & Editor** - Navigate and edit workspace files with syntax highlighting * **Side-by-Side Chat** - Converse with Calmo AI without leaving your development environment * **Human-in-the-Loop Approval** - Review and approve commands before they execute * **MCP Server Integration** - Extend Calmo's capabilities with Model Context Protocol servers * **Visual Workspace Management** - Organize projects with categorized workspace types Calmo Bridge IDE integrated workspace showing terminal, file editor, and chat ## Key Features Real-time command execution with shell integration. See output as it happens, with full support for colors, progress bars, and interactive commands. Navigate your workspace files in a tree view. Open, edit, and save files with syntax highlighting—all within the Bridge. Review every command before it runs. Deny risky operations or set up auto-approve patterns for trusted commands. Chat with Calmo while viewing terminal output and editing files. No context switching between windows. Connect external MCP servers for documentation lookup, sequential thinking, and specialized tools. Track all commands, view execution history, and monitor real-time bridge activity in dedicated panels. ## System Requirements | Platform | Supported | | ----------- | ----------------------------------- | | **macOS** | ✅ macOS 11+ (Intel & Apple Silicon) | | **Windows** | ✅ Windows 10/11 | | **Linux** | ✅ Ubuntu & CentOS | **Browser Compatibility:** * Chrome, Firefox, Edge (recommended) * Safari and Brave have limited support ## Installation Download the latest version from [app.getcalmo.com/integrations/bridge](https://app.getcalmo.com/integrations/bridge) or click **Connect Local Bridge** in any chat. **macOS:** * Open the downloaded `.dmg` file * Drag Calmo Bridge IDE to your Applications folder * Launch from Applications or Spotlight * If prompted about an unidentified developer, go to System Preferences → Security & Privacy → Open Anyway **Windows:** * Run the downloaded installer * Follow the installation wizard * Launch from Start Menu **Linux:** * Extract the downloaded package * Run the installer script or AppImage * Launch from applications menu On first launch, you'll see a 4-step welcome wizard that guides you through: * Connecting to Calmo * Setting up workspaces * Configuring MCP servers (optional) You can skip steps and configure them later from Settings. ## Welcome Wizard The first time you launch Calmo Bridge IDE, a welcome screen introduces the key features: Welcome screen showing Calmo Bridge IDE features The welcome screen highlights: * **Secure Command Execution** - Run kubectl, git, npm, and other CLI tools directly from Calmo with your approval * **Local Workspace Access** - Give Calmo context about your projects, repositories, and files * **Human-in-the-Loop** - Review and approve every command before execution. You're always in control * **MCP Integration** - Extend capabilities with Model Context Protocol servers * **Real-Time Logs** - Monitor bridge activity and command execution in real-time * **Seamless Integration** - Works with your existing workflows and tools Click **Get Started** to begin the setup wizard, which guides you through: * Connecting to Calmo (pairing) * Setting up workspaces * Configuring MCP servers (optional) You can skip steps and configure them later from Settings. ## Main Interface Once connected, Calmo Bridge IDE provides a three-panel workspace: ### Layout Overview ``` ┌─────────────────────────────────────────────────────────────┐ │ ⚙️ 📱 Calmo Bridge IDE 🟢 Connected │ ├──────────┬──────────────────────────┬────────────────────────┤ │ │ │ │ │ 📁 │ 📄 file.yaml × │ 💬 Chat │ │ Work- │ ┌────────────────────┐ │ ┌──────────────────┐ │ │ spaces │ │ │ │ │ │ │ │ │ │ File Editor │ │ │ Agent Output │ │ │ ├─ proj │ │ (Syntax │ │ │ │ │ │ ├─ repo │ │ Highlighting) │ │ └──────────────────┘ │ │ │ │ │ │ │ │ 🔌 MCP │ └────────────────────┘ │ ⚠️ Command Approval │ │ Servers │ ────────────────────── │ ┌──────────────────┐ │ │ │ ▼ Terminal ▼ Activity │ │ kubectl get pods │ │ │ ├ ctx7 │ ┌────────────────────┐ │ │ [Deny] [Allow] │ │ │ ├ github│ │ $ command output │ │ └──────────────────┘ │ │ │ │ ✓ Command complete │ │ │ └──────────┴──────────────────────────┴────────────────────────┘ ``` ### Left Sidebar: Navigation **Workspaces Section:** * Expandable tree view of your local projects * File and folder icons * Quick navigation to any workspace file * **+ button** to add new workspaces **MCP Servers Section:** * List of connected MCP servers * Server type badges (http/stdio) * Tool count for each server * Click to view server details * **Edit Config** button to modify configuration ### Center Panel: Editor & Terminal **File Editor (Top):** * Tabbed interface for multiple open files * Syntax highlighting for all major languages * Line numbers and code folding * Edit workspace files directly **Terminal & Activity (Bottom):** * **Terminal tab** - Real-time command output with shell prompt * **Activity tab** - Command history with execution status * Resizable split view * Command completion indicators ### Right Sidebar: Chat & Status **Chat Interface:** * Full conversation with Calmo AI * Message history with timestamps * Input field for new messages * Context indicators showing what Calmo can see **Command Approval Panel:** * Pending commands awaiting approval * Risk level badges (LOW RISK, MEDIUM, HIGH) * Three action buttons: Deny, Always, Allow * Command queue counter **Bridge Status:** * Connection status indicator (green = connected) * Device code display * Server URL * Disconnect button * Settings access ## Pairing Your Device After installation, pair your bridge with your Calmo account: In your Calmo chat, click the device selector and select **Generate Pairing Code**. A 6-digit code will appear. In the Calmo Bridge IDE app, you'll see a pairing modal with: * **6 empty digit boxes** for entering the pairing code * **"Open Pairing Page"** link - Opens the Calmo integration page if you need to generate a code * **Bridge Status** - Shows "Initializing..." then "Waiting for Code" * **Cancel** button - Dismiss the pairing modal Enter the 6-digit code from the web interface. Pairing code entry modal with 6-digit input boxes Once paired, the Bridge Status panel displays: * 🟢 Green **Connected** status badge at the top * **Device Code** - Your unique identifier (e.g., 224768) * **Server URL** - [https://app.getcalmo.com](https://app.getcalmo.com) * **Disconnect** button to unpair the device * **Pending Commands** section showing "All clear" with "Allowed" badge The web interface will also show your device as connected, and you can now use all Calmo Bridge IDE features in your Calmo chats. Bridge Status panel showing connected state with device code Pairing codes expire after **10 minutes**. If it expires, generate a new code from the web interface. ## Using the Integrated Workspace The power of Calmo Bridge IDE comes from its integrated environment. Here's a typical workflow: ### Workflow Example: Debugging a Kubernetes Issue 1. **Chat with Calmo** (right panel): "Hey, check what pods are failing in the staging namespace" 2. **Approve Command** (Command Approval panel): ``` kubectl get pods -n staging ``` Click **Allow** to execute 3. **View Output** (Terminal panel): ``` NAME READY STATUS RESTARTS api-server-7d4f8b-x9k2p 0/1 CrashLoopBackOff 5 ``` 4. **Continue Conversation** (Chat): "Show me the logs for that api-server pod" 5. **Approve** → See logs in terminal → **Continue debugging** All without leaving the Bridge IDE window or switching between applications. ### Working with Files 1. **Browse** workspace files in the left sidebar 2. **Click** a file to open it in the editor 3. **Ask Calmo** about the file: "What does this configuration do?" 4. **Edit** the file directly if needed 5. **Save** changes with Cmd/Ctrl+S Calmo can reference open files in your conversation, providing context-aware assistance. ## Managing Workspaces Workspaces give Calmo context about your local projects. ### Adding a Workspace Click the **+** button in the Workspaces section: Add Workspace modal with categorized workspace types Choose a workspace type for better organization: * **🎨 Git Repositories** - Access full git history and repository structure * **🏗️ Terraform Projects** - Infrastructure as code configurations and modules * **🚀 CI/CD Pipelines** - GitHub Actions, Jenkins, or other pipeline definitions Or simply **Browse Directories** to add any folder. The modal shows your **Current Workspaces** list so you can see what's already added. ### Workspace Best Practices * Add specific project directories, not your entire home folder * Use categorization to help Calmo understand project types * Remove workspaces you no longer need * Each workspace appears as an expandable folder in the sidebar ## Command Approval Workflow Every command Calmo wants to run goes through your approval: Command Approval panel showing pending commands with risk levels ### Approval Options | Button | Action | Use When | | ---------- | ------------------------- | ------------------------------------------------------- | | **Deny** | Reject the command | Command is incorrect or too risky | | **Always** | Auto-approve this pattern | Trusted, frequently-used commands (e.g., `kubectl get`) | | **Allow** | Approve this once | Command is fine, but you want to review it next time | ### Risk Levels Commands are automatically classified: * 🟢 **LOW RISK** - Safe read operations (`kubectl get`, `git status`, `ls`) * 🟡 **MEDIUM RISK** - Write operations (`kubectl delete pod`, `git commit`) * 🔴 **HIGH RISK** - Potentially dangerous (`kubectl delete deployment`, `rm -rf`, `terraform destroy`) Always review commands before approving, especially those marked MEDIUM or HIGH risk. Understand what they'll do to your system. ## MCP Server Management ### Viewing MCP Servers The MCP Servers panel (left sidebar) shows all configured servers: MCP Servers panel showing connected servers Each server displays: * Server name * Type badge (http or stdio) * Tool count (e.g., "2 tools available") * Connection status (expandable for details) ### Server Details Click on a server to view its details: MCP server detail view with server information and controls The detail panel shows: * **Type** - http or stdio transport * **Status** - Connected/Disconnected * **Tools Available** - Count and list of tools * **Reload Server** button - Restart the server * **Edit Config** button - Open mcp.json for editing ## Activity Monitoring ### Terminal Panel Real-time command output with shell integration: Terminal showing command execution with shell prompt * Shell prompt showing current directory * Real-time output streaming * Color and formatting support * Command completion indicators (✓ Command completed) ### Activity Panel View recent command history: Activity panel showing command history with status indicators Each entry shows: * ✅ **Auto-approved** - Matched an always-allow pattern * ✅ **Approved** - Manually approved by you * ❌ **Denied** - Rejected by you * Timestamp and exit status (e.g., "1d ago Exit 1") * Full command (e.g., "kubectl get ns | grep argo") * Click to expand for full output ## Security Calmo Bridge IDE is designed with security as the top priority: * **Human-in-the-Loop** - You approve every command before execution (unless explicitly auto-approved) * **Local Execution Only** - Commands run with your user permissions, not as root * **No Internet Exposure** - Bridge IDE doesn't expose your system to the internet * **Secure Pairing** - Time-limited 6-digit codes ensure only authorized sessions connect * **Complete Audit Trail** - Every command and action is logged in the Activity panel * **Sandboxed Workspaces** - Calmo only has access to directories you explicitly add * **MCP Server Isolation** - External servers run in separate processes with limited permissions Never auto-approve destructive commands like `rm -rf`, `kubectl delete deployment`, or `terraform destroy`. Always review these manually. ## Menu Bar / System Tray When you close the Bridge IDE window, it continues running in the background: * **macOS**: Bridge IDE icon appears in the menu bar (top right) * **Windows**: Bridge IDE icon appears in the system tray (bottom right) * **Linux**: Icon appears in the notification area Click the icon to: * Reopen the main window * View connection status * Access quick settings * Quit the application completely The bridge maintains its connection while minimized. Closing the window minimizes to the menu bar/tray. The bridge keeps running and stays connected to Calmo. ## Keyboard Shortcuts | Action | macOS | Windows/Linux | | ------------------- | ------ | ------------- | | **Save File** | Cmd+S | Ctrl+S | | **New Tab** | Cmd+T | Ctrl+T | | **Close Tab** | Cmd+W | Ctrl+W | | **Toggle Terminal** | Cmd+\` | Ctrl+\` | | **Focus Chat** | Cmd+/ | Ctrl+/ | | **Open Settings** | Cmd+, | Ctrl+, | ## Next Steps Learn about the file browser, editor, and workspace organization Explore command execution capabilities and the integrated terminal Configure MCP servers to extend Calmo's capabilities Security recommendations and workflow optimization tips Common issues and solutions for the integrated environment Technical details about how the Bridge IDE works under the hood *** *For assistance with Calmo Bridge IDE, contact our support team at [support@getcalmo.com](mailto:support@getcalmo.com).* # Troubleshooting Source: https://docs.getcalmo.com/local-bridge/troubleshooting Common issues and solutions for Calmo Bridge IDE # Troubleshooting This guide covers common issues with Calmo Bridge IDE and how to resolve them. ## Connection Issues ### Bridge Shows "DISCONNECTED" Ensure your machine has internet access and can reach `app.getcalmo.com`. Test with: ```bash theme={null} curl -I https://app.getcalmo.com ``` The Server URL should be `https://app.getcalmo.com/` (default). If you're using a custom deployment, verify the URL is correct. 1. Quit the bridge completely (don't just close the window) 2. Relaunch from Applications/Start Menu 3. Try connecting again Some firewalls or VPNs may block WebSocket connections. Try: * Temporarily disabling the firewall * Disconnecting from VPN * Adding an exception for Calmo Bridge IDE ### Pairing Code Expired Pairing codes expire after **10 minutes**. If your code expired: 1. Go to [app.getcalmo.com/integrations/bridge](https://app.getcalmo.com/integrations/bridge) 2. Click **Generate New Code** 3. Enter the new code in the bridge app ### Device Not Appearing in Web Interface If your paired device doesn't show as connected: 1. Check the bridge app shows a green status with device code 2. Refresh the web page 3. Click the refresh icon next to "Connected Devices" 4. Try unpairing and re-pairing the device ### "Enter Code" State Persists If the bridge is stuck showing "ENTER CODE" after pairing: 1. Close and reopen the bridge IDE window 2. Check the Logs tab for error messages 3. Try generating a new pairing code ## Command Execution Issues ### Command Hangs / No Response The command might be waiting for approval. Check the **Pending Commands** section in the Bridge tab. Some commands may time out if they take too long. For long-running operations: * Use commands with built-in output streaming * Consider breaking into smaller operations If a command process is stuck: * Check the Logs tab for errors * The bridge may need to be restarted ### "Command Not Found" Errors ``` Error: command not found: kubectl ``` **Solutions:** 1. **Verify installation** ```bash theme={null} which kubectl ``` 2. **Check PATH** The bridge inherits your shell's PATH. Ensure the command is in your PATH: ```bash theme={null} echo $PATH ``` 3. **Use full path** Ask Calmo to use the full path: ```bash theme={null} /usr/local/bin/kubectl get pods ``` ### Permission Denied ``` Error: Permission denied ``` **Solutions:** 1. Check file/directory permissions 2. Commands run with your user permissions—not root 3. For operations requiring sudo, the bridge will need appropriate setup ### Command Denied But You Didn't Deny It This can happen if: * The web session timed out * You denied it from another browser tab * The bridge lost connection during approval Check the command history and try again. ## MCP Server Issues ### Server Won't Start Verify the executable exists: ```bash theme={null} which npx # Should show: /usr/local/bin/npx ``` Use the full path in your config: ```json theme={null} { "command": "/usr/local/bin/npx" } ``` Ensure the package exists and can be installed: ```bash theme={null} npx -y @mastra/mcp-docs-server --help ``` Look at the Logs tab for specific error messages: ``` [MCP:server-name] stderr: Error: Cannot find module... ``` ### Server Connected But Shows 0 Tools 1. **Wait for initialization** - Some servers take 10-30 seconds to load 2. **Check stderr** - Server may have logged initialization errors 3. **Reload servers** - Click **Reload Servers** in MCP Tools tab 4. **Verify package name** - Ensure you have the correct npm package ### HTTP Server Connection Failed For HTTP MCP servers: 1. **Check URL format** - Include protocol (`https://`) and full path 2. **Verify API key** - Ensure key is valid and has correct permissions 3. **Test endpoint** ```bash theme={null} curl -H "Authorization: Bearer YOUR_KEY" https://server-url/mcp ``` ### Windows: npx Not Working On Windows, npx needs shell access. Wrap with `cmd /c`: ```json theme={null} { "command": "cmd", "args": ["/c", "npx", "-y", "@package/name"] } ``` ## UI Navigation Issues ### Can't Find Command History If you can't locate past executed commands: 1. **Check the Activity tab** - Bottom panel has two tabs: Terminal and Activity 2. **Switch tabs** - Click "Activity" to see command history 3. **Expand commands** - Click the arrow next to any command to see full output 4. **Scroll** - History may extend beyond visible area ### Chat Interface Missing If the chat panel isn't visible: 1. **Check right sidebar** - Chat should be in the right-most panel 2. **Expand sidebar** - Drag the divider if it's collapsed 3. **Restart bridge** - Close and reopen the application 4. **Check window size** - Ensure window is wide enough to show all panels ### Workspace Tree Collapsed If you can't see your workspace files: 1. **Expand Workspaces section** - Click the arrow next to "Workspaces" in left sidebar 2. **Expand folders** - Click folder names to expand subfolders 3. **Check if workspaces added** - "3 workspaces" should show at bottom of sidebar 4. **Add workspace** - Click + button if no workspaces configured ### Terminal Panel Not Showing If you don't see the terminal: 1. **Check bottom panel** - Terminal should be in the center-bottom area 2. **Click Terminal tab** - Ensure "Terminal" tab is selected (not "Activity") 3. **Resize** - Drag the divider between editor and terminal to expand 4. **Toggle** - Use Cmd/Ctrl+\` to show/hide terminal ### File Editor Won't Open If the file editor doesn't appear: 1. **Click a file** - Select a file in the workspace tree 2. **Check center panel** - Editor should open in the center-top area 3. **Look for tabs** - File name should appear in a tab 4. **Close other tabs** - If too many tabs open, close some with × ## Terminal Issues ### Terminal Output Not Showing If commands execute but output doesn't appear: 1. **Check Terminal tab** - Ensure you're on "Terminal" (not "Activity") 2. **Scroll down** - Output might be below the visible area 3. **Wait for completion** - Some commands take time before showing output 4. **Check Activity tab** - Full output is always saved there ### Command Stuck in Terminal If a command seems frozen: 1. **Check pending approval** - Look at Command Approval panel (top right) 2. **Approve the command** - Click Allow/Deny/Always 3. **Long-running process** - Some commands (like `npm install`) take time 4. **Interactive prompt** - Command might be waiting for input ### Terminal Colors/Formatting Broken If terminal output lacks colors or formatting: 1. **Restart bridge** - Close and reopen to reset terminal 2. **Check command** - Some commands don't use colors 3. **Environment** - Ensure TERM environment variable is set ### Can't Scroll Terminal Output If terminal output is cut off: 1. **Use scroll bar** - Right side of terminal panel 2. **Resize panel** - Drag divider to make terminal larger 3. **Check Activity tab** - Full output always available there 4. **Copy output** - Click copy icon to get full text ## File Editor Issues ### Can't Edit Files If file editor is read-only or won't save changes: 1. **Check permissions** - Ensure file is writable ```bash theme={null} ls -la path/to/file ``` 2. **Verify workspace** - File must be in a configured workspace 3. **Check file type** - Binary files show preview instead of editor 4. **Restart bridge** - Close and reopen the application ### File Changes Not Saving If edits don't persist: 1. **Save manually** - Press Cmd/Ctrl+S 2. **Check disk space** - Ensure you have free space ```bash theme={null} df -h ``` 3. **Verify write permissions** - File might be read-only 4. **Look for errors** - Check Activity Log for save errors ### File Changes Not Reflected If saved changes aren't visible: 1. **Check auto-save** - Changes should save automatically 2. **Refresh file** - Close tab and reopen from workspace tree 3. **Check external edits** - Another program may have modified it 4. **Verify save** - Look for unsaved indicator (• dot in tab) ### Syntax Highlighting Not Working If code appears without colors: 1. **Check file extension** - `.js`, `.py`, `.yaml` etc. trigger highlighting 2. **Reopen file** - Close tab and open again 3. **Language detection** - Some files may not be auto-detected 4. **Restart bridge** - Reload language parsers ### Too Many Tabs Open If editor becomes cluttered: 1. **Close tabs** - Click × on each tab or Cmd/Ctrl+W 2. **Close all** - Right-click any tab → Close All 3. **Close others** - Right-click → Close Others 4. **Restart bridge** - Clears all tabs on reopen ## Workspace Issues ### Workspace Not Appearing If workspace doesn't show in sidebar after adding: 1. **Check permissions** - Ensure directory is readable ```bash theme={null} ls -la /path/to/workspace ``` 2. **Refresh** - Click refresh icon or restart bridge 3. **Verify path** - Confirm directory exists 4. **Check logs** - Activity Log may show errors ### Can't Add Workspace If the Add Workspace dialog won't accept a directory: 1. **Check path** - Ensure directory exists 2. **Permissions** - You must have read access 3. **Already added** - Check "Current Workspaces" list for duplicates 4. **Path length** - Very long paths may cause issues ### Files Not Visible in Tree If workspace is added but files don't appear: 1. **Expand folder** - Click arrow next to workspace name 2. **Permissions** - Ensure read access to subdirectories 3. **Hidden files** - Dot-files may not show 4. **Refresh** - Restart bridge to reload file tree ### Wrong Files Showing If unexpected files appear in workspace: 1. **Check workspace path** - May have added parent directory 2. **Remove and re-add** - Delete workspace and add correct path 3. **Git ignore** - Some files may be filtered ## Installation Issues ### macOS: Terminal Features Not Working If terminal functionality isn't working after installation on macOS: The IDE requires XCode Command Line Tools for terminal support: ```bash theme={null} xcode-select --install ``` Follow the prompts to complete installation, then restart the bridge IDE. On Apple Silicon (M1/M2/M3), ensure you're running the native ARM64 version: 1. Quit the bridge 2. Download the latest `.dmg` from the web interface 3. Look for `arm64` or `universal` in the filename 4. Reinstall and restart Sometimes a clean reinstall fixes native module issues: 1. Quit the bridge IDE completely 2. Delete from Applications folder 3. Clear application data: ```bash theme={null} rm -rf ~/Library/Application\ Support/Calmo\ Bridge\ IDE/ ``` 4. Download and reinstall from the web interface ### Windows: Bridge Won't Start If the bridge IDE fails to launch on Windows: Windows requires Visual C++ Redistributable: 1. Download from [Microsoft](https://aka.ms/vs/17/release/vc_redist.x64.exe) 2. Install the package 3. Restart your computer 4. Launch the bridge again Some antivirus software blocks native modules: 1. Add an exception for `Calmo Bridge IDE.exe` 2. Allow network connections for the application 3. Restart the bridge IDE ### Linux: Terminal Commands Fail On Linux, ensure you have basic build tools installed: ```bash theme={null} # Debian/Ubuntu sudo apt-get install build-essential # Fedora/RHEL sudo dnf install gcc-c++ make # Arch sudo pacman -S base-devel ``` Then restart the bridge IDE. ## Workspace Issues ### Workspace Not Accessible If commands fail in a configured workspace: 1. **Verify path exists** ```bash theme={null} ls -la /path/to/workspace ``` 2. **Check permissions** - Ensure you have read access to the directory 3. **Remove and re-add** - Delete the workspace and add it again ### Changes Not Reflected If file changes aren't visible: * Calmo doesn't cache workspace contents * Changes should be immediately available * Try running `ls` in the workspace to verify ## Performance Issues ### Bridge Using High CPU 1. **Check running processes** - A command might still be running 2. **Clear logs** - Large log history can impact performance 3. **Restart bridge IDE** - May clear accumulated state ### Slow Command Execution 1. **Check network latency** - Commands route through the server 2. **Simplify commands** - Break complex operations into steps 3. **Limit output** - Use flags like `--tail=100` to limit log output ### Memory Usage High 1. **Clear command history** - Click **Clear** in the Bridge tab 2. **Clear logs** - Click **Clear** in the Logs tab 3. **Restart bridge IDE** - Releases accumulated memory ## Browser Issues ### Safari/Brave Compatibility Safari and Brave have limited WebSocket support. For best experience: * Use **Chrome**, **Firefox**, or **Edge** * Ensure browser is up to date ### Commands Not Appearing in Chat If approved commands don't show results in the chat: 1. Check the browser console for errors 2. Refresh the Calmo web page 3. Verify the bridge still shows "Connected" ## Recovery Steps ### Full Reset If nothing else works: 1. **Quit bridge IDE completely** * macOS: Right-click menu bar icon → Quit * Windows: Right-click tray icon → Exit 2. **Clear configuration** (optional) ```bash theme={null} # macOS rm -rf ~/Library/Application\ Support/Calmo\ Bridge\ IDE/ # Windows rmdir /s %APPDATA%\Calmo\ Bridge\ IDE ``` 3. **Reinstall bridge IDE** * Download fresh from the web interface * Reinstall the application 4. **Pair again** * Generate new pairing code * Complete pairing process ### Unpair and Re-pair 1. Go to [app.getcalmo.com/integrations/bridge](https://app.getcalmo.com/integrations/bridge) 2. Find your device under "Connected Devices" 3. Click the delete icon to remove it 4. Generate a new pairing code 5. Enter the code in your bridge app ## Getting Help ### Information to Provide When contacting support, include: * **Bridge IDE version** - Shown in the app title bar * **Operating system** - macOS/Windows version * **Error messages** - Copy from Logs tab * **Steps to reproduce** - What you were doing when it failed ### Log Export Copy relevant logs from the **Logs** tab to share with support. ### Contact Support Email: **[support@getcalmo.com](mailto:support@getcalmo.com)** Include: * Description of the issue * Screenshots if applicable * Relevant log excerpts *** *For additional help, contact our support team at [support@getcalmo.com](mailto:support@getcalmo.com).* # Workspace Management Source: https://docs.getcalmo.com/local-bridge/workspace-management Navigate, organize, and edit your local projects with Calmo Bridge IDE integrated file browser and editor # Workspace Management Calmo Bridge IDE includes a complete file browsing and editing environment, allowing you to navigate your projects, view files, and make edits—all without leaving the application. This integrated workspace helps Calmo understand your project structure and provide better context-aware assistance. ## Overview The workspace features include: * **Visual File Browser** - Tree-view navigation of your local projects * **Code Editor** - Edit files with syntax highlighting and save directly * **Workspace Organization** - Categorize projects by type (Git, Terraform, CI/CD) * **Multi-Workspace Support** - Work with multiple projects simultaneously * **Settings Panel** - Manage bridge configuration and connection Workspace file browser showing expandable project folders ## File Browser ### Navigation The left sidebar provides a tree-view file browser for all your configured workspaces: **Features:** * **Expandable Folders** - Click folder names to expand/collapse * **File Type Icons** - Visual indicators for different file types * **Multiple Workspaces** - Each workspace appears as a top-level folder * **Quick Access** - Click any file to open it in the editor * **Nested Navigation** - Browse deep directory structures **Example Structure:** ``` 📁 Workspaces ├─ 📁 calmo-demos │ ├─ 📁 src │ ├─ 📄 package.json │ └─ 📄 README.md ├─ 📁 calmo-ci │ ├─ 📁 environments │ │ ├─ 📁 prod │ │ └─ 📁 staging │ └─ 📄 kustomization.yaml └─ 📁 calmo-gmail └─ 📁 terraform ``` ### File Operations **Opening Files:** * Click any file in the tree to open it in the editor * Files open in new tabs in the center panel * Already-open files become focused when clicked again **Supported File Types:** * All text-based files (code, config, markdown, etc.) * Syntax highlighting for 100+ languages * Binary files show a preview indicator Files edited by Calmo (via chat commands) automatically refresh in the editor if they're open. ## Adding Workspaces ### Workspace Types Calmo Bridge IDE organizes workspaces into categories to help the AI understand your project context: Add Workspace modal showing categorized workspace types Click the **+** button next to "Workspaces" to open the Add Workspace dialog. ### Workspace Categories Full git history and repository structure. Best for: * Application codebases * Monorepos * Open source projects Infrastructure as code configurations and modules. Best for: * Cloud infrastructure * Terraform workspaces * IaC modules GitHub Actions, Jenkins, or other pipeline definitions. Best for: * Deployment configs * Workflow definitions * Build scripts ### Adding a Workspace Click the **+** button in the Workspaces section of the left sidebar Select a category that best describes your project: * 🎨 Git Repositories * 🏗️ Terraform Projects * 🚀 CI/CD Pipelines Or skip this and browse directly Click **Browse Directories** and select the folder you want to add The workspace appears in the "Current Workspaces" list with a checkmark. Close the dialog when done. **Current Workspaces List:** The bottom of the Add Workspace dialog shows all currently configured workspaces: ``` ✓ /Users/pankaj/local_code/calmo-demos ✓ /Users/pankaj/local_code/calmo-ci ✓ /Users/pankaj/local_code/calmo-gmail ``` This helps you avoid adding the same directory twice. ## File Editor ### Opening and Editing Files File editor with syntax highlighting and multiple tabs **Editor Features:** * **Tabbed Interface** - Multiple files open in separate tabs * **Syntax Highlighting** - Automatic language detection * **Line Numbers** - For easy reference in conversations * **Code Folding** - Collapse/expand code blocks * **Find & Replace** - Cmd/Ctrl+F to search * **Auto-Save** - Changes save automatically (or Cmd/Ctrl+S for manual save) ### Supported Languages The editor provides syntax highlighting for: * **Web**: JavaScript, TypeScript, HTML, CSS, React (JSX/TSX) * **Backend**: Python, Go, Java, C#, Ruby, PHP * **Config**: YAML, JSON, TOML, XML * **Infrastructure**: Terraform (HCL), Dockerfile, Kubernetes manifests * **Shell**: Bash, Zsh, PowerShell * **Database**: SQL, GraphQL * **Markdown**: README files, documentation ### Working with Tabs | Action | Shortcut (macOS) | Shortcut (Windows/Linux) | | ---------------- | --------------------------- | --------------------------- | | **Close Tab** | Cmd+W | Ctrl+W | | **Next Tab** | Cmd+Shift+] | Ctrl+Tab | | **Previous Tab** | Cmd+Shift+\[ | Ctrl+Shift+Tab | | **Close All** | Right-click tab → Close All | Right-click tab → Close All | **Tab Indicators:** * 📄 **filename.yaml** - File name in tab * **×** - Close button * **•** (dot) - Unsaved changes * **Lock icon** - Read-only file ### Editing Workflow **Typical Flow:** 1. **Browse** to find the file in the workspace tree 2. **Click** to open in the editor 3. **Edit** the file as needed 4. **Save** with Cmd/Ctrl+S (or auto-save kicks in) 5. **Ask Calmo** about the changes or run related commands **Example:** "I just updated the deployment.yaml. Can you apply it to the staging cluster?" Calmo sees the file in your workspace and can reference it in commands. ## Integration with Chat ### File Context When you have files open in the editor, Calmo can: * **Reference file contents** in responses * **Suggest edits** based on what you're working on * **Generate commands** related to the open files * **Understand project structure** from your workspace layout **Example Conversation:** ``` You: "What does this kustomization.yaml do?" [You have kustomization.yaml open in editor] Calmo: "Looking at your kustomization.yaml (open in your editor), it's configuring..." ``` ### File Editing by Calmo If Calmo suggests file changes and you approve: * Changes are made to the file on disk * If the file is open in your editor, it **refreshes automatically** * You'll see the updated content * Undo/redo history is preserved Calmo can only edit files within configured workspaces. Files outside workspaces are read-only. ## Settings Panel ### Accessing Settings The Settings panel appears in the right sidebar when you click the settings icon: Settings panel showing bridge status and configuration ### Bridge Status **Information Displayed:** * **Bridge Status** - Connection state (Connected/Disconnected) * **Device Code** - Your unique device identifier (e.g., 224768) * **Server URL** - The Calmo server you're connected to ([https://app.getcalmo.com](https://app.getcalmo.com)) * **Disconnect Button** - Unpair the device **Status Indicators:** * 🟢 **Connected** - Active connection to Calmo * 🟡 **Connecting** - Attempting to connect * 🔴 **Disconnected** - No active connection * 🟠 **Waiting for Code** - Ready to pair ### Pending Commands Summary The settings panel also shows a summary of pending commands: ``` Pending Commands 🔔 All clear ✅ Allowed ``` * **All clear** - No commands waiting for approval * **N commands in queue** - Commands awaiting your review * **Allowed** - Auto-approval is active for some patterns Click to jump to the Command Approval panel. ## MCP Servers Panel ### Server List The MCP Servers section (below Workspaces in left sidebar) shows all configured servers: **Display Format:** ``` 🔌 MCP Servers ↻ Servers: 6 Tools: 64 > 🟢 ArgoCD Offline 60mp > 🟢 context7 2 > ⚪ GitHub Offline 51 > ⚪ Kubernetes Offline 5emp > 🟢 mastra 10 > 🟢 sequential-thinking 1 ``` **Information Shown:** * **Server name** - Configured identifier (e.g., ArgoCD, context7, GitHub) * **Connection status** - Green dot (🟢) = connected, Gray dot (⚪) = offline/disconnected * **Tool count** - Number of tools provided (e.g., "2", "51", "60mp") * **Status labels** - "Offline" shown for disconnected servers * **Type badge** - (http) or (stdio) when expanded ### Server Details Click on any server to view its detail panel: MCP server detail view showing server information **Detail Panel Contents:** **Server Information:** * **Type** - http or stdio * **Status** - Connected/Disconnected/Error * **Tools Available** - Count and expandable list **Available Tools:** * "2 tools provided by this server" (expandable) * Click to see tool names and descriptions **Action Buttons:** * **Reload Server** - Restart the server connection * **Edit Config** - Open mcp.json in the editor ### Managing Servers **Reload a Server:** 1. Click the server in the list 2. Click **Reload Server** button 3. Wait for reconnection **Edit Configuration:** 1. Click **Edit Config** (either in server detail or bottom of MCP panel) 2. The `mcp.json` file opens in the editor 3. Make changes 4. Save the file 5. Servers auto-reload when config changes **Refresh All Servers:** * Click the **↻** refresh icon next to "MCP Servers" * All servers will reconnect ## Workspace Best Practices ### Organization **Do:** * ✅ Add specific project directories * ✅ Use workspace categories appropriately * ✅ Keep workspace count manageable (\< 10 is ideal) * ✅ Remove workspaces when projects are archived **Don't:** * ❌ Add your entire home directory * ❌ Add system directories like `/etc` or `/var` * ❌ Duplicate workspaces (same directory added twice) * ❌ Add unrelated files to project directories ### File Editing **Tips:** * **Save frequently** - Even with auto-save, Cmd/Ctrl+S is a good habit * **Review changes** - Before asking Calmo to deploy, review your edits * **Use version control** - Keep files in git; the editor doesn't have undo history across sessions * **Test locally** - Edit → Save → Test before deploying **When to Edit in Bridge IDE vs. Full IDE:** **Use Bridge IDE editor for:** * Quick config tweaks * Viewing files during chat * Small changes suggested by Calmo * Files you want to reference in conversation **Use your full IDE for:** * Large refactorings * Complex multi-file changes * Debugging sessions * Long coding sessions The Bridge IDE editor is designed for quick edits and AI collaboration, not as a full IDE replacement. ## Keyboard Shortcuts ### File Browser | Action | macOS | Windows/Linux | | -------------------------- | ------------ | ------------- | | **Expand/Collapse Folder** | Click or →/← | Click or →/← | | **Navigate** | ↑/↓ | ↑/↓ | | **Open File** | Enter | Enter | | **Add Workspace** | Cmd+Shift+O | Ctrl+Shift+O | ### Editor | Action | macOS | Windows/Linux | | ---------------- | ----- | ------------- | | **Save** | Cmd+S | Ctrl+S | | **Find** | Cmd+F | Ctrl+F | | **Replace** | Cmd+H | Ctrl+H | | **Go to Line** | Cmd+G | Ctrl+G | | **Comment Line** | Cmd+/ | Ctrl+/ | | **Close Tab** | Cmd+W | Ctrl+W | ## Troubleshooting ### Workspace Not Appearing If a workspace doesn't show in the sidebar after adding: 1. **Check permissions** - Ensure the directory is readable 2. **Refresh** - Close and reopen the bridge IDE 3. **Verify path** - Confirm the directory exists at the path you added 4. **Check logs** - Look for errors in the Activity Log ### Files Not Opening If clicking a file doesn't open it: 1. **Check file size** - Very large files (> 10MB) may not open 2. **Binary files** - Non-text files show a preview instead of opening 3. **Permissions** - Ensure you have read access to the file ### Editor Changes Not Saving If edits aren't persisting: 1. **Check write permissions** - Ensure the file isn't read-only 2. **Save manually** - Try Cmd/Ctrl+S 3. **Check disk space** - Ensure you have free space 4. **Restart bridge IDE** - Close and reopen the application ### MCP Server Won't Connect If a server shows disconnected: 1. **Check config** - Open mcp.json and verify syntax 2. **Reload server** - Use the Reload Server button 3. **Check logs** - Look for error messages in Activity Log 4. **Verify command** - For stdio servers, ensure the command exists ## Next Steps Learn about executing commands and using the integrated terminal Detailed guide to configuring and managing MCP servers Workflow tips for using the integrated environment effectively Solutions to common workspace and editor issues *** *For assistance with workspace management, contact our support team at [support@getcalmo.com](mailto:support@getcalmo.com).*