How to Negotiate Protocol Version and Capabilities When an MCP Client Connects
Send the protocol version on every request, call server/discover to learn what the server supports, and retry with a version both sides…
THE FIELD GUIDE
Understand model formats, context windows, quantization, embeddings, and sampling before choosing settings for a real task.
Send the protocol version on every request, call server/discover to learn what the server supports, and retry with a version both sides…
Check the server declares the subscribe feature, subscribe to the resource URI, and confirm the client gets an update notification when it…
Define a prompt with named arguments, check the client lists it for the user to select, and validate the arguments before it…
Set a log level in the request metadata, and check the server only sends messages at or above that level, with no…
Declare the completions capability, answer completion/complete with ranked values, and keep each reply under 100 items.
Ask for progress with a token in the request, and check the server reports a rising progress value with an optional total.
Let the server request structured input through a form, or send the user to a URL for sensitive data, and handle decline…
Check which folders the client lists as roots, confirm the server respects them, and plan the move off roots since the feature…
Confirm the client declares sampling support, check the server request names its model preferences, and require user approval before it runs.
Pick a resource for data the app selects, a tool for an action the model takes, and a prompt for a workflow…