Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion src/content/docs/docs/model-context-protocol.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ if err := server.ServeStdio(ctx); err != nil {

### Stdio Transport

You can use either Stdio or SSE
You can use either Stdio, SSE, or Streamable HTTP

```go
Stdio: &mcp.StdioConfig{
Expand All @@ -609,6 +609,12 @@ SSE: &mcp.SSEConfig{
}
```

```go
StreamableHTTP: &mcp.StreamableHTTPConfig{
BaseURL: "http://localhost:3000/mcp",
}
```

## Testing

### Testing Your MCP Server
Expand Down Expand Up @@ -647,6 +653,17 @@ type StdioConfig struct {
}
```

###
Comment thread
kevensen marked this conversation as resolved.
Outdated

```go
type StreamableHTTPConfig struct {
BaseURL string
Headers map[string]string
HTTPClient *http.Client // Optional custom HTTP client
Timeout time.Duration // HTTP request timeout
}
```

### MCPServerConfig

```go
Expand Down