Dense-Mem

Integrate an MCP client

Follow one host operation from authenticated discovery through a retry.

Open the interactive lesson

Discover · Step 1

Resolve the actor and available tools

Integrate an MCP client
Discover Resolve the actor and available tools
Call Retain the exact request and operation key
Recover Resolve an unknown outcome
The authenticated tool list establishes what this host can call.

Configure the MCP transport and credential in the host. Read the tools exposed by the connected service before building a request.

Inspect this step

The Python package, Google ADK integration, and LangChain tools wrap the current MCP contract. Use the Framework Integrations guide for the exact adapter setup and supported runtime versions.

Call · Step 2

Retain the exact request and operation key

Integrate an MCP client
Discover Resolve the actor and available tools
Call Retain the exact request and operation key
Recover Resolve an unknown outcome
Matching request identity gives a retry one durable outcome.

Build the exact payload, choose the destination from user intent, and retain a fresh operation key. Follow progress events until the terminal response arrives.

Inspect this step

A client can display a progress token when the transport supports it. Use returned Evidence handles for follow-up calls.

Recover · Step 3

Resolve an unknown outcome

Integrate an MCP client
Discover Resolve the actor and available tools
Call Retain the exact request and operation key
Recover Resolve an unknown outcome
A safe retry preserves the original request identity.

When a connection ends before the terminal response, retry with the same operation key and the same arguments when the contract allows it. Follow the response’s recovery guidance.

Inspect this step

A changed payload requires a new operation identity. A stale topic or retired contract requires a refreshed handle or a deliberate new request.

Walkthrough steps