DeepSeek
DeepSeek's HTTP API is not a Model Context Protocol client. A Unimatrix mcpServers block does not belong in the DeepSeek console, and Unimatrix cannot read historical DeepSeek chats. Two separate mechanisms in this repository matter: memory tools you call yourself, and the capture gateway that forwards a non-streaming completion to DeepSeek.
Memory tools
Create a Unimatrix API key under Settings → API Keys. The key is umx_ plus 32 hex characters, and the raw value is returned once. Send it as Authorization: Bearer.
MCP clients use https://www.deployunimatrix.com/api/mcp. Tokens from Settings → MCP Tokens are different: umx_, 8 hex characters, an underscore, and 56 hex characters. Those tokens are for the MCP server.
Other clients use the REST tools. GET /api/tools returns the schemas (?format=mcp returns the MCP definitions). POST /api/tools/call takes toolName, args, and an optional top-level sourceLlm. Set sourceLlm to deepseek when the memory came from a DeepSeek exchange. Connecting the provider creates an LLM Histories space and a DeepSeek History location, which that sourceLlm value can select when the location exists.
unimatrix_recall takes a query string. unimatrix_store_memory takes content. Read GET /api/tools before sending other arguments. Recall is explicit: the gateway does not prepend saved memories to a DeepSeek request.
Capture gateway
In Settings → AI Providers the DeepSeek card lists deepseek-chat and deepseek-coder. The key link on that card is https://platform.deepseek.com/api_keys. Saving the provider runs a short completion through LLMProviderFactory: the user message is Reply with exactly: ok, with maxTokens 8 and temperature 0. The deepseek case constructs DeepSeekProvider, which always posts to https://api.deepseek.com/chat/completions.
The connected row shows POST /api/llm-providers/<provider-id>/chat. A Unimatrix API key or a signed-in session can call it. messages must contain 1 to 50 objects. Each role is system, user, or assistant, and each content string must be non-empty and at most 50,000 characters. options.maxTokens is an integer from 1 to 32000, temperature is 0 to 2, and topP is 0 to 1. Setting options.stream returns an error because capture needs the full reply.
The route decrypts the stored key for that call, forwards your messages, and then sends the exchange to the internal capture service. A stored exchange is encrypted, tagged source:deepseek, llm-source:deepseek, and model:<model>, and a Librarian job is queued. The JSON body includes the adapter result plus capture. capture.captured is true, with capture.memoryId, only when storage accepts the exchange. Otherwise capture.captured is false and capture.warning explains the miss. An empty reply is not stored.
The signed-in agent at /agent does not call DeepSeek. Its dispatcher implements claude, openai, gemini, groq, and ollama only.