Trident MCP Documentation
Technical reference for the coherence engine. Setup, architecture, API reference, and guides for building with 40 MCP tools.
Overview
Trident is a coherence engine for multi-agent systems, sold by Cetacean Labs as an API product. It provides persistent memory, shared intelligence, and structural coherence verification for AI agents through a single MCP endpoint.
Multiple AI agents and coding assistants connect to the same Trident tenant simultaneously. Knowledge shared by one system is immediately searchable by all others.
Key Details
trident.cetaceanlabs.comconsole.cetaceanlabs.comMCP SSE + JSON-RPC 2.040 MCP Tools
Full coherence toolkit via a single endpoint
6,000+ Apps
Claude Code, Cowork, Gemini CLI, Codex, Zapier
Multi-Tenant
Isolated per-tenant memory with shared intelligence
Architecture
Trident operates as a three-layer system: a TypeScript gateway handling auth, MCP transport, and metering; a Rust coherence engine powering vector search, learning loops, and knowledge graphs; and per-tenant isolation ensuring data separation.
┌──────────────────────────────────────────────┐
│ AI Agents & Coding Assistants │
│ │
│ Claude Code Cowork Gemini CLI Codex │
│ │ │ │ │ │
│ └─────┬─────┘ └────┬─────┘ │
│ │ MCP SSE / REST │ │
└─────────────┼─────────────────────┼──────────┘
│ │
┌─────────────▼─────────────────────▼──────────┐
│ Trident Gateway (TypeScript) │
│ │
│ ┌─────────┐ ┌──────────┐ ┌──────────────┐ │
│ │ Auth │ │ MCP SSE │ │ Rate Limit │ │
│ │ Keys │ │Transport │ │ & Metering │ │
│ └────┬────┘ └────┬─────┘ └──────┬───────┘ │
│ │ │ │ │
│ ┌────▼───────────▼──────────────▼───────┐ │
│ │ Tenant Isolation (X-Tenant-Id) │ │
│ └───────────────────┬───────────────────┘ │
└──────────────────────┼────────────────────────┘
│
┌──────────────────────▼────────────────────────┐
│ Trident Engine (Rust) │
│ │
│ ┌─────────┐ ┌─────────┐ ┌──────────────┐ │
│ │ HNSW │ │ SONA │ │ Knowledge │ │
│ │ Vector │ │Learning │ │ Graph │ │
│ │ Search │ │ 3-Loop │ │ + Witness │ │
│ └─────────┘ └─────────┘ └──────────────┘ │
│ ┌─────────┐ ┌─────────┐ ┌──────────────┐ │
│ │ Horn │ │ LoRA │ │ WASM │ │
│ │ Clause │ │Federated│ │ Nodes │ │
│ │Reasoner │ │Learning │ │ │ │
│ └─────────┘ └─────────┘ └──────────────┘ │
└───────────────────────────────────────────────┘Shared Intelligence Across Systems
Multiple AI agents connect to the same Trident tenant simultaneously. Knowledge shared by one system is immediately searchable by all others.
Claude Code (AWB) Oceanic CRM Agent Deep Canyon Bot
│ │ │
│ share_knowledge() │ │
├─────────────────────────►│ │
│ │ search_knowledge() │
│ ├─────────────────────────►│
│ ┌────▼────┐ │
│ │ Trident │ │
│ │ Shared │ │
│ │ Memory │ │
│ └─────────┘ │
│ │ │
│◄─────────────────────────┤ search returns AWB's │
│ cross-system transfer │ learnings to CRM agent │Gateway Layer
Auth, MCP SSE transport, rate limiting, metering, Stripe billing. TypeScript/Express.
Engine Layer
HNSW vector search, SONA learning, Horn Clause reasoning, knowledge graph, witness chains. Rust.
Tenant Isolation
Per-tenant HNSW indices, isolated on-disk persistence, X-Tenant-Id header routing.
Quick Start
Add Trident to any MCP-compatible client with a single configuration block. Get your API key at console.cetaceanlabs.com.
{
"mcpServers": {
"trident": {
"url": "https://trident.cetaceanlabs.com/sse",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Once connected, your AI assistant has access to all Trident tools based on your tier. Use them naturally:
> search for any prior research on "healthcare staffing demand"
> share this finding as knowledge: VP outreach converts 3.2x better on Tuesdays
> check cognitive statusMultiple Systems in Parallel
Connect multiple AI systems to the same Trident tenant for shared intelligence. Each system gets its own API key but shares the same knowledge store.
// Project A — .mcp.json
{
"mcpServers": {
"trident": {
"url": "https://trident.cetaceanlabs.com/sse",
"headers": { "Authorization": "Bearer trident_live_project_a_key" }
}
}
}
// Project B — same tenant, different key
{
"mcpServers": {
"trident": {
"url": "https://trident.cetaceanlabs.com/sse",
"headers": { "Authorization": "Bearer trident_live_project_b_key" }
}
}
}Supported tools: Claude Code, Cowork, Gemini CLI, Antigravity, OpenAI Codex, and 6,000+ apps via Zapier.
Three Prongs
Trident is organized into three capability tiers (prongs). Each prong unlocks progressively more advanced tools. Memory is available on all tiers; Intelligence and Coherence unlock at Builder and Pro respectively.
Memory
Persistent vector memory, semantic search, knowledge sharing, and data pipeline. Every insight, every decision, every correction is remembered and retrievable across all connected agents.
share_knowledgesearch_knowledgelist_knowledgeget_knowledgevote_knowledgedelete_knowledgecognitive_statusIntelligence
Reasoning, three-loop learning, knowledge graph, and Tridentpedia wiki. Agents learn from each other in real time through Bayesian cross-agent belief sharing and neural inference.
reasongroundview_extractionscognitive_statepage_cruddeltasevidence_gatespromotiongraph_partitioningdrift_detectionCoherence
Drift detection, training pipelines, witness chains, WASM nodes, and temporal analysis. Structural verification ensures your multi-agent system stays mathematically consistent.
lora_submitlora_latestweight_syncwasm_deploywasm_invokewasm_listwasm_statuswasm_removetemporal_analysistransfer_learning40 MCP Tools
Trident exposes 40 tools via the MCP protocol, organized into 10 categories. Tools are tier-gated — your plan determines which tools are available.
Search Ranking Pipeline
Trident uses a multi-signal hybrid scoring system for knowledge retrieval. Base scores combine keyword, cosine, and graph signals. AGI enhancements and coherence layers add additional ranking dimensions.
Base Score = keyword_boost × 0.85 + cosine × 0.05 + graph_ppr × 0.04
+ rep × 0.03 + vote × 0.03
AGI Enhancements:
+ GWT attention competition winners (+0.10 boost)
+ K-WTA sparse activation (+0.05)
+ SONA pattern centroid similarity (× quality, 0.15 weight)
+ Meta-curiosity novelty scoring (+0.05)
Coherence Layers:
+ Attractor stability (Lyapunov) (0.05 weight)
+ Strange-loop meta-cognitive scoring (0.04 weight)REST API
Every Trident capability is available via REST in addition to MCP. Use standard HTTP requests with Bearer token authentication for direct programmatic access from any language or platform.
Base URL: https://trident.cetaceanlabs.com
Auth: Authorization: Bearer trident_live_YOUR_KEY
Store Knowledge
Store a piece of knowledge in the coherence engine. Trident automatically generates embeddings, indexes the content, and makes it available for semantic search.
curl -X POST https://trident.cetaceanlabs.com/v1/memories \
-H "Authorization: Bearer trident_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "VP outreach converts 3.2x better on Tuesdays",
"category": "sales-insight",
"tags": ["outreach", "timing", "conversion"]
}'Search Knowledge
Full-text semantic search across all stored knowledge. Available as both GET (query params) and POST (JSON body) for flexibility.
# Full-text semantic search
curl -X POST https://trident.cetaceanlabs.com/v1/memories/search \
-H "Authorization: Bearer trident_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "healthcare staffing demand",
"limit": 10
}'
# Also available as GET with query params
curl "https://trident.cetaceanlabs.com/v1/memories/search?q=healthcare+staffing&limit=10" \
-H "Authorization: Bearer trident_live_YOUR_KEY"List Knowledge
Paginated listing of all stored memories. Use limit and offset for pagination.
curl "https://trident.cetaceanlabs.com/v1/memories/list?limit=20&offset=0" \
-H "Authorization: Bearer trident_live_YOUR_KEY"Coherence Reasoning
Submit a query to the coherence engine for reasoning. The engine applies Horn Clause reasoning, SONA learning, and graph-based inference to produce grounded answers. Builder+ tier required.
curl -X POST https://trident.cetaceanlabs.com/v1/reason \
-H "Authorization: Bearer trident_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "What patterns exist in our Q1 sales data?",
"context": "Analyzing quarterly performance across regions"
}'Verify Claims
Ground and verify claims against stored knowledge. Returns a confidence score and supporting evidence. Builder+ tier required.
curl -X POST https://trident.cetaceanlabs.com/v1/verify \
-H "Authorization: Bearer trident_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"claim": "Enterprise deals close 40% faster with technical champion",
"evidence_threshold": 0.7
}'Client Management
Clients represent individual connections to your Trident tenant. Each client gets a public Client ID and a secret API Key. You can create clients for different integration types, rotate keys without losing history, and revoke access instantly.
Client ID
trident_cid_*Public identifier. Safe to log, display in dashboards, and include in configs. Persists across key rotations.
API Key
trident_live_*Secret. Shown only once at creation or rotation. Use as Bearer token for authentication.
Client Types
restDirect API integrationmcpMCP SSE transportbotSlack, Teams, DiscordzapierZapier automationCreate Client
curl -X POST https://trident.cetaceanlabs.com/v1/console/clients \
-H "Authorization: Bearer trident_live_YOUR_ADMIN_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Production Claude Code",
"type": "mcp"
}'
# Response:
# {
# "client": {
# "id": "trident_cid_abc123", ← public Client ID
# "name": "Production Claude Code",
# "type": "mcp",
# "createdAt": "2026-04-09T..."
# },
# "apiKey": "trident_live_sk_..." ← secret, shown once
# }List Clients
curl https://trident.cetaceanlabs.com/v1/console/clients \
-H "Authorization: Bearer trident_live_YOUR_ADMIN_KEY"
# Response:
# {
# "clients": [
# { "id": "trident_cid_abc123", "name": "Production Claude Code", "type": "mcp" },
# { "id": "trident_cid_def456", "name": "Zapier Integration", "type": "zapier" },
# { "id": "trident_cid_ghi789", "name": "Slack Bot", "type": "bot" }
# ]
# }Rotate API Key
Generates a new API key for the client. The Client ID stays the same, but the old key is immediately invalidated.
# Rotate API key — keeps Client ID, invalidates old key
curl -X POST https://trident.cetaceanlabs.com/v1/console/clients/trident_cid_abc123/rotate \
-H "Authorization: Bearer trident_live_YOUR_ADMIN_KEY"
# Response:
# {
# "clientId": "trident_cid_abc123",
# "apiKey": "trident_live_sk_NEW_KEY..." ← new secret, shown once
# }Revoke Client
Permanently deletes the client and invalidates its API key. This action cannot be undone.
# Permanently revoke a client and its API key
curl -X DELETE https://trident.cetaceanlabs.com/v1/console/clients/trident_cid_abc123 \
-H "Authorization: Bearer trident_live_YOUR_ADMIN_KEY"MCP SSE Transport Protocol
Trident implements the MCP SSE transport for real-time bidirectional communication between clients and the coherence engine.
Client Trident Gateway
│ │
│ GET /sse │
│ Authorization: Bearer <key> │
├──────────────────────────────────────►│
│ │
│ event: endpoint │
│ data: /messages?sessionId=<uuid> │
│◄──────────────────────────────────────┤
│ │
│ POST /messages?sessionId=<uuid> │
│ { "jsonrpc": "2.0", │
│ "method": "initialize", ... } │
├──────────────────────────────────────►│
│ │
│ event: message │
│ data: { "jsonrpc": "2.0", │
│ "result": { "capabilities": ... }} │
│◄──────────────────────────────────────┤
│ │
│ POST /messages (tools/call) │
│ { "method": "tools/call", │
│ "params": { "name": │
│ "share_knowledge", ... }} │
├──────────────────────────────────────►│
│ event: message (result) │
│◄──────────────────────────────────────┤Supported JSON-RPC Methods
initialize— Protocol handshake, returns capabilitiestools/list— Returns available tools for tenant's tiertools/call— Execute a tool, proxied to engineping— Keepalivenotifications/initialized— Client ready signal
Step-by-Step SSE Connection
The SSE transport uses a two-channel pattern: a persistent SSE stream for server-to-client events, and standard POST requests for client-to-server messages. Here is how to connect manually with curl.
1. Open SSE Stream
Connect to /sse with your Bearer token. The server responds with an endpoint event containing the session-specific message URL.
# 1. Open SSE connection
curl -N "https://trident.cetaceanlabs.com/sse" \
-H "Authorization: Bearer trident_live_YOUR_KEY" \
-H "Accept: text/event-stream"
# Server sends:
# event: endpoint
# data: /messages?sessionId=550e8400-e29b-41d4-a716-4466554400002. Initialize Session
Send a JSON-RPC initialize request to the session URL. The response arrives on the SSE stream.
# 2. Initialize the session
curl -X POST "https://trident.cetaceanlabs.com/messages?sessionId=550e8400-..." \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2024-11-05",
"capabilities": {},
"clientInfo": { "name": "my-app", "version": "1.0.0" }
}
}'3. Call Tools
Use tools/call with the tool name and arguments. Results stream back on the SSE connection.
# 3. Call a tool
curl -X POST "https://trident.cetaceanlabs.com/messages?sessionId=550e8400-..." \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "share_knowledge",
"arguments": {
"content": "API response times improved 40% after caching layer",
"category": "engineering"
}
}
}'Tool / REST Mapping
Every MCP tool has a corresponding REST endpoint. Use this table to translate between the two interfaces.
| MCP Tool | Method | REST Endpoint | Prong |
|---|---|---|---|
share_knowledge | POST | /v1/memories | I |
search_knowledge | GET/POST | /v1/memories/search | I |
list_knowledge | GET | /v1/memories/list | I |
get_knowledge | GET | /v1/memories/:id | I |
vote_knowledge | POST | /v1/memories/:id/vote | I |
delete_knowledge | DELETE | /v1/memories/:id | I |
cognitive_status | GET | /v1/status | I |
reason | POST | /v1/reason | II |
ground | POST | /v1/verify | II |
view_extractions | GET | /v1/explore | II |
cognitive_state | GET | /v1/sona/stats | II |
page_crud | GET/POST | /v1/pages | II |
graph_partitioning | GET | /v1/partition | III |
drift_detection | GET | /v1/drift | III |
transfer_learning | POST | /v1/transfer | III |
temporal_analysis | GET | /v1/temporal | III |
lora_submit | POST | /v1/lora/submit | III |
lora_latest | GET | /v1/lora/latest | III |
Usage Note
MCP tools are called via tools/call over the SSE transport. REST endpoints accept standard HTTP requests. Both interfaces require Bearer token authentication and respect the same tier-gating rules. The REST API is ideal for server-to-server integrations, webhooks, and any environment where MCP is not available.
API Reference
All endpoints under /v1/ require an Authorization: Bearer <key> header.
While MCP is the primary integration path, the REST API is available for direct programmatic access.
Health & Status
/v1/health/v1/statusMCP Transport
/sse/messagesProng I — Memory (All tiers)
/v1/memories/v1/memories/search/v1/memories/list/v1/memories/:id/v1/memories/:id/vote/v1/memories/:idProng II — Intelligence (Builder+)
/v1/transfer/v1/verify/v1/explore/v1/sona/stats/v1/pages/v1/nodesProng III — Coherence (Pro+)
/v1/drift/v1/train/v1/lora/submit/v1/lora/latest/v1/temporal/v1/partitionAdditional APIs
- Console API
/v1/console/— Account, API keys, usage, tier, team management - Connectors API
/v1/connectors— List and generate configs for all supported tools - Bots API
/v1/bots/— Slack, Teams, Discord bot configuration and summary triggers
Pricing
| Tier | Price | Agents | Memory Ops/mo |
|---|---|---|---|
| Trial (14 days) | Free | 3 | 250K |
| Builder | $49/mo | 3 | 250K |
| Pro | $199/mo | 25 | 2M |
| Scale | $499/mo | Unlimited | Unlimited |
| Enterprise | Custom | Unlimited | Unlimited |
Intelligence Add-ons
Available on any paid tier: