Skip to content

Commit e2fef7c

Browse files
docs: fix typedoc link warnings in custom method handler JSDoc
setRequestHandler is overridden in Client/Server, so {@linkcode Protocol.setRequestHandler} resolves to the undocumented base. Use unqualified {@linkcode setRequestHandler} instead. assertCapabilityForMethod/assertNotificationCapability are protected — use plain backticks.
1 parent e4a5c5c commit e2fef7c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/core/src/shared/protocol.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ export abstract class Protocol<ContextT extends BaseContext> {
10631063
/**
10641064
* Registers a handler for a custom (non-standard) request method.
10651065
*
1066-
* Unlike {@linkcode Protocol.setRequestHandler | setRequestHandler}, this accepts any method
1066+
* Unlike {@linkcode setRequestHandler}, this accepts any method
10671067
* string and validates incoming params against a user-provided schema instead of an SDK-defined
10681068
* one. Capability checks are skipped. The handler receives the same {@linkcode BaseContext | context}
10691069
* as standard handlers, including cancellation, task support, and bidirectional send/notify.
@@ -1138,7 +1138,7 @@ export abstract class Protocol<ContextT extends BaseContext> {
11381138
* Unlike {@linkcode Protocol.request | request}, this accepts any method string. Capability
11391139
* checks do not apply to custom methods regardless of
11401140
* {@linkcode ProtocolOptions.enforceStrictCapabilities}, since
1141-
* {@linkcode Protocol.assertCapabilityForMethod | assertCapabilityForMethod} only covers
1141+
* `assertCapabilityForMethod` only covers
11421142
* standard MCP methods.
11431143
*
11441144
* Pass a `{ params, result }` schema bundle as the third argument to get typed `params` and
@@ -1181,7 +1181,7 @@ export abstract class Protocol<ContextT extends BaseContext> {
11811181
* Unlike {@linkcode Protocol.notification | notification}, this accepts any method string. It
11821182
* routes through {@linkcode Protocol.notification | notification}, so debouncing and task-queued
11831183
* delivery apply. Capability checks are a no-op for custom methods since
1184-
* {@linkcode Protocol.assertNotificationCapability | assertNotificationCapability} only covers
1184+
* `assertNotificationCapability` only covers
11851185
* standard MCP notifications.
11861186
*
11871187
* Pass a `{ params }` schema bundle as the third argument to get typed `params` and pre-send

0 commit comments

Comments
 (0)