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
3 changed files with 18 additions and 18 deletions

View file

@ -60,7 +60,7 @@ export interface OAuthClientProvider {
get clientMetadata(): OAuthClientMetadata;
/**
* Returns a OAuth2 state parameter.
* Returns an OAuth2 state parameter.
*/
state?(): string | Promise<string>;

View file

@ -32,7 +32,7 @@ export function createPrivateKeyJwtAuth(options: {
// Lazy import to avoid heavy dependency unless used
if (globalThis.crypto === undefined) {
throw new TypeError(
'crypto is not available, please ensure you add have Web Crypto API support for older Node.js versions (see https://github.com/modelcontextprotocol/typescript-sdk#nodejs-web-crypto-globalthiscrypto-compatibility)'
'crypto is not available, please ensure you have Web Crypto API support for older Node.js versions (see https://github.com/modelcontextprotocol/typescript-sdk#nodejs-web-crypto-globalthiscrypto-compatibility)'
);
}

View file

@ -44,7 +44,7 @@ export interface StartSSEOptions {
/**
* Override Message ID to associate with the replay message
* so that response can be associate with the new resumed request.
* so that the response can be associated with the new resumed request.
*/
replayMessageId?: string | number;
}
@ -255,7 +255,7 @@ export class StreamableHTTPClientTransport implements Transport {
}
/**
* Calculates the next reconnection delay using backoff algorithm
* Calculates the next reconnection delay using a backoff algorithm
*
* @param attempt Current reconnection attempt count for the specific stream
* @returns Time to wait in milliseconds before next reconnection attempt
@ -463,7 +463,7 @@ export class StreamableHTTPClientTransport implements Transport {
const { resumptionToken, onresumptiontoken } = options || {};
if (resumptionToken) {
// If we have at last event ID, we need to reconnect the SSE stream
// If we have a last event ID, we need to reconnect the SSE stream
this._startOrAuthSse({ resumptionToken, replayMessageId: isJSONRPCRequest(message) ? message.id : undefined }).catch(
error => this.onerror?.(error)
);