→ Client to Server
{
"method": "tools/call",
"params": {
"name": "deploy_app",
"env": "production"
}
}
← Server to Client
{
"method": "elicitation/create",
"params": {
"message": "Confirm deployment to production?"
}
}
→ Client to Server
{
"result": {
"confirmed": true
}
}
← Server to Client
{
"method": "sampling/createMessage",
"params": {
"prompt": "Generate deployment summary"
}
}
→ Client to Server
{
"result": {
"content": "Deployed v2.1.0 to prod..."
}
}
← Server to Client
{
"result": {
"status": "success"
}
}
⚠ Server must maintain state
Remembering: tool call, elicitation, sampling context...