MCP cover image
See in Github
2025-04-14

0

Github Watches

0

Github Forks

0

Github Stars

Mirrord MCP Server MVP

Overview

This project is a Minimum Viable Product (MVP) demonstrating a server that uses the Model Communication Protocol (MCP) to allow an AI assistant to test the changes it adds to an existing project against a specified Kubernetes deployment using mirrord.

It leverages the rmcp library for the MCP transport layer (specifically Server-Sent Events - SSE) and the mirrord CLI tool to inject the execution context into the target Kubernetes pod.

Goal

The primary goal is to allow developers (or potentially automated tools) to quickly test small code snippets that interact with services within a Kubernetes cluster, without needing to manually set up mirrord or build/deploy full applications for simple tests.

Features

  • MCP Server: Implements an MCP server using rmcp.
  • Mirrord Integration: Automatically configures and invokes mirrord exec to run a command string with in the context of a target Kubernetes deployment/pod.
  • Asynchronous Processing: Built with Tokio for non-blocking I/O.
  • Command Timeouts: Implements timeouts for potentially long-running external commands (kubectl, build tools, mirrord exec) to prevent hangs.
  • Graceful Shutdown: Handles Ctrl+C for clean termination.

Technology Stack

  • Rust
  • Tokio (Asynchronous Runtime)
  • rmcp (MCP Transport Library)
  • mirrord (CLI Tool)
  • kubectl (Kubernetes CLI)
  • Serde (Serialization/Deserialization)
  • Tracing (Logging)
  • Tempfile (Temporary file/directory management)

Prerequisites

Before running the server, ensure you have the following installed and configured:

  1. Rust Toolchain: Install via rustup (cargo).
  2. mirrord CLI: Install the latest version from the mirrord documentation.
  3. kubectl: Install and configure it to connect to your target Kubernetes cluster. The server needs permission to get pods within the specified namespace.

Setup & Running

  1. Clone the repository:

    git clone <your-repo-url>
    cd mirrord-mcp-server
    
  2. Build the server:

    cargo build --release
    
  3. Run the server:

    ./target/release/mirrord-mcp-server
    

By default, the server listens on 127.0.0.1:3000 and exposes the SSE endpoint at /sse.

Usage

This server is designed to be used with an MCP client. The client connects to the SSE endpoint (http://127.0.0.1:3000/sse) and sends call_tool requests.

Example Client Interaction (Conceptual):

A client would send a JSON message similar to this (structure depends on the specific tool):

{
  "tool_name": "run",
  "arguments": {
    "cmd_str": "node /abs/path/to/script.js",
    "deployment": "user-service",
    "mirrord_config": "{\"feature\": {\"network\": {\"incoming\": {\"mode\": \"mirror\", \"ports\": [8080]}}}}"
  }
}

相关推荐

  • Aurity Ltd
  • Create and Publish Business Websites in seconds. AI will gather all the details about your website and generate link to your website.

  • Convincible Ltd
  • You're in a stone cell – can you get out? A classic choose-your-adventure interactive fiction game, based on a meticulously-crafted playbook. With a medieval fantasy setting, infinite choices and outcomes, and dice!

  • John Rafferty
  • Text your favorite pet, after answering 10 questions about their everyday lives!

  • Ian O'Connell
  • Provide players' names or enter Quickstart to start the game!

  • analogchat.com
  • Efficient Spotify assistant for personalized music data.

  • Matthieu Savioux
  • Evaluates language quality of texts, responds with a numerical score between 50-150.

  • justben.fyi
  • Your go-to expert for gameplay walkthroughs and cheat codes.

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • langgenius
  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • alibaba
  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • Byaidu
  • PDF科学纸翻译带有保留格式的pdf -基于ai完整保留排版的pdf文档全文双语翻译

  • microsoft
  • Python tool for converting files and office documents to Markdown.

  • mindsdb
  • AI's query engine - Platform for building AI that can answer questions over large scale federated data. - The only MCP Server you'll ever need

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • AstrBotDevs
  • llm llm聊天机器人及开发框架平台支持QQ QQ QQ 频道、电报| mcp 服务器、 openai,deepseek,双子座、硅基流动、月之暗面、 ollama,

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • nbonamy
  • Witsy:桌面AI助手

    Reviews

    3.5 (4)
    Avatar
    user_HQSRIVRI
    2025-04-24

    The mirrord-mcp is an exceptional tool by radugrosu. It offers seamless integration with easy-to-navigate features that significantly improve productivity. Highly recommended for anyone looking to streamline their workflow!

    Avatar
    user_neShkzFh
    2025-04-24

    mirrord-mcp is an outstanding tool by radugrosu, providing exceptional utility for MCP applications. Its user-friendly design and seamless integration make it a must-have. The clear welcome information and comprehensive features ensure a smooth experience. Highly recommended!

    Avatar
    user_ViIfTTIz
    2025-04-24

    mirrord-mcp is an outstanding tool by radugrosu that enhances my workflow significantly. The seamless integration and ease of use make it a must-have for any MCP application user. Highly recommend checking it out!

    Avatar
    user_v3NAf93L
    2025-04-24

    mirrord-mcp by radugrosu is a must-have tool for any MCP application user. It's intuitive and integrates seamlessly into my workflow, saving me significant time and effort. Highly recommend it for anyone looking to streamline their development processes. Check it out, you won't be disappointed!