@@ -30,7 +30,8 @@ export interface ExtensionHost<ContextT extends BaseContext> {
3030}
3131
3232/**
33- * Options for {@linkcode Client.extension} / {@linkcode Server.extension }.
33+ * Options for {@linkcode @modelcontextprotocol/client!client/client.Client#extension | Client.extension } /
34+ * {@linkcode @modelcontextprotocol/server!server/server.Server#extension | Server.extension }.
3435 */
3536export interface ExtensionOptions < P extends AnySchema > {
3637 /**
@@ -45,7 +46,8 @@ export interface ExtensionOptions<P extends AnySchema> {
4546 * A scoped handle for registering and sending custom JSON-RPC methods belonging to a single
4647 * SEP-2133 extension.
4748 *
48- * Obtained via {@linkcode Client.extension} or {@linkcode Server.extension}. Creating a handle
49+ * Obtained via {@linkcode @modelcontextprotocol/client!client/client.Client#extension | Client.extension } or
50+ * {@linkcode @modelcontextprotocol/server!server/server.Server#extension | Server.extension }. Creating a handle
4951 * declares the extension in `capabilities.extensions[id]` so it is advertised during `initialize`.
5052 * Handlers registered through the handle are thus structurally guaranteed to belong to a declared
5153 * extension.
@@ -58,7 +60,7 @@ export class ExtensionHandle<Local extends JSONObject, Peer = JSONObject, Contex
5860 private _peerSettingsCache ?: { value : Peer | undefined } ;
5961
6062 /**
61- * @internal Use { @linkcode Client.extension} or { @linkcode Server.extension} to construct.
63+ * @internal Use ` Client.extension()` or ` Server.extension()` to construct.
6264 */
6365 constructor (
6466 private readonly _host : ExtensionHost < ContextT > ,
@@ -105,7 +107,7 @@ export class ExtensionHandle<Local extends JSONObject, Peer = JSONObject, Contex
105107
106108 /**
107109 * Registers a request handler for a custom method belonging to this extension. Delegates to
108- * { @linkcode Protocol.setCustomRequestHandler | setCustomRequestHandler} ; the collision guard
110+ * the underlying ` setCustomRequestHandler` ; the collision guard
109111 * against standard MCP methods applies.
110112 */
111113 setRequestHandler < P extends AnySchema > (
@@ -118,7 +120,7 @@ export class ExtensionHandle<Local extends JSONObject, Peer = JSONObject, Contex
118120
119121 /**
120122 * Registers a notification handler for a custom method belonging to this extension. Delegates
121- * to { @linkcode Protocol.setCustomNotificationHandler | setCustomNotificationHandler} .
123+ * to the underlying ` setCustomNotificationHandler` .
122124 */
123125 setNotificationHandler < P extends AnySchema > (
124126 method : string ,
0 commit comments