# Connect Le Chat (Mistral) to AlwaysOn Memory (MCP Setup Guide)

> AlwaysOn Memory connects to Le Chat (Mistral) (AI chat app) over Streamable HTTP MCP using browser OAuth 2.1 approval in Le Chat Connectors. Once connected, Le Chat (Mistral) can read, search, write, and hand off project memory across fresh sessions and other connected tools.

- **Canonical HTML:** https://always-on.cloud/docs/clients/le-chat
- **Markdown Mirror:** https://always-on.cloud/docs/clients/le-chat.md
- **Public Docs MCP:** https://always-on.cloud/docs/mcp
- **Agent Skill:** https://always-on.cloud/skill.md
- **Last Updated:** 2026-12-01

## How do I connect Le Chat (Mistral) to AlwaysOn Memory?

Connect Le Chat (Mistral) over Streamable HTTP MCP with OAuth 2.1 PKCE. Paste `https://always-on.cloud/mcp` (or your workspace URL `https://always-on.cloud/t/YOUR-WORKSPACE/mcp`) into Le Chat Connectors, pick OAuth, and approve access in your browser. AlwaysOn issues rotating refresh tokens and stores no static key on disk.

- **Transport**: Streamable HTTP MCP (2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05)
- **Authentication**: Browser OAuth 2.1 with PKCE S256, Dynamic Client Registration (RFC 7591), and rotating refresh tokens. No static secret is stored on disk.
- `Config location`: Le Chat Connectors
- `Universal OAuth URL`: https://always-on.cloud/mcp
- `Workspace URL`: https://always-on.cloud/t/YOUR-WORKSPACE/mcp

1. **Add AlwaysOn to Le Chat (Mistral):** In Mistral Le Chat, open Settings → Connectors → + Add Connector → Custom MCP Connector.

   _Server URL_

```text
https://always-on.cloud/t/YOUR-WORKSPACE/mcp
```

2. **Load the memory tools in Le Chat (Mistral):** Paste the Server URL below, choose OAuth, and approve access when redirected to AlwaysOn.

> **TIP — Notes:** Universal endpoint (pick any workspace during approval): https://always-on.cloud/mcp.

### Agent Context: Agent Automation & Verification Recipe (Le Chat (Mistral))

Use these exact protocol parameters when configuring or testing Le Chat (Mistral) from a script or agent. Never print or commit raw `awm_` keys or `awm_oauth_` tokens.

- Transport: Streamable HTTP JSON-RPC 2.0 POST to `https://always-on.cloud/t/YOUR-WORKSPACE/mcp` (or `https://always-on.cloud/mcp` for OAuth 2.1 clients).
- Required HTTP headers: `Content-Type: application/json`, `Accept: application/json, text/event-stream`, and `Authorization: Bearer <token>`.
- OAuth discovery: `https://always-on.cloud/.well-known/oauth-protected-resource` and `https://always-on.cloud/.well-known/oauth-authorization-server` (PKCE S256 + RFC 7591 DCR).
- Every MCP call (including `initialize`, `ping`, and `tools/list`) counts as 1 request against the workspace daily request limit (300/day Free, 5,000/day Pro Solo, 15,000/day Team; resets at 00:00 UTC).

_Verify Le Chat (Mistral) workspace endpoint and fetch a project briefing_

```bash
curl -fsS -X POST "https://always-on.cloud/t/YOUR-WORKSPACE/mcp" \
  -H "Authorization: Bearer $ALWAYSON_MEMORY_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":"1","method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"le-chat","version":"1.0"}}}'

curl -fsS -X POST "https://always-on.cloud/t/YOUR-WORKSPACE/mcp" \
  -H "Authorization: Bearer $ALWAYSON_MEMORY_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{ "jsonrpc": "2.0", "id": "verify-1", "method": "tools/call", "params": { "name": "memory_briefing", "arguments": { "workspace": "default", "project": "default" } } }'
```

## How do I verify Le Chat (Mistral) recalls memory across sessions?

Save one harmless decision, open a brand-new session so chat history is empty, and ask Le Chat (Mistral) to recall it. If it comes back accurately, the setup works—and the dashboard Setup screen logs the save, the new `initialize` handshake, and the retrieval.

1. **Save one test decision:** In Le Chat (Mistral), ask: "Save to AlwaysOn memory as a project decision: we ship the smallest useful version first."

2. **Check recall in a fresh session:** Open a new chat or restart Le Chat (Mistral), then ask: "Check AlwaysOn memory: what did we decide about the first release?"

3. **Confirm it in the dashboard:** Open **Memory** or **Setup** in AlwaysOn to see the saved memory page and the server-observed MCP events.

## How do I fix common Le Chat (Mistral) connection errors?

Most Le Chat (Mistral) setup problems come down to four things: a mistyped or revoked connection key (HTTP 401), hitting the Free browser-approved app limit (HTTP 402), a wrong workspace slug (HTTP 403), or a session that hasn't reloaded Le Chat Connectors yet.

### Why did browser approval hit an app limit error in Le Chat (Mistral)?

Free workspaces allow 1 active browser-approved app at a time (Pro Solo allows 5; Team allows 15). Open **Connections** in AlwaysOn, revoke an unused app (your saved memories stay intact), and approve Le Chat (Mistral) again.

### Should I paste the universal /mcp URL or a workspace URL into Le Chat (Mistral)?

Either works. Paste `https://always-on.cloud/mcp` if you want to pick a workspace during browser approval (or create your first free workspace on the spot). Paste `https://always-on.cloud/t/YOUR-WORKSPACE/mcp` if you want Le Chat (Mistral) locked to one workspace.

### Do I need a paid Le Chat (Mistral) plan to connect AlwaysOn Memory?

AlwaysOn doesn't require or sell a Le Chat (Mistral) subscription. Whether custom remote MCP connectors are enabled depends on your Le Chat (Mistral) plan—check Le Chat (Mistral)'s connector settings if the custom MCP option is greyed out.

## Related Documentation

- [Quickstart](https://always-on.cloud/docs/quickstart.md): Create a free AlwaysOn Memory workspace, connect Claude Code, Cursor, VS Code, Codex, ChatGPT, Claude, or Grok via MCP, and verify cross-session recall.
- [Authentication](https://always-on.cloud/docs/concepts/authentication.md): Compare OAuth 2.1 PKCE and scoped awm_ connection keys for MCP tools, plus account sign-in with email links, Google/GitHub/GitLab/OpenID SSO, and passkeys.
- [Memory tools (16)](https://always-on.cloud/docs/reference/mcp-tools.md): Parameter tables, safety annotations, and JSON-RPC examples for all 16 AlwaysOn Memory MCP tools: pages, search, briefings, handoffs, and inbox messages.
- [Error codes](https://always-on.cloud/docs/reference/errors.md): Reference for AlwaysOn Memory HTTP status codes, domain error codes, and MCP JSON-RPC error codes with exact causes and fixes.
