MCP TypeScript SDK (V2)
V1 Docs
Preparing search index...
@modelcontextprotocol/server
server/mcp
LegacyPromptCallback
Type Alias LegacyPromptCallback<Args>
LegacyPromptCallback
:
Args
extends
ZodRawShape
?
(
args
:
InferRawShape
<
Args
>
,
ctx
:
ServerContext
,
)
=>
GetPromptResult
|
Promise
<
GetPromptResult
>
:
(
ctx
:
ServerContext
)
=>
GetPromptResult
|
Promise
<
GetPromptResult
>
PromptCallback
variant used when
argsSchema
is a
ZodRawShape
.
Type Parameters
Args
extends
ZodRawShape
|
undefined
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
V1 Docs
MCP TypeScript SDK (V2)
Loading...
PromptCallbackvariant used whenargsSchemais aZodRawShape.