MCP cover image
See in Github
2025-04-14

MCP sidecar pattern on Kubernetes

0

Github Watches

0

Github Forks

0

Github Stars

MCP Sidecar Pattern

MCP sidecar pattern on Kubernetes

Your can run MCP server only support stdio mode separetely from your app!

MCP Sidecar concept

sidecar image

Contents

Dockerfile-github-mcp-server

Sample Dockerfile to build GitHub MCP Server container(to add some tools to create FIFO pipe in GitHub MCP Server)

Dockerfile-client-app

Dockerfile for Sample Apps

mcp-sidecar-deploy.yaml

Kubernetes manifest to run a pod of AI app and MCP server sidecar

app.py

Sample python app to get your GitHub Repo list via MCP Server

mcp-proxy.py

Local proxy to bridge stdin/stdout pipe between app container and MCP Server sidecar container

How to run the sample app

  1. Build your app container with Dockerfile-client-app
  2. Build your GitHub MCP Server container with Dockerfile-github-mcp-server This is optional, only required for a MCP server container image without shell or mkfifo such as GitHub MCP Server
    • cd ~
    • git clone https://github.com/github/github-mcp-server.git
    • cd github-mcp-server
    • cp ../mcp-sidecar/Dockerfile-github-mcp-server .
    • docker build --tag your-built-github-mcp-server-image> -f Dockerfile-github-mcp-server .
    • docker push your-built-github-mcp-server-image>
  3. Run app on your Kubernetes
    • cd ../mcp-sidecar
    • kubectl create ns mcp
    • kubectl create secret generic github-token --from-literal=token=your GitHub PAT
    • kubectl apply -f MCP-sidecar-deploy.yaml
  4. Test your app
    • kubectl get pod -n mcp
    • kubectl exec github-mcp-sidecar-your-pod-name -it -- /bin/bash
    • python app.py Then, you can see list of your GitHub repos detail

Contributing

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

相关推荐

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

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

  • 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!

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

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

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

  • seabiscuit.ai
  • Discover A More Robust Business: Craft tailored value proposition statements, develop a comprehensive business model canvas, conduct detailed PESTLE analysis, and gain strategic insights on enhancing business model elements like scalability, cost structure, and market competition strategies. (v1.18)

  • Carl Oscar Aaro
  • Structured recipes for food and desserts – ingredient lists and step-by-step recipe instructions from any input. Become surprised, try something new or breathe life into grandma's old recipe notebook.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的LLM资料总结(Agent框架、辅助编程、数据处理、模型训练、模型推理、o1 模型、MCP、小语言模型、视觉语言模型) | Summary of the world's best LLM resources.

  • n8n-io
  • Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

  • av
  • Effortlessly run LLM backends, APIs, frontends, and services with one command.

  • langgenius
  • Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.

  • 1Panel-dev
  • 🔥 1Panel provides an intuitive web interface and MCP Server to manage websites, files, containers, databases, and LLMs on a Linux server.

  • Azure
  • The Azure MCP Server, bringing the power of Azure to your agents.

  • alibaba
  • an easy-to-use dynamic service discovery, configuration and service management platform for building AI cloud native applications.

  • metorial
  • Containerized versions of hundreds of MCP servers 📡 🧠

  • caio-moliveira
  • This project was created to demonstrate how we can connect with different Model Context Protocols (MCPs).

  • rulego
  • ⛓️RuleGo is a lightweight, high-performance, embedded, next-generation component orchestration rule engine framework for Go.

  • Byaidu
  • PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero

  • superiorlu
  • 🤖 Collect practical AI repos, tools, websites, papers and tutorials on AI. 实用的AI百宝箱 💎

    Reviews

    3.2 (5)
    Avatar
    user_Oi0JEimO
    2025-04-24

    I have been using mcp-sidecar for a while now, and it has truly transformed my multi-container management. Hats off to hatasaki for creating such a seamless application. The integration is smooth, and the performance is top-notch. Highly recommend this to anyone looking to optimize their container orchestration.

    Avatar
    user_osAqPUNt
    2025-04-24

    I've been using mcp-sidecar by hatasaki, and it has significantly streamlined my application management. It's intuitive and effectively enhances the user experience while maintaining robust functionality. Highly recommended for anyone looking to improve their app's performance.

    Avatar
    user_OzEwkV2x
    2025-04-24

    As a dedicated mcp user, I must say that mcp-sidecar has significantly enhanced my workflow. hatasaki has done an exceptional job with this tool, making it seamless and efficient. I highly recommend mcp-sidecar to anyone looking to optimize their application performance. The integration is smooth, and the user experience is top-notch. Great job!

    Avatar
    user_IWEEc12w
    2025-04-24

    As an avid user of the mcp application, I find the mcp-sidecar by hatasaki to be an indispensable addition. Its seamless integration and functionality significantly enhance the overall user experience. Whether you're new to MCP or a seasoned user, the mcp-sidecar is a must-have tool that exemplifies innovation and efficiency. Highly recommended!

    Avatar
    user_CsJ2XxIp
    2025-04-24

    I have been using the mcp-sidecar for a while, and it's an exceptional tool created by hatasaki. It integrates seamlessly with my setup, providing efficient and reliable performance. The design and user interface are very intuitive, making it easy to use even for someone new to such applications. Highly recommended for anyone looking to enhance their workflow!