Skip to content

Commit 1c3f38f

Browse files
authored
all: more minor cleanup (#547)
Fix broken / missing links.
1 parent 6dbf6c6 commit 1c3f38f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

docs/protocol.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ which starts the a `exec.Cmd` as a subprocess and communicates over its
128128
stdin/stdout.
129129

130130
**Server-side**: the server side of the `stdio` transport is implemented by
131-
`StdioTransport`, which connects over the current processes `os.Stdin` and
132-
`os.Stdout`.
131+
[`StdioTransport`](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/mcp#StdioTransport),
132+
which connects over the current processes `os.Stdin` and `os.Stdout`.
133133

134134
### Streamable Transport
135135

@@ -201,7 +201,7 @@ to see the logical session
201201
> Stateless mode is not directly discussed in the spec, and is still being
202202
> defined. See modelcontextprotocol/modelcontextprotocol#1364,
203203
> modelcontextprotocol/modelcontextprotocol#1372, or
204-
> modelcontextprotocol/modelcontextprotocol#11442 for potential refinements.
204+
> modelcontextprotocol/modelcontextprotocol#1442 for potential refinements.
205205
206206
_See [examples/server/distributed](../examples/server/distributed/main.go) for
207207
an example using statless mode to implement a server distributed across
@@ -267,7 +267,7 @@ The [_auth middleware example_](https://github.com/modelcontextprotocol/go-sdk/
267267

268268
Client-side OAuth is implemented by setting
269269
[`StreamableClientTransport.HTTPClient`](https://pkg.go.dev/github.com/modelcontextprotocol/[email protected]/mcp#StreamableClientTransport.HTTPClient) to a custom [`http.Client`](https://pkg.go.dev/net/http#Client)
270-
Additional support is forthcoming; see #493.
270+
Additional support is forthcoming; see modelcontextprotocol/go-sdk#493.
271271

272272
## Security
273273

internal/docs/protocol.src.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ which starts the a `exec.Cmd` as a subprocess and communicates over its
7474
stdin/stdout.
7575

7676
**Server-side**: the server side of the `stdio` transport is implemented by
77-
`StdioTransport`, which connects over the current processes `os.Stdin` and
78-
`os.Stdout`.
77+
[`StdioTransport`](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/mcp#StdioTransport),
78+
which connects over the current processes `os.Stdin` and `os.Stdout`.
7979

8080
### Streamable Transport
8181

@@ -128,7 +128,7 @@ to see the logical session
128128
> Stateless mode is not directly discussed in the spec, and is still being
129129
> defined. See modelcontextprotocol/modelcontextprotocol#1364,
130130
> modelcontextprotocol/modelcontextprotocol#1372, or
131-
> modelcontextprotocol/modelcontextprotocol#11442 for potential refinements.
131+
> modelcontextprotocol/modelcontextprotocol#1442 for potential refinements.
132132
133133
_See [examples/server/distributed](../examples/server/distributed/main.go) for
134134
an example using statless mode to implement a server distributed across
@@ -194,7 +194,7 @@ The [_auth middleware example_](https://github.com/modelcontextprotocol/go-sdk/
194194

195195
Client-side OAuth is implemented by setting
196196
[`StreamableClientTransport.HTTPClient`](https://pkg.go.dev/github.com/modelcontextprotocol/[email protected]/mcp#StreamableClientTransport.HTTPClient) to a custom [`http.Client`](https://pkg.go.dev/net/http#Client)
197-
Additional support is forthcoming; see #493.
197+
Additional support is forthcoming; see modelcontextprotocol/go-sdk#493.
198198

199199
## Security
200200

mcp/streamable_client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ func TestStreamableClientGETHandling(t *testing.T) {
310310

311311
_, err = session.ListTools(ctx, nil)
312312
if (err != nil) != (test.wantErrorContaining != "") {
313-
t.Errorf("After initialization, got error %v, want %v", err, test.wantErrorContaining)
313+
t.Errorf("After initialization, got error %v, want containing %q", err, test.wantErrorContaining)
314314
} else if err != nil {
315315
if !strings.Contains(err.Error(), test.wantErrorContaining) {
316316
t.Errorf("After initialization, got error %s, want containing %q", err, test.wantErrorContaining)

0 commit comments

Comments
 (0)