Files
PMOCrazycoder/Makefile
Eric Coissac 766b90a548 Refactor MCP server and enhance development environment
This commit refactors the MCP server implementation, updates the Dockerfile with new development tools and dependencies, introduces a Makefile for building and running the application, and adds utility modules for sandbox management and Ollama integration. The server name has also been updated from 'echo-server' to 'PMO-Crazy-coder' in the configuration.
2026-01-25 19:47:02 +01:00

34 lines
737 B
Makefile

.PHONY: build run all debug
# Variables
IMAGE_NAME = pmo_crazy_coder
TAG = latest
PORT = 7860
DOCKER_RUN_COMMON = --rm -p $(PORT):$(PORT) -v ./bac_a_sable:/sandbox
FULL_IMAGE_NAME = $(IMAGE_NAME):$(TAG)
all: run
$(SANDBOX_VOLUME):
mkdir -p $(SANDBOX_VOLUME)
stampdir:
mkdir -p stamp
stamp/build_PMOCrazyCoder: stampdir Dockerfile
@echo building the PMOCrazyCoder server
@docker build -t $(FULL_IMAGE_NAME) .
@touch $@
build: stamp/build_PMOCrazyCoder
run: build
@echo Launching the PMOCrazyCoder MCP server
@docker run $(DOCKER_RUN_COMMON) \
$(FULL_IMAGE_NAME)
debug: build
@echo Launching the PMOCrazyCoder MCP server in debug mode
@docker run $(DOCKER_RUN_COMMON) \
-it \
$(FULL_IMAGE_NAME) /bin/bash