Skip to content

Commit 8384b70

Browse files
committed
return port 8080
1 parent 1a095e2 commit 8384b70

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/streamable_http/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func (m *MySessionData) String() string {
2828
// , run it with:
2929
// go run main.go
3030
// then in another terminal run:
31-
// curl -X POST -H "Content-Type: application/json" -d '{"method":"tools/call", "params": {"name": "my-great-tool", "arguments": {}},"id":0}' http://localhost/mcp
31+
// curl -X POST -H "Content-Type: application/json" -d '{"method":"tools/call", "params": {"name": "my-great-tool", "arguments": {}},"id":0}' http://localhost:8080/mcp
3232
// , then you should see the response:
3333
// {"jsonrpc":"2.0","result":{"content":[{"text":"Sup, saving greatness to session","type":"text"}]},"id":0}
3434

@@ -87,7 +87,7 @@ func main() {
8787
streamable_http.NewTransport(
8888
streamable_http.Endpoint{
8989
Hostname: "localhost",
90-
Port: 80,
90+
Port: 8080,
9191
Path: "/mcp",
9292
}),
9393
).

examples/streamable_http/main_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func TestWithFoxytest(t *testing.T) {
1212
t.Fatal(err)
1313
}
1414
ts.WithExecutable("go", []string{"run", "main.go"})
15-
ts.WithTransport(foxytest.NewTestTransportStreamableHTTP("http://localhost:80/mcp"))
15+
ts.WithTransport(foxytest.NewTestTransportStreamableHTTP("http://localhost:8080/mcp"))
1616
ts.WithLogging()
1717
cntrl := foxytest.NewTestRunner(t)
1818
ts.Run(cntrl)

0 commit comments

Comments
 (0)