File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -111,8 +111,8 @@ func Example_prompts() {
111111
112112In MCP terms, a _ resource_ is some data selected by a URI.
113113MCP 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** :
118118Servers 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 )
127127to advertise the capability.
128128
129- TODO: list changed, subscriptions
130-
131129A
132130[ ` ResourceHandler ` ] ( https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/mcp#ResourceHandler )
133131maps a URI to the contents of a resource, which can include text, binary data,
134132or 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.
139138The SDK ensures that a read succeeds only if the URI matches a registered resource exactly,
140139or matches the URI pattern of a resource template.
141140
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ notification.
3737
3838In MCP terms, a _ resource_ is some data selected by a URI.
3939MCP 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** :
4444Servers 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 )
5353to advertise the capability.
5454
55- TODO: list changed, subscriptions
56-
5755A
5856[ ` ResourceHandler ` ] ( https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/mcp#ResourceHandler )
5957maps a URI to the contents of a resource, which can include text, binary data,
6058or 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.
6564The SDK ensures that a read succeeds only if the URI matches a registered resource exactly,
6665or matches the URI pattern of a resource template.
6766
You can’t perform that action at this time.
0 commit comments