Bunnyshell MCP Server
A Model Context Protocol (MCP) server implementation for interfacing with the Bunnyshell platform through its CLI.
Overview
This project creates an MCP server that enables AI assistants (like Claude) to interact with the Bunnyshell platform using the Bunnyshell CLI (bns). The server provides a set of tools for managing your Bunnyshell resources through natural language commands.
Features
- Organization Management: List and navigate organizations
- Project Management: Create, list, and delete projects
- Environment Management: Create, list, start, stop, and delete environments
- Component Operations: Deploy, debug, and SSH into components
- Variable & Secret Management: Manage environment variables and secrets
- Remote Development: Start remote development sessions and set up port forwarding
Prerequisites
- Node.js 18+ and npm
- Bunnyshell CLI (
bns) installed and configured - Claude Desktop
- Docker and Docker Compose (for Docker setup)
Installation
Local Setup
- Clone the repository:
git clone https://github.com/bunnyshell/bns-mcp.git
cd bns-mcp
- Run the setup script:
./setup.sh
Docker Setup
- Clone the repository:
git clone https://github.com/bunnyshell/bns-mcp.git
cd bns-mcp
- Run the Docker setup script:
./docker-setup.sh
Usage
- Start or restart Claude Desktop
- Start a new conversation with Claude
- Click '+' to add an attachment and select 'Connect to MCP server'
- Choose 'bunnyshell-mcp' from the list of servers
- Set your Bunnyshell API token:
token: YOUR_API_TOKEN
Example Commands
You can ask Claude to:
- "List my organizations"
- "Create a new project called 'MyProject' in organization ABC123"
- "List all environments in project XYZ789"
- "Start environment ENV123"
- "Deploy component COMP456"
- "Create a variable called 'DATABASE_URL' in environment ENV123"
Development
Project Structure
.
├── src/
│ ├── tools.ts # Tool implementations
│ ├── utils.ts # Utility functions
│ └── index.ts # Server entry point
├── .cursor/
│ └── mcp.json # Cursor MCP configuration
├── setup.sh # Local setup script
├── docker-setup.sh # Docker setup script
└── README.md # Documentation
Cursor MCP Configuration
The .cursor/mcp.json file contains the configuration for the MCP server in Cursor:
{
"mcpServers": {
"bunnyshell-mcp": {
"command": "node",
"args": ["dist/index.js"],
"env": {
"BNS_API_KEY": "YOUR_API_TOKEN_HERE"
}
}
}
}
For Docker setup, use:
{
"mcpServers": {
"bunnyshell-mcp": {
"command": "docker",
"args": ["exec", "-i", "bns-mcp-server", "node", "dist/index.js"],
"env": {
"BNS_API_KEY": "YOUR_API_TOKEN_HERE"
}
}
}
}
Note: By adding your Bunnyshell API token to the env section, the MCP server will automatically use it for authentication without requiring you to provide it for each command. The code already checks for the BNS_API_KEY environment variable. This is especially useful for development and personal use. For shared environments, it's recommended to omit the token from configuration files and provide it during the conversation instead.
Building
npm install
npm run build
Running Tests
npm test
Security
- API tokens are never stored in the code or configuration files
- Tokens can be provided via:
- Command line options
- Environment variable (BNS_API_KEY)
- Session storage (temporary, in-memory only)
- Command logging omits sensitive information
Contributing
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
License
相关推荐
I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.
I find academic articles and books for research and literature reviews.
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Advanced software engineer GPT that excels through nailing the basics.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.
L'application tout-en-un desktop et Docker AI avec chiffon intégré, agents AI, constructeur d'agent sans code, compatibilité MCP, etc.
Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX
Plateforme d'automatisation de workflow à code équitable avec des capacités d'IA natives. Combinez le bâtiment visuel avec du code personnalisé, de l'auto-hôte ou du cloud, 400+ intégrations.
🧑🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.
Une liste organisée des serveurs de protocole de contexte de modèle (MCP)
Reviews
user_mj2sgPs8
Azure Revisor MCP Server has revolutionized my workflow with its seamless integration and robust performance. Mikhael Abdallah has developed an outstanding product that ensures reliability and efficiency in server management. The intuitive interface and comprehensive feature set make it a must-have for any IT professional. Highly recommend!