MCP TypeScript SDK (V2)
V1 Docs
Preparing search index...
@modelcontextprotocol/server
server/mcp
BaseToolCallback
Type Alias BaseToolCallback<SendResultT, Ctx, Args>
BaseToolCallback
:
Args
extends
StandardSchemaWithJSON
?
(
args
:
StandardSchemaWithJSON
.
InferOutput
<
Args
>
,
ctx
:
Ctx
,
)
=>
SendResultT
|
Promise
<
SendResultT
>
:
(
ctx
:
Ctx
)
=>
SendResultT
|
Promise
<
SendResultT
>
Type Parameters
SendResultT
extends
Result
Ctx
extends
ServerContext
Args
extends
StandardSchemaWithJSON
|
undefined
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
V1 Docs
MCP TypeScript SDK (V2)
Loading...