Sponsored by Deepsite.site

Bunnyshell MCP Server

Created By
aminalali8a year ago
Content

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

  1. Clone the repository:
git clone https://github.com/bunnyshell/bns-mcp.git
cd bns-mcp
  1. Run the setup script:
./setup.sh

Docker Setup

  1. Clone the repository:
git clone https://github.com/bunnyshell/bns-mcp.git
cd bns-mcp
  1. Run the Docker setup script:
./docker-setup.sh

Usage

  1. Start or restart Claude Desktop
  2. Start a new conversation with Claude
  3. Click '+' to add an attachment and select 'Connect to MCP server'
  4. Choose 'bunnyshell-mcp' from the list of servers
  5. 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

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

MIT License

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Serper MCP ServerA Serper MCP Server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
CursorThe AI Code Editor
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
DeepChatYour AI Partner on Desktop
Tavily Mcp
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Playwright McpPlaywright MCP server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
ChatWiseThe second fastest AI chatbot™
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Amap Maps高德地图官方 MCP Server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
WindsurfThe new purpose-built IDE to harness magic