From ec8fb49c6bbb2f2e88fac305339546741a597a4e Mon Sep 17 00:00:00 2001 From: Rob Findley Date: Wed, 21 May 2025 13:47:00 +0000 Subject: [PATCH] all: fix typos Fix some typos found during the Google import of x/tools. Change-Id: I8ea38d3e1bd09bedbc98ed8c8146e88e84aa051f Reviewed-on: https://go-review.googlesource.com/c/tools/+/674975 Auto-Submit: Robert Findley Reviewed-by: Hongxiang Jiang LUCI-TryBot-Result: Go LUCI --- design/design.md | 2 +- mcp/shared.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/design/design.md b/design/design.md index 0c5bdfa..41ee445 100644 --- a/design/design.md +++ b/design/design.md @@ -744,7 +744,7 @@ func (s *Server) RemoveResources(uris ...string) func (s *Server) RemoveResourceTemplates(uriTemplates ...string) ``` -The `ReadResource` method finds a resource or resource template matching the argument URI and calls its assocated handler. +The `ReadResource` method finds a resource or resource template matching the argument URI and calls its associated handler. To read files from the local filesystem, we recommend using `FileResourceHandler` to construct a handler: diff --git a/mcp/shared.go b/mcp/shared.go index 632de61..64b44ee 100644 --- a/mcp/shared.go +++ b/mcp/shared.go @@ -139,7 +139,7 @@ func sessionMethod[S ClientSession | ServerSession, P, R any](f func(*S, context const ( // The error code to return when a resource isn't found. // See https://modelcontextprotocol.io/specification/2025-03-26/server/resources#error-handling - // However, the code they chose in in the wrong space + // However, the code they chose is in the wrong space // (see https://github.com/modelcontextprotocol/modelcontextprotocol/issues/509). // so we pick a different one, arbirarily for now (until they fix it). // The immediate problem is that jsonprc2 defines -32002 as "server closing".