JSON-RPC
- This defines the structure of communication payload
- Request
{
"jsonrpc": "2.0",
"id": 1,
"method": "user.getById",
"params": { "id": 42 }
}
- Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"id": 42,
"name": "Alice"
}
}
Sampling
- This is a concept where mcp server uses llm associated with client to get some llm response
How does the communication happen
- Prompt
Explain mcp message exchages between client and server visually
- To be discussed tomorrow
How to design an mcp server for sales
