feat: migrate MCP server from backend to agentctl (#124)

This commit is contained in:
João Salavisa
2026-01-30 15:15:19 +00:00
committed by GitHub
parent 0f449dd01f
commit f229c72393
32 changed files with 1401 additions and 1035 deletions
+7 -14
View File
@@ -14,34 +14,28 @@ BUILD_TIME := $(shell date -u '+%Y-%m-%dT%H:%M:%SZ')
LDFLAGS += -X main.Version=$(VERSION) -X main.Commit=$(COMMIT) -X main.BuildTime=$(BUILD_TIME)
.PHONY: all build build-all build-agentctl build-mcp-server clean run dev test lint fmt vet help
.PHONY: all build build-all build-agentctl clean run dev test lint fmt vet help
## Default target
all: build
## Build the unified kandev binary
build: build-agentctl build-mcp-server
build: build-agentctl
@echo "Building $(BINARY_NAME)..."
@mkdir -p $(BUILD_DIR)
$(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $(BUILD_DIR)/$(BINARY_NAME) ./cmd/kandev
## Build all binaries (unified + individual services + agentctl + mcp-server)
build-all: build build-agentctl build-mcp-server
## Build all binaries (unified + individual services + agentctl)
build-all: build build-agentctl
@echo "Building individual services..."
$(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $(BUILD_DIR)/agent-manager ./cmd/agent-manager
## Build the agentctl sidecar binary
## Build the agentctl sidecar binary (includes embedded MCP server)
build-agentctl:
@echo "Building agentctl..."
@mkdir -p $(BUILD_DIR)
$(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $(BUILD_DIR)/agentctl ./cmd/agentctl
## Build the standalone MCP server binary
build-mcp-server:
@echo "Building mcp-server..."
@mkdir -p $(BUILD_DIR)
$(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $(BUILD_DIR)/mcp-server ./cmd/mcp-server
## Clean build artifacts
clean:
@echo "Cleaning..."
@@ -112,9 +106,8 @@ help:
@echo ""
@echo "Targets:"
@echo " build Build the unified kandev binary (default)"
@echo " build-all Build all binaries (unified + individual services + agentctl + mcp-server)"
@echo " build-agentctl Build the agentctl sidecar binary"
@echo " build-mcp-server Build the standalone MCP server binary"
@echo " build-all Build all binaries (unified + individual services + agentctl)"
@echo " build-agentctl Build the agentctl sidecar binary (includes embedded MCP server)"
@echo " clean Remove build artifacts"
@echo " run Build and run the application"
@echo " dev Run in development mode with a local database"