MCP TypeScript SDK (V2)
V1 Docs
Preparing search index...
@modelcontextprotocol/server
server/mcp
RegisteredTool
Type Alias RegisteredTool
type
RegisteredTool
=
{
_meta
?:
Record
<
string
,
unknown
>
;
annotations
?:
ToolAnnotations
;
description
?:
string
;
enabled
:
boolean
;
execution
?:
ToolExecution
;
handler
:
AnyToolHandler
<
AnySchema
|
undefined
>
;
inputSchema
?:
AnySchema
;
outputSchema
?:
AnySchema
;
title
?:
string
;
disable
()
:
void
;
enable
()
:
void
;
remove
()
:
void
;
update
(
updates
:
{
_meta
?:
Record
<
string
,
unknown
>
;
annotations
?:
ToolAnnotations
;
callback
?:
ToolCallback
<
AnySchema
>
;
description
?:
string
;
enabled
?:
boolean
;
name
?:
string
|
null
;
outputSchema
?:
AnySchema
;
paramsSchema
?:
AnySchema
;
title
?:
string
;
}
,
)
:
void
;
}
Index
Properties
_
meta?
annotations?
description?
enabled
execution?
handler
input
Schema?
output
Schema?
title?
Methods
disable
enable
remove
update
Properties
Optional
_
meta
_meta
?:
Record
<
string
,
unknown
>
Optional
annotations
annotations
?:
ToolAnnotations
Optional
description
description
?:
string
enabled
enabled
:
boolean
Optional
execution
execution
?:
ToolExecution
handler
handler
:
AnyToolHandler
<
AnySchema
|
undefined
>
Optional
input
Schema
inputSchema
?:
AnySchema
Optional
output
Schema
outputSchema
?:
AnySchema
Optional
title
title
?:
string
Methods
disable
disable
()
:
void
Returns
void
enable
enable
()
:
void
Returns
void
remove
remove
()
:
void
Returns
void
update
update
(
updates
:
{
_meta
?:
Record
<
string
,
unknown
>
;
annotations
?:
ToolAnnotations
;
callback
?:
ToolCallback
<
AnySchema
>
;
description
?:
string
;
enabled
?:
boolean
;
name
?:
string
|
null
;
outputSchema
?:
AnySchema
;
paramsSchema
?:
AnySchema
;
title
?:
string
;
}
,
)
:
void
Parameters
updates
:
{
_meta
?:
Record
<
string
,
unknown
>
;
annotations
?:
ToolAnnotations
;
callback
?:
ToolCallback
<
AnySchema
>
;
description
?:
string
;
enabled
?:
boolean
;
name
?:
string
|
null
;
outputSchema
?:
AnySchema
;
paramsSchema
?:
AnySchema
;
title
?:
string
;
}
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
_
meta
annotations
description
enabled
execution
handler
input
Schema
output
Schema
title
Methods
disable
enable
remove
update
V1 Docs
MCP TypeScript SDK (V2)
Loading...