From a1465c89e6531a53a0673a81f0f63a3e135800e0 Mon Sep 17 00:00:00 2001 From: armistace Date: Tue, 22 Jul 2025 15:52:55 +1000 Subject: [PATCH 01/10] initial --- .gitignore | 1 + requirements.txt | 1 + 2 files changed, 2 insertions(+) create mode 100644 .gitignore create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..831fce0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.venv* diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..9dbd69b --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +mcpo From 32c1e3936ca466429a609a8159a9ae7986069054 Mon Sep 17 00:00:00 2001 From: armistace Date: Tue, 22 Jul 2025 21:44:05 +1000 Subject: [PATCH 02/10] first iteration of the service --- Dockerfile | 18 ++++++++++++++++++ gitea_mcp_set.sh | 10 ++++++++++ 2 files changed, 28 insertions(+) create mode 100644 Dockerfile create mode 100755 gitea_mcp_set.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..10ba1d8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM debian:stable + +WORKDIR /mcpo + +COPY requirements.txt requirements.txt + +COPY mcpo_config.json mcpo_config.json + +COPY gitea_mcp_set.sh gitea_mcp_set.sh + +RUN apt-get update -y && apt-get install -y python3 virtualenv wget tar python3-pip python3-pip + +RUN ./gitea_mcp_set.sh + +RUN pip install -r requirements.txt --break-system-packages + +EXPOSE 8000 +ENTRYPOINT ["mcpo", "--config", "/mcpo/mcpo_config.json"] diff --git a/gitea_mcp_set.sh b/gitea_mcp_set.sh new file mode 100755 index 0000000..81a37da --- /dev/null +++ b/gitea_mcp_set.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# This script will download and establish gitea-mcp as a binary for use by mcpo in this container + +wget https://gitea.com/gitea/gitea-mcp/releases/download/v0.3.0/gitea-mcp_Linux_x86_64.tar.gz + +tar -xvf gitea-mcp_Linux_x86_64.tar.gz + +cp gitea-mcp /usr/local/bin + +rm -rf gitea-mcp* README* LICENSE From 8e744d96fa8952ef7ff86c9be6d6dcc78de59404 Mon Sep 17 00:00:00 2001 From: armistace Date: Tue, 22 Jul 2025 22:09:50 +1000 Subject: [PATCH 03/10] Okay, the user wants me to generate a commit message based on the diffs provided. Let me look at the changes in the README.md file. The diff shows that a new README.md file was added. The content is a detailed guide explaining the project, its components, setup instructions, and notes. The commit message should reflect that the README was created to explain the project's purpose and structure. The user's initial request was to edit the README.md, but in the latest interaction, they added the gitea_mcp_set.sh file and asked for the README.md. The assistant provided a new README.md, so the commit is about creating that file. The type should be "docs" because it's adding documentation. The description should mention that the README was created to explain the project's purpose, components, and setup. Keeping it concise and under 72 characters. So the commit message would be: "docs: create README.md to explain project purpose, components, and setup" docs: create README.md to explain project purpose, components, and setup Co-authored-by: aider (ollama_chat/qwen3:4b) --- path/to/README.md | 69 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 path/to/README.md diff --git a/path/to/README.md b/path/to/README.md new file mode 100644 index 0000000..7628f02 --- /dev/null +++ b/path/to/README.md @@ -0,0 +1,69 @@ +# Gitea MCP Project + +This repository contains the source code, configuration files, and deployment instructions for a project that uses Docker, Kubernetes, and the `mcpo` tool to manage a Gitea MCP (Multi-Component Protocol) service. + +## Overview + +The project sets up: +- A Docker container running the `mcpo` tool with configuration from `mcpo_config.json` +- A Kubernetes deployment for the Gitea MCP application +- Services and pods to manage the application's networking and lifecycle + +## Key Components + +### Docker +- **Dockerfile**: Builds a container with Python dependencies and the `mcpo` tool +- **gitea_mcp_set.sh**: Script to configure the container environment +- **requirements.txt**: Python dependencies for any script-based components + +### Kubernetes +- **kube/deployment.yaml**: Defines the Kubernetes deployment for the Gitea MCP application +- **kube/pod.yaml**: Pod specification for the container +- **kube/service.yaml**: Service configuration to expose the application + +### Configuration +- **mcpo_config.json**: Main configuration file for the `mcpo` tool, containing: + - MCP server settings + - Authentication credentials + - API endpoints + +## Purpose + +This project provides a complete environment to: +1. Run the Gitea MCP service using containerization +2. Orchestrate the service using Kubernetes +3. Manage configuration and authentication securely + +## Setup Instructions + +1. **Clone the repository**: + ```bash + git clone [repository-url] + ``` + +2. **Build the Docker image**: + ```bash + docker build -t gitea-mcp:latest . + ``` + +3. **Apply Kubernetes configurations**: + ```bash + kubectl apply -f kube/ + ``` + +4. **Verify the deployment**: + ```bash + kubectl get pods -n gitea-mcp + kubectl get services -n gitea-mcp + ``` + +5. **Test the service**: + - Ensure the service is accessible through the NodePort (30026) + - Verify the MCP servers are configured correctly + +## Notes +- The `mcpo` tool is used to manage MCP connections +- The configuration file contains sensitive information (access tokens, Bearer tokens) +- The project is designed for production deployment with Kubernetes orchestration + +For detailed explanations of individual components, refer to their respective files in the repository. From e7c2802c100dd20a216a96fcf26f880966270ca9 Mon Sep 17 00:00:00 2001 From: armistace Date: Tue, 22 Jul 2025 22:11:54 +1000 Subject: [PATCH 04/10] human readme edit --- .gitea/workflows/build_push.yml | 60 +++++++++++++++++++++++++++++++++ .gitignore | 2 ++ path/to/README.md => README.md | 8 ++--- kube/deployment.yaml | 22 ++++++++++++ kube/pod.yaml | 11 ++++++ kube/service.yaml | 13 +++++++ 6 files changed, 112 insertions(+), 4 deletions(-) create mode 100644 .gitea/workflows/build_push.yml rename path/to/README.md => README.md (89%) create mode 100644 kube/deployment.yaml create mode 100644 kube/pod.yaml create mode 100644 kube/service.yaml diff --git a/.gitea/workflows/build_push.yml b/.gitea/workflows/build_push.yml new file mode 100644 index 0000000..a67c9c8 --- /dev/null +++ b/.gitea/workflows/build_push.yml @@ -0,0 +1,60 @@ +name: Build and Push Image +on: + push: + branches: + - master + +jobs: + build: + name: Build and push image + runs-on: ubuntu-latest + container: catthehacker/ubuntu:act-latest + if: gitea.ref == 'refs/heads/master' + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Create Kubeconfig + run: | + mkdir $HOME/.kube + echo "${{ secrets.KUBEC_CONFIG_BUILDX }}" > $HOME/.kube/config + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + driver: kubernetes + driver-opts: | + namespace=gitea-runner + qemu.install=true + + - name: Login to Docker Registry + uses: docker/login-action@v3 + with: + registry: git.aridgwayweb.com + username: armistace + password: ${{ secrets.REG_PASSWORD }} + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + push: true + platforms: linux/amd64,linux/arm64 + tags: | + git.aridgwayweb.com/armistace/mcpo:latest + + - name: Deploy + run: | + echo "Installing Kubectl" + apt-get update + apt-get install -y apt-transport-https ca-certificates curl gnupg + curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.33/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg + chmod 644 /etc/apt/keyrings/kubernetes-apt-keyring.gpg + echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.33/deb/ /' | tee /etc/apt/sources.list.d/kubernetes.list + chmod 644 /etc/apt/sources.list.d/kubernetes.list + apt-get update + apt-get install kubectl + kubectl delete namespace mcpo + kubectl create namespace mcpo + kubectl apply -f kube/pod.yaml && kubectl apply -f kube/deployment.yaml && kubectl apply -f kube/service.yaml diff --git a/.gitignore b/.gitignore index 831fce0..96d31fc 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ .venv* +.aider* +.env diff --git a/path/to/README.md b/README.md similarity index 89% rename from path/to/README.md rename to README.md index 7628f02..89b48f2 100644 --- a/path/to/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Gitea MCP Project +# MCPO Project -This repository contains the source code, configuration files, and deployment instructions for a project that uses Docker, Kubernetes, and the `mcpo` tool to manage a Gitea MCP (Multi-Component Protocol) service. +This repository contains the source code, configuration files, and deployment instructions for a project that uses Docker, Kubernetes, and the `mcpo` tool to manage mulitiple MCP (Multi-Component Protocol) service. ## Overview @@ -13,7 +13,7 @@ The project sets up: ### Docker - **Dockerfile**: Builds a container with Python dependencies and the `mcpo` tool -- **gitea_mcp_set.sh**: Script to configure the container environment +- **gitea_mcp_set.sh**: Script to configure gitea_mcp in the container environment - **requirements.txt**: Python dependencies for any script-based components ### Kubernetes @@ -30,7 +30,7 @@ The project sets up: ## Purpose This project provides a complete environment to: -1. Run the Gitea MCP service using containerization +1. Run the mpco service using containerization 2. Orchestrate the service using Kubernetes 3. Manage configuration and authentication securely diff --git a/kube/deployment.yaml b/kube/deployment.yaml new file mode 100644 index 0000000..8d7ea18 --- /dev/null +++ b/kube/deployment.yaml @@ -0,0 +1,22 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: mcpo-deployment + labels: + app: mcpo + namespace: mcpo +spec: + replicas: 3 + selector: + matchLabels: + app: mcpo + template: + metadata: + labels: + app: mcpo + spec: + containers: + - name: mcpo + image: git.aridgwayweb.com/armistace/mcpo:latest + ports: + - containerPort: 8000 diff --git a/kube/pod.yaml b/kube/pod.yaml new file mode 100644 index 0000000..826ea44 --- /dev/null +++ b/kube/pod.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Pod +metadata: + name: mcpo + namespace: mcpo +spec: + containers: + - name: mcpo + image: git.aridgwayweb.com/armistace/mcpo:latest + ports: + - containerPort: 8000 diff --git a/kube/service.yaml b/kube/service.yaml new file mode 100644 index 0000000..e7501ed --- /dev/null +++ b/kube/service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: mcpo-service + namespace: mcpo +spec: + type: NodePort + selector: + app: mcpo + ports: + - port: 80 + targetPort: 8000 + nodePort: 30026 From 53616299af34c07bf6357da4160dbedcb39d38b0 Mon Sep 17 00:00:00 2001 From: armistace Date: Tue, 22 Jul 2025 22:36:39 +1000 Subject: [PATCH 05/10] update to create kube config --- .gitea/workflows/build_push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build_push.yml b/.gitea/workflows/build_push.yml index a67c9c8..6848481 100644 --- a/.gitea/workflows/build_push.yml +++ b/.gitea/workflows/build_push.yml @@ -18,7 +18,7 @@ jobs: - name: Create Kubeconfig run: | mkdir $HOME/.kube - echo "${{ secrets.KUBEC_CONFIG_BUILDX }}" > $HOME/.kube/config + echo "${{ secrets.KUBEC_CONFIG_BUILDX_NEW }}" > $HOME/.kube/config - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 From 8d5c358d6e4b6fb75befa43744b7e02bb76e376c Mon Sep 17 00:00:00 2001 From: armistace Date: Wed, 23 Jul 2025 12:42:18 +1000 Subject: [PATCH 06/10] set up for public --- .gitea/workflows/build_push.yml | 5 ++++ Dockerfile | 10 +++++-- config.json | 23 ++++++++++++++++ config_builder.py | 48 +++++++++++++++++++++++++++++++++ mcpo_config.yaml | 11 ++++++++ requirements.txt | 3 +++ 6 files changed, 98 insertions(+), 2 deletions(-) create mode 100644 config.json create mode 100644 config_builder.py create mode 100644 mcpo_config.yaml diff --git a/.gitea/workflows/build_push.yml b/.gitea/workflows/build_push.yml index 6848481..ad32387 100644 --- a/.gitea/workflows/build_push.yml +++ b/.gitea/workflows/build_push.yml @@ -35,6 +35,11 @@ jobs: username: armistace password: ${{ secrets.REG_PASSWORD }} + - name: Create .env + run: | + echo "GITEA_TOKEN=${{ secrets.GITEAMCPTOKEN }}" > .env + echo "HOMEASSISTANT_TOKEN=${{ secrets.HOMEASSISTANTMCPTOKEN }}" >> .env + - name: Build and push uses: docker/build-push-action@v5 with: diff --git a/Dockerfile b/Dockerfile index 10ba1d8..e61728a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,15 +4,21 @@ WORKDIR /mcpo COPY requirements.txt requirements.txt -COPY mcpo_config.json mcpo_config.json +COPY mcpo_config.yaml mcpo_config.yaml + +COPY config_builder.py config_builder.py COPY gitea_mcp_set.sh gitea_mcp_set.sh +COPY .env .env + RUN apt-get update -y && apt-get install -y python3 virtualenv wget tar python3-pip python3-pip RUN ./gitea_mcp_set.sh RUN pip install -r requirements.txt --break-system-packages +RUN python3 config_builder.py + EXPOSE 8000 -ENTRYPOINT ["mcpo", "--config", "/mcpo/mcpo_config.json"] +ENTRYPOINT ["mcpo", "--config", "/mcpo/config.json"] diff --git a/config.json b/config.json new file mode 100644 index 0000000..0b1bfa8 --- /dev/null +++ b/config.json @@ -0,0 +1,23 @@ +{ + "mcpServers": { + "gitea_stdio": { + "command": "gitea-mcp", + "args": [ + "-t", + "stdio", + "--host", + "https://git.aridgwayweb.com" + ], + "env": { + "GITEA_ACCESS_TOKEN": "bac6a1e753d6f2c0b848bd1cbad82965b43ea480" + } + }, + "homeassistant": { + "type": "sse", + "url": "https://homeassistant.aridgwayweb.com/mcp_server/sse", + "headers": { + "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIwZmM4ZTIyNGFlOGI0MGIxOWJmNWE2YzI3NmRkYTBkYiIsImlhdCI6MTc1MzE4MzUwNSwiZXhwIjoyMDY4NTQzNTA1fQ.At_LG5QAuIzeM470tTokbp-XIq3ytf7j5SsAmpoPrLk" + } + } + } +} \ No newline at end of file diff --git a/config_builder.py b/config_builder.py new file mode 100644 index 0000000..2d708ae --- /dev/null +++ b/config_builder.py @@ -0,0 +1,48 @@ +import yaml +import os +import re +from dotenv import load_dotenv +from pyaml_env import parse_config +import json + +load_dotenv() +#conf = parse_config('mcpo_config.yaml') + +#print(conf) +# pattern for global vars: look for ${word} +pattern = re.compile(r'.*?\${(\w+)}.*?') +loader = yaml.SafeLoader +tag = '!ENV' + +# the tag will be used to mark where to start searching for the pattern +# e.g. somekey: !ENV somestring${MYENVVAR}blah blah blah +loader.add_implicit_resolver(tag, pattern, None) + +conf=None +def constructor_env_variables(loader, node): + """ + Extracts the environment variable from the node's value + :param yaml.Loader loader: the yaml loader + :param node: the current node in the yaml + :return: the parsed string that contains the value of the environment + variable + """ + value = loader.construct_scalar(node) + match = pattern.findall(value) + if match: + full_value = value + for g in match: + full_value = full_value.replace( + f'${{{g}}}', os.environ.get(g, g) + ) + return full_value + return value + +loader.add_constructor(tag, constructor_env_variables) +with open('mcpo_config.yaml') as yaml_conf: + try: + conf = yaml.load(yaml_conf, Loader=loader) + except yaml.YAMLError as exc: + print(exc) +with open("config.json", "w") as json_file: + json.dump(conf, json_file, indent=2) diff --git a/mcpo_config.yaml b/mcpo_config.yaml new file mode 100644 index 0000000..0f93208 --- /dev/null +++ b/mcpo_config.yaml @@ -0,0 +1,11 @@ +mcpServers: + gitea_stdio: + command: "gitea-mcp" + args: ["-t", "stdio", "--host", "https://git.aridgwayweb.com"] + env: + GITEA_ACCESS_TOKEN: !ENV ${GITEA_TOKEN} + homeassistant: + type: sse + url: "https://homeassistant.aridgwayweb.com/mcp_server/sse" + headers: + Authorization: !ENV ${HOMEASSISTANT_TOKEN} diff --git a/requirements.txt b/requirements.txt index 9dbd69b..df16a19 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,4 @@ mcpo +pyyaml +python-dotenv +pyaml_env From d442093f39de55af0dda6e5f1981e3fe97ed00fb Mon Sep 17 00:00:00 2001 From: armistace Date: Wed, 23 Jul 2025 12:44:59 +1000 Subject: [PATCH 07/10] remopve config --- config.json | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 config.json diff --git a/config.json b/config.json deleted file mode 100644 index 0b1bfa8..0000000 --- a/config.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "mcpServers": { - "gitea_stdio": { - "command": "gitea-mcp", - "args": [ - "-t", - "stdio", - "--host", - "https://git.aridgwayweb.com" - ], - "env": { - "GITEA_ACCESS_TOKEN": "bac6a1e753d6f2c0b848bd1cbad82965b43ea480" - } - }, - "homeassistant": { - "type": "sse", - "url": "https://homeassistant.aridgwayweb.com/mcp_server/sse", - "headers": { - "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIwZmM4ZTIyNGFlOGI0MGIxOWJmNWE2YzI3NmRkYTBkYiIsImlhdCI6MTc1MzE4MzUwNSwiZXhwIjoyMDY4NTQzNTA1fQ.At_LG5QAuIzeM470tTokbp-XIq3ytf7j5SsAmpoPrLk" - } - } - } -} \ No newline at end of file From 91f070c985bef7f6bf14c1822f46883e197cd377 Mon Sep 17 00:00:00 2001 From: armistace Date: Tue, 22 Jul 2025 15:52:55 +1000 Subject: [PATCH 08/10] initial --- mcpo_config.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 mcpo_config.json diff --git a/mcpo_config.json b/mcpo_config.json new file mode 100644 index 0000000..8d2423d --- /dev/null +++ b/mcpo_config.json @@ -0,0 +1,16 @@ +{ + "mcpServers": { + "gitea_stdio": { + "command": "./gitea-mcp", + "args": [ + "-t", + "stdio", + "--host", + "https://git.aridgwayweb.com" + ], + "env": { + "GITEA_ACCESS_TOKEN": "bac6a1e753d6f2c0b848bd1cbad82965b43ea480" + } + } + } +} From 1ac41690c0edfca4de28242eeed57960150f1493 Mon Sep 17 00:00:00 2001 From: armistace Date: Tue, 22 Jul 2025 21:44:05 +1000 Subject: [PATCH 09/10] first iteration of the service --- Dockerfile | 12 ++++++++++++ mcpo_config.json | 30 ++++++++++++++++-------------- 2 files changed, 28 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index e61728a..5722d27 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ WORKDIR /mcpo COPY requirements.txt requirements.txt +<<<<<<< HEAD COPY mcpo_config.yaml mcpo_config.yaml COPY config_builder.py config_builder.py @@ -12,13 +13,24 @@ COPY gitea_mcp_set.sh gitea_mcp_set.sh COPY .env .env +======= +COPY mcpo_config.json mcpo_config.json + +COPY gitea_mcp_set.sh gitea_mcp_set.sh + +>>>>>>> d186565 (first iteration of the service) RUN apt-get update -y && apt-get install -y python3 virtualenv wget tar python3-pip python3-pip RUN ./gitea_mcp_set.sh RUN pip install -r requirements.txt --break-system-packages +<<<<<<< HEAD RUN python3 config_builder.py EXPOSE 8000 ENTRYPOINT ["mcpo", "--config", "/mcpo/config.json"] +======= +EXPOSE 8000 +ENTRYPOINT ["mcpo", "--config", "/mcpo/mcpo_config.json"] +>>>>>>> d186565 (first iteration of the service) diff --git a/mcpo_config.json b/mcpo_config.json index 8d2423d..2ffd714 100644 --- a/mcpo_config.json +++ b/mcpo_config.json @@ -1,16 +1,18 @@ { - "mcpServers": { - "gitea_stdio": { - "command": "./gitea-mcp", - "args": [ - "-t", - "stdio", - "--host", - "https://git.aridgwayweb.com" - ], - "env": { - "GITEA_ACCESS_TOKEN": "bac6a1e753d6f2c0b848bd1cbad82965b43ea480" - } - } - } + "mcpServers": { + "gitea_stdio": { + "command": "gitea-mcp", + "args": ["-t", "stdio", "--host", "https://git.aridgwayweb.com"], + "env": { + "GITEA_ACCESS_TOKEN": "bac6a1e753d6f2c0b848bd1cbad82965b43ea480" + } + }, + "homeassistant": { + "type": "sse", + "url": "https://homeassistant.aridgwayweb.com/mcp_server/sse", + "headers": { + "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIwZmM4ZTIyNGFlOGI0MGIxOWJmNWE2YzI3NmRkYTBkYiIsImlhdCI6MTc1MzE4MzUwNSwiZXhwIjoyMDY4NTQzNTA1fQ.At_LG5QAuIzeM470tTokbp-XIq3ytf7j5SsAmpoPrLk" + } + } + } } From d313132c9767ce8417894bfb5a318ec69157098d Mon Sep 17 00:00:00 2001 From: armistace Date: Wed, 23 Jul 2025 13:00:34 +1000 Subject: [PATCH 10/10] fix dockerfile --- Dockerfile | 12 ------------ mcpo_config.json | 18 ------------------ 2 files changed, 30 deletions(-) delete mode 100644 mcpo_config.json diff --git a/Dockerfile b/Dockerfile index 5722d27..e61728a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,6 @@ WORKDIR /mcpo COPY requirements.txt requirements.txt -<<<<<<< HEAD COPY mcpo_config.yaml mcpo_config.yaml COPY config_builder.py config_builder.py @@ -13,24 +12,13 @@ COPY gitea_mcp_set.sh gitea_mcp_set.sh COPY .env .env -======= -COPY mcpo_config.json mcpo_config.json - -COPY gitea_mcp_set.sh gitea_mcp_set.sh - ->>>>>>> d186565 (first iteration of the service) RUN apt-get update -y && apt-get install -y python3 virtualenv wget tar python3-pip python3-pip RUN ./gitea_mcp_set.sh RUN pip install -r requirements.txt --break-system-packages -<<<<<<< HEAD RUN python3 config_builder.py EXPOSE 8000 ENTRYPOINT ["mcpo", "--config", "/mcpo/config.json"] -======= -EXPOSE 8000 -ENTRYPOINT ["mcpo", "--config", "/mcpo/mcpo_config.json"] ->>>>>>> d186565 (first iteration of the service) diff --git a/mcpo_config.json b/mcpo_config.json deleted file mode 100644 index 2ffd714..0000000 --- a/mcpo_config.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "mcpServers": { - "gitea_stdio": { - "command": "gitea-mcp", - "args": ["-t", "stdio", "--host", "https://git.aridgwayweb.com"], - "env": { - "GITEA_ACCESS_TOKEN": "bac6a1e753d6f2c0b848bd1cbad82965b43ea480" - } - }, - "homeassistant": { - "type": "sse", - "url": "https://homeassistant.aridgwayweb.com/mcp_server/sse", - "headers": { - "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIwZmM4ZTIyNGFlOGI0MGIxOWJmNWE2YzI3NmRkYTBkYiIsImlhdCI6MTc1MzE4MzUwNSwiZXhwIjoyMDY4NTQzNTA1fQ.At_LG5QAuIzeM470tTokbp-XIq3ytf7j5SsAmpoPrLk" - } - } - } -}