Best Practices
This guide covers security recommendations, workflow optimization, and tips for getting the most out of Calmo Local Bridge.Security Recommendations
Command Approval
Review Before Approving
Always read the full command before clicking Allow once. Understand what it will do before execution.
Understand Risk Levels
Pay attention to risk indicators:
- 🟢 LOW = Safe reads
- 🟡 MEDIUM = State changes
- 🔴 HIGH = Potentially dangerous
Setting Up Auto-Approve Patterns
Use Always Allow strategically for low-risk, frequently-used commands: Good patterns to auto-approve:Workspace Configuration
When configuring Local Workspaces:- Add only necessary directories - Don’t add your entire home directory
- Scope to project folders - Add specific Git repos or project roots
- Review periodically - Remove workspaces you no longer need
MCP Server Security
- Only install trusted MCP servers - Review the source before adding
- Keep API keys secure - Don’t share your
mcp.jsonfile - Monitor server activity - Check logs for unexpected behavior
- Remove unused servers - Disable or delete servers you don’t use
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”
- “Show me the last 50 lines of logs from the frontend deployment”
- “List all pods in CrashLoopBackOff state across all namespaces”
- “Check the logs” (which pod? which namespace?)
- “What’s wrong with my cluster?” (too vague for targeted commands)
Batch Operations
For multiple related operations, ask Calmo to handle them sequentially:Using Command History
The Command History in the Bridge tab is useful for:- Auditing - Review what commands were run in a session
- Learning - See what commands Calmo uses for common tasks
- Debugging - Identify failed commands and their context
Leveraging MCP Servers
Extend your capabilities with MCP servers:| Use Case | MCP Server |
|---|---|
| Look up library documentation | context7 |
| Access Mastra.ai docs and examples | @mastra/mcp-docs-server |
| Complex problem-solving | @modelcontextprotocol/server-sequential-thinking |
Development Workflows
Kubernetes Debugging
A typical debugging session:1
Get Overview
Auto-approve
kubectl get patterns for quick status checks2
Deep Dive
Use
kubectl describe and kubectl logs (also safe to auto-approve)3
Take Action
Manually approve any
kubectl delete, kubectl apply, or kubectl scale commandsInfrastructure Changes
For Terraform or Kubernetes manifest changes:- Preview first - Run
terraform planorkubectl diff(safe) - Review carefully - Understand what will change
- Apply intentionally - Manually approve all apply/create/delete operations
Git Operations
Safe to auto-approve:git status,git log,git diff,git branch
git commit,git push,git merge,git checkout
Performance Tips
Keep Bridge Running
The bridge maintains state and history. Keep it running in the menu bar/system tray for:- Faster reconnection if the web connection drops
- Persistent command history
- Continued MCP server connections
Minimize Pending Commands
Don’t let commands queue up indefinitely. Either:- Approve/deny them promptly
- Set up appropriate auto-approve patterns
- Deny commands you don’t need
Regular Log Cleanup
The Logs tab can grow large. Click Clear periodically if you don’t need historical logs.Team Usage
If multiple team members use Local Bridge:- Individual pairing - Each person pairs their own machine
- Shared patterns - Document your team’s auto-approve patterns
- Security policies - Establish guidelines for what’s safe to auto-approve
- MCP standards - Share MCP configurations across the team
What to Avoid
Quick Reference
Risk Assessment Matrix
| Command Type | Risk | Auto-Approve? |
|---|---|---|
Read operations (get, list, describe, logs) | Low | ✅ Recommended |
Status commands (status, diff, plan) | Low | ✅ Recommended |
Write operations (apply, create, scale) | Medium | ⚠️ Case by case |
Delete operations (delete, rm, destroy) | High | ❌ Never |
Generic commands (exec, run) | Variable | ❌ Manual review |
Workspace Scope Guidelines
| Scope | Recommendation |
|---|---|
| Single project | ✅ Ideal - minimal access |
| Multiple related projects | ✅ Good - grouped by purpose |
| Entire code directory | ⚠️ Broad - consider splitting |
| Home directory | ❌ Too broad - avoid |
| System directories | ❌ Unnecessary risk |
For additional guidance, contact our support team at [email protected].