From 65336ad8280b10499fe75927f14452bdbe549631 Mon Sep 17 00:00:00 2001 From: Shang Chieh Tseng Date: Mon, 14 Apr 2025 22:32:24 +0800 Subject: [PATCH] add mcpo server --- mcpo/Dockerfile | 26 ++++++++++++++++++++++++++ mcpo/docker-compose.yml | 8 ++++++++ 2 files changed, 34 insertions(+) create mode 100644 mcpo/Dockerfile create mode 100644 mcpo/docker-compose.yml diff --git a/mcpo/Dockerfile b/mcpo/Dockerfile new file mode 100644 index 0000000..7bd3328 --- /dev/null +++ b/mcpo/Dockerfile @@ -0,0 +1,26 @@ +# Use a Rocky Linux 9 base image +FROM rockylinux/rockylinux:9 + +# Update the system packages +RUN dnf -y update\ +&& dnf -y install python3.11 python3.11-pip nodejs git + +# Install uvx and mcpo using pip +RUN pip3.11 install uvx mcpo + +# Clone the servers repository from GitHub +RUN cd /usr/local/src && git clone https://github.com/modelcontextprotocol/servers.git + +# Copy the configuration file +COPY config.json /root/config.json + +# Expose the 8000 TCP port +EXPOSE 8000 + +# Set the entrypoint to run the mcpo executable +ENTRYPOINT ["mcpo"] + +# Set the default command to run mcpo with the config file +CMD ["--config", "/root/config.json"] + + diff --git a/mcpo/docker-compose.yml b/mcpo/docker-compose.yml new file mode 100644 index 0000000..dea3383 --- /dev/null +++ b/mcpo/docker-compose.yml @@ -0,0 +1,8 @@ +version: "3.8" +services: + mcpo: + image: mcpo + ports: + - "8000:8000" + restart: unless-stopped + container_name: mcpo \ No newline at end of file