MCP TypeScript SDK (V2)
V1 Docs
Preparing search index...
@modelcontextprotocol/server
server/completable
CompleteCallback
Type Alias CompleteCallback<T>
CompleteCallback
:
(
value
:
z.input
<
T
>
,
context
?:
{
arguments
?:
Record
<
string
,
string
>
}
,
)
=>
z.input
<
T
>
[]
|
Promise
<
z.input
<
T
>
[]
>
Type Parameters
T
extends
AnySchema
=
AnySchema
Type Declaration
(
value
:
z.input
<
T
>
,
context
?:
{
arguments
?:
Record
<
string
,
string
>
}
,
)
:
z.input
<
T
>
[]
|
Promise
<
z.input
<
T
>
[]
>
Parameters
value
:
z.input
<
T
>
Optional
context
:
{
arguments
?:
Record
<
string
,
string
>
}
Returns
z.input
<
T
>
[]
|
Promise
<
z.input
<
T
>
[]
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
V1 Docs
MCP TypeScript SDK (V2)
Loading...