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.
This commit is contained in:
33
Makefile
Normal file
33
Makefile
Normal file
@@ -0,0 +1,33 @@
|
||||
.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
|
||||
Reference in New Issue
Block a user