internal/jsonrpc2,mcp: fix typos (#183)
- add links to doc strings - use correct symbol and package names
This commit is contained in:
parent
261a63ccc0
commit
619bc41581
1 changed files with 10 additions and 11 deletions
|
|
@ -29,7 +29,7 @@ const DefaultPageSize = 1000
|
|||
// A Server is an instance of an MCP server.
|
||||
//
|
||||
// Servers expose server-side MCP features, which can serve one or more MCP
|
||||
// sessions by using [Server.Start] or [Server.Run].
|
||||
// sessions by using [Server.Run].
|
||||
type Server struct {
|
||||
// fixed at creation
|
||||
impl *Implementation
|
||||
|
|
@ -74,8 +74,7 @@ type ServerOptions struct {
|
|||
// NewServer creates a new MCP server. The resulting server has no features:
|
||||
// add features using the various Server.AddXXX methods, and the [AddTool] function.
|
||||
//
|
||||
// The server can be connected to one or more MCP clients using [Server.Start]
|
||||
// or [Server.Run].
|
||||
// The server can be connected to one or more MCP clients using [Server.Run].
|
||||
//
|
||||
// The first argument must not be nil.
|
||||
//
|
||||
|
|
@ -733,7 +732,7 @@ func (ss *ServerSession) handle(ctx context.Context, req *jsonrpc.Request) (any,
|
|||
}
|
||||
// For the streamable transport, we need the request ID to correlate
|
||||
// server->client calls and notifications to the incoming request from which
|
||||
// they originated. See [idContext] for details.
|
||||
// they originated. See [idContextKey] for details.
|
||||
ctx = context.WithValue(ctx, idContextKey{}, req.ID)
|
||||
return handleReceive(ctx, ss, req)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue