Commit 89d1509
authored
fix(cli): fix generated Go MCP server run and doc (#104)
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
Signed-off-by: kevdkr <[email protected]>1 parent 78d7e1a commit 89d1509
File tree
3 files changed
+6
-6
lines changed- pkg/cli/internal
- commands
- frameworks/golang
- templates
3 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
0 commit comments