Skip to content

Commit 8756e5d

Browse files
committed
fix
1 parent be5ae01 commit 8756e5d

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

docs/server.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ func Example_prompts() {
111111

112112
In MCP terms, a _resource_ is some data selected by a URI.
113113
MCP servers can serve resources to clients.
114-
Resource templates use a URI pattern to describe a collection of resources.
115-
Servers register resources and resource templates, and clients can list and read them.
114+
They can register resources individually, or register a _resource template_
115+
that uses a URI pattern to describe a collection of resources.
116116

117117
**Server-side**:
118118
Servers use
@@ -126,16 +126,15 @@ If all resources or resource templates are to be added after connection, set
126126
[`ServerOptions.HasResources`](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/mcp#ServerOptions.HasResources)
127127
to advertise the capability.
128128

129-
TODO: list changed, subscriptions
130-
131129
A
132130
[`ResourceHandler`](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/mcp#ResourceHandler)
133131
maps a URI to the contents of a resource, which can include text, binary data,
134132
or both.
135133

136134

137135
**Client-side**:
138-
[`ClientSession.ReadResource`](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/mcp#ClientSession.ReadResource)
136+
Call [`ClientSession.ReadResource`](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/mcp#ClientSession.ReadResource)
137+
to read a resource.
139138
The SDK ensures that a read succeeds only if the URI matches a registered resource exactly,
140139
or matches the URI pattern of a resource template.
141140

internal/docs/server.src.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ notification.
3737

3838
In MCP terms, a _resource_ is some data selected by a URI.
3939
MCP servers can serve resources to clients.
40-
Resource templates use a URI pattern to describe a collection of resources.
41-
Servers register resources and resource templates, and clients can list and read them.
40+
They can register resources individually, or register a _resource template_
41+
that uses a URI pattern to describe a collection of resources.
4242

4343
**Server-side**:
4444
Servers use
@@ -52,16 +52,15 @@ If all resources or resource templates are to be added after connection, set
5252
[`ServerOptions.HasResources`](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/mcp#ServerOptions.HasResources)
5353
to advertise the capability.
5454

55-
TODO: list changed, subscriptions
56-
5755
A
5856
[`ResourceHandler`](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/mcp#ResourceHandler)
5957
maps a URI to the contents of a resource, which can include text, binary data,
6058
or both.
6159

6260

6361
**Client-side**:
64-
[`ClientSession.ReadResource`](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/mcp#ClientSession.ReadResource)
62+
Call [`ClientSession.ReadResource`](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/mcp#ClientSession.ReadResource)
63+
to read a resource.
6564
The SDK ensures that a read succeeds only if the URI matches a registered resource exactly,
6665
or matches the URI pattern of a resource template.
6766

0 commit comments

Comments
 (0)