Skip to content

fix(cli): fix generated Go MCP server run and doc#104

Merged
jmhbh merged 1 commit into
kagent-dev:mainfrom
kevdkr:kevdkr/fix-go-mcp-server-generation
Dec 8, 2025
Merged

fix(cli): fix generated Go MCP server run and doc#104
jmhbh merged 1 commit into
kagent-dev:mainfrom
kevdkr:kevdkr/fix-go-mcp-server-generation

Conversation

@kevdkr

@kevdkr kevdkr commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

This fixes the kmcp run command for mcp servers generated with kmcp init go and updates the generated README with the accurate file paths

Before these change

kmcp run results in the following error

Running server directly: go run main.go
Server is running and waiting for MCP protocol input on stdin...
Press Ctrl+C to stop the server
stat main.go: no such file or directory
Error: exit status 1

After these changes

  • Docs reference the proper file paths
  • kmcp run uses the right path to main.go to start the server
  • The mcp inspector server config uses the right path to main.go

This fixes the kmcp run command for mcp servers generated with kmcp init
go and updates the generated README with the accurate file paths

Signed-off-by: kevdkr <48852657+kevdkr@users.noreply.github.com>
@kevdkr kevdkr force-pushed the kevdkr/fix-go-mcp-server-generation branch from 5e556ed to 6a54820 Compare December 4, 2025 06:10
@kevdkr kevdkr marked this pull request as ready for review December 4, 2025 06:11
@jmhbh jmhbh merged commit 89d1509 into kagent-dev:main Dec 8, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants