Information Reference¶ MCP SDK Design Finding the SDK File Hierarchy Object Hierarchy Error Codes Macros MCP Server in Detail Transport Callbacks Working with Tools Writing Tools Registering/Unregistering Tools Working with Resources Writing Resources Registering/Unregistering Resources Working with Prompts Writing Prompts Registering/Unregistering Prompts Listing Client Roots Sending Sampling Requests MCP Client in Detail Transport Callbacks Working with Tools Listing Tools with/without Pagination Calling Tools Working with Resources Listing Resources with/without Pagination Subscribing/Unsubscribing Resources Reading Resources Working with Prompts Listing Prompts with/without Pagination Getting Prompts Sending Prompt Compilation Requests Adding/Removing Roots Sampling Request Handling In Action Important Remarks MCP HTTP Server Details MCP Server MCP Client Stateful HTTP Request Handling Sending/Reading Notifications MCP Server Notification Callbacks Sending Log Messages Sending Progress Notifications About List Changed Notifications MCP Client Notification Callbacks Setting-up Log Level Implementing Custom MCP Methods MCP Server Handling Custom Requests/Notifications Sending Custom Requests/Notifications MCP Client Handling Custom Requests/Notifications Sending Custom Responses/Notifications Overwriting the Dispatcher MCP Server MCP Client