Server
An MCP server on top of a pluggable transport.
This server automatically responds to the initialization flow as initiated by the client. You can register tools, prompts, and resources using addTool, addPrompt, and addResource. The server will then automatically handle listing and retrieval requests from the client.
Parameters
Information about this server implementation (name, version).
Configuration options for the server.
Properties
The client's reported capabilities after initialization.
The client's version information after initialization.
Functions
Registers a single prompt. The client can then retrieve the prompt.
Registers a single prompt by constructing a Prompt from given parameters.
Registers multiple prompts at once.
Registers a single resource. The client can then read the resource content.
Registers multiple resources at once.
Registers a single tool. The client can then call this tool.
Registers multiple tools at once.
Asserts that the server can handle the specified request method.
Creates a message using the server's sampling capability.
Lists the available "roots" from the client's perspective (if supported).
Registers a callback to be invoked when the server has completed initialization.
Sends a ping request to the client to check connectivity.
Removes a single prompt by name.
Removes multiple prompts at once.
Removes a single resource by URI.
Removes multiple resources at once.
Removes a single tool by name.
Removes multiple tools at once.
Sends a logging message notification to the client.
Sends a notification to the client indicating that the list of prompts has changed.
Sends a notification to the client indicating that the list of resources has changed.
Sends a resource-updated notification to the client, indicating that a specific resource has changed.
Sends a notification to the client indicating that the list of tools has changed.