Join us May 13th & May 14th at Interrupt, the Agent Conference by LangChain. Buy tickets >
curl --request POST \
--url https://api.example.com/mcp/ \
--header 'Accept: <accept>' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "initialize",
"params": {
"clientInfo": {
"name": "test_client",
"version": "1.0.0"
},
"protocolVersion": "2024-11-05",
"capabilities": {}
}
}
'{}Implemented according to the Streamable HTTP Transport specification. Sends a JSON-RPC 2.0 message to the server.
jsonrpc, id, method, and optional params.Notes:
curl --request POST \
--url https://api.example.com/mcp/ \
--header 'Accept: <accept>' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "initialize",
"params": {
"clientInfo": {
"name": "test_client",
"version": "1.0.0"
},
"protocolVersion": "2024-11-05",
"capabilities": {}
}
}
'{}Documentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
Accept header must include both 'application/json' and 'text/event-stream' media types.
application/json, text/event-stream A JSON-RPC 2.0 request, notification, or response object.
Successful JSON-RPC response.
The response is of type object.
Was this page helpful?