ToolMetadata
Metadata interface for defining MCP tools.Unique identifier for the tool
Human-readable description
Optional hints about tool behavior
ToolAnnotations
Hints about tool behavior and characteristics.Human-readable title for the tool
If true, the tool does not modify its environment
If true, the tool may perform destructive updates
If true, repeated calls with same args have no additional effect
If true, tool interacts with external entities
Additional custom annotations
ToolSchema
Type definition for tool input schemas.InferSchema
Utility type for inferring TypeScript types from tool schemas.ToolSchema definition, supporting both Zod v3 and v4 schemas.
ToolExtraArguments
Extra arguments passed to MCP tool functions.An abort signal used to communicate if the request was cancelled from the sender’s side
Information about a validated access token, provided to request handlers
The access token
The client ID associated with this token
Scopes associated with this token
When the token expires (in seconds since epoch)
The RFC 8707 resource server identifier for which this token is valid
Additional data associated with the token
The session ID from the transport, if available
Metadata from the original request
Progress token for tracking long-running operations
The JSON-RPC ID of the request being handled
The original HTTP request information
The headers of the request
Sends a notification that relates to the current request being handled
Sends a request that relates to the current request being handledSignature:
Progress notification callback
Abort signal for cancelling the request
Request timeout in milliseconds
Whether receiving progress notifications resets the timeout
Maximum total time to wait for a response
Additional transport-specific options