From 71a16625fca4e07a36373339db73a75fc1659e39 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Feb 2026 05:16:14 +0000 Subject: [PATCH 1/2] Initial plan From efe1b3361127987d95b2a3b13c53a44cf4cf7f33 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Feb 2026 05:23:17 +0000 Subject: [PATCH 2/2] rename cmd/mcp to cmd/workflow-mcp-server for correct go install binary naming Co-authored-by: intel352 <77607+intel352@users.noreply.github.com> --- Makefile | 2 +- cmd/{mcp => workflow-mcp-server}/main.go | 2 +- docs/mcp.md | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) rename cmd/{mcp => workflow-mcp-server}/main.go (91%) diff --git a/Makefile b/Makefile index a033cef9..71df6286 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ build-go: # Build MCP server binary build-mcp: - go build -o workflow-mcp-server ./cmd/mcp + go build -o workflow-mcp-server ./cmd/workflow-mcp-server # Run all tests with race detection test: diff --git a/cmd/mcp/main.go b/cmd/workflow-mcp-server/main.go similarity index 91% rename from cmd/mcp/main.go rename to cmd/workflow-mcp-server/main.go index c225b83b..c655fee8 100644 --- a/cmd/mcp/main.go +++ b/cmd/workflow-mcp-server/main.go @@ -1,4 +1,4 @@ -// Command mcp starts the workflow MCP (Model Context Protocol) server. +// Command workflow-mcp-server starts the workflow MCP (Model Context Protocol) server. // // The server runs over stdio by default, making it compatible with any // MCP-capable AI client. It exposes workflow engine tools (validate, diff --git a/docs/mcp.md b/docs/mcp.md index 1bb110f5..ce371a2c 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -35,7 +35,10 @@ The MCP server provides: make build-mcp # Or directly with Go -go build -o workflow-mcp-server ./cmd/mcp +go build -o workflow-mcp-server ./cmd/workflow-mcp-server + +# Or install globally with Go +go install github.com/GoCodeAlone/workflow/cmd/workflow-mcp-server@latest ``` ## Installation @@ -155,7 +158,7 @@ go test -v ./mcp/ ## Architecture ``` -cmd/mcp/main.go → Entry point (stdio transport) +cmd/workflow-mcp-server/main.go → Entry point (stdio transport) mcp/server.go → MCP server setup, tool handlers, resource handlers mcp/docs.go → Embedded documentation content mcp/server_test.go → Unit tests