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