MCP cover image
See in Github
2025-03-20

1

Github Watches

1

Github Forks

0

Github Stars

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

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • modelcontextprotocol
  • 模型上下文协议服务器

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

    Reviews

    4 (1)
    Avatar
    user_mj2sgPs8
    2025-04-15

    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!