Body
Required
JSON-RPC message (forwarded to the project runtime as-is)
Forwards an MCP (Model Context Protocol) request to the project's memory tool server. The project scope is carried by the route id path parameter and the org is derived from that project. The body is a single JSON-RPC message; JSON-RPC batch requests are rejected. The upstream response is proxied back verbatim.
MCP response, proxied verbatim
Project runtime not available, or a JSON-RPC batch request
Missing or invalid credentials
Caller lacks deployment-management permission
MCP access not enabled for this project
Request body exceeds the size limit
Project runtime unreachable
Project runtime does not serve MCP yet
curl \
--request POST 'https://agentengine.mongodb.com/api/v1/projects/{id}/mcp' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json"
curl \
--request POST 'https://agentengine.mongodb.com/api/v1/projects/{id}/mcp' \
--header "Authorization: $API_KEY" \
--header "Content-Type: text/plain"
{}
{}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}