docs: fix grammar, typos, and style in JSDoc comments (#1491)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan Hefner 2026-02-10 17:51:06 -06:00 • committed by GitHub
commit 7778c74e1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 18 deletions

View file

@ -886,10 +886,10 @@ export class McpServer {
/**
* Sends a logging message to the client, if connected.
* Note: You only need to send the parameters object, not the entire JSON RPC message
* Note: You only need to send the parameters object, not the entire JSON-RPC message.
* @see LoggingMessageNotification
* @param params
* @param sessionId optional for stateless and backward compatibility
* @param sessionId Optional for stateless transports and backward compatibility.
*/
async sendLoggingMessage(params: LoggingMessageNotification['params'], sessionId?: string) {
return this.server.sendLoggingMessage(params, sessionId);
@ -943,7 +943,7 @@ export class ResourceTemplate {
uriTemplate: string | UriTemplate,
private _callbacks: {
/**
* A callback to list all resources matching this template. This is required to specified, even if `undefined`, to avoid accidentally forgetting resource listing.
* A callback to list all resources matching this template. This is required to be specified, even if `undefined`, to avoid accidentally forgetting resource listing.
*/
list: ListResourcesCallback | undefined;

View file

@ -634,10 +634,10 @@ export class Server extends Protocol<ServerContext> {
/**
* Sends a logging message to the client, if connected.
* Note: You only need to send the parameters object, not the entire JSON RPC message
* Note: You only need to send the parameters object, not the entire JSON-RPC message.
* @see LoggingMessageNotification
* @param params
* @param sessionId optional for stateless and backward compatibility
* @param sessionId Optional for stateless transports and backward compatibility.
*/
async sendLoggingMessage(params: LoggingMessageNotification['params'], sessionId?: string) {
if (this._capabilities.logging && !this.isMessageIgnored(params.level, sessionId)) {