mcpField
B
Bunnyshell MCP Server

Bunnyshell MCP Server

Local
github.com/aminalali8Cloud & Infra0Updated 84w ago

About Bunnyshell MCP Server

Bunnyshell MCP Server lets AI assistants manage Bunnyshell resources through the `bns` CLI. Its tools cover organizations, projects, environments, components, variables, secrets, and remote development sessions.

Key features

  1. 01Organization navigation
  2. 02Project creation and management
  3. 03Environment lifecycle operations
  4. 04Component deployment and debugging
  5. 05Variable and secret management
  6. 06Remote development and port forwarding

Use cases

  1. 01List organizations and projects
  2. 02Start or stop a project environment
  3. 03Deploy or debug a component
  4. 04Manage environment variables and secrets

MCP support

The MCP server exposes tools for AI assistants to operate Bunnyshell through the `bns` CLI. Authentication can use the `BNS_API_KEY` environment variable or other supported token input methods.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.