Skip to content

Commit 7a89c31

Browse files
Correct go run commands to run the logging file (#566)
Readme update and clarification Targeting only the main.go doesn't add the logging file and causes errors when finding additional functions. ``` mcp-server-testing main*​ ☸ prod-3-d 33s ❯ go run main.go server # command-line-arguments ./main.go:127:24: undefined: LoggingHandler mcp-server-testing main*​ ☸ prod-3-d ❯ go run . server 2025/10/09 11:33:13 MCP server listening on localhost:8000 2025/10/09 11:33:13 Available tool: cityTime (cities: nyc, sf, boston) ```
1 parent 4c0a015 commit 7a89c31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/http/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ The example implements:
1313
Start the Server
1414

1515
```bash
16-
go run main.go server
16+
go run . server
1717
```
1818
This starts an MCP server on `http://localhost:8080` (default) that provides a `cityTime` tool.
1919

2020
To run a client in another terminal:
2121

2222
```bash
23-
go run main.go client
23+
go run . client
2424
```
2525

2626
The client will:
@@ -32,7 +32,7 @@ The client will:
3232
At any given time you can pass a custom URL to the program to run it on a custom host/port:
3333

3434
```
35-
go run main.go -host 0.0.0.0 -port 9000 server
35+
go run . -host 0.0.0.0 -port 9000 server
3636
```
3737

3838
## Testing with real-world MCP Clients

0 commit comments

Comments
 (0)