MCP server
Jennah exposes agent workspace memory over the Model Context Protocol (MCP). Compatible MCP hosts, such as Claude Code, Cursor, hosted agent runtimes, or custom agent loops, can read and write persistent memory through standard MCP tool calls.
You can connect using either of two transports, both of which expose the same tools:
- Remote HTTP endpoint (
https://jennah.alphaus.cloud/mcp/{workspace}): connects directly over HTTPS without local installation. Supported by hosted agent runtimes, the Anthropic and OpenAI APIs, Claude Code, Cursor, and custom servers. jnh mcpCLI command: runs a local stdio subprocess for hosts that only support local MCP servers (such as Claude Desktop), forwarding requests to the remote endpoint using yourjnh loginsession or an API key.
The server exposes the following tools:
recall_memory: Retrieves passages relevant to a query, plus a bounded snapshot of the workspace's knowledge graph.remember_conversation: Submits conversation turns for asynchronous fact extraction and reconciliation.formation_outcome: Queries the status and results of a submitted formation job.request_approvalandapproval_outcome: Create human approval requests and query their status. Available only when approvers are configured.
Remote endpoint
Configure your MCP host with the workspace endpoint URL and an API key:
The endpoint uses MCP's streamable HTTP transport and is stateless across requests, so any host that supports remote MCP servers with custom headers can connect to it.
You can generate both values using Connect via MCP on the agent's detail
page in the console, which creates an API key scoped to that workspace with
memory permissions and displays the URL and header. To create a key manually,
see API keys; the key requires agent.agents:read,
agent.memory:read, and agent.memory:write, with agent access scoped to the
target workspace.
Scope API keys to a single workspace
The URL specifies which workspace the MCP tools target, but the API key determines what resources the caller can access. Passing an unrestricted key to a third-party runtime grants it access to every workspace covered by that key. Always scope the API key to the target workspace.
Host configuration
Configure your MCP host with the endpoint URL and Authorization header:
Claude Code:
claude mcp add --transport http jennah \
https://jennah.alphaus.cloud/mcp/support.bot-01 \
--header "Authorization: Bearer $JENNAH_API_KEY"
Anthropic Messages API (MCP connector, beta header
anthropic-beta: mcp-client-2025-11-20). Provide both the server connection in
mcp_servers and a corresponding mcp_toolset entry in tools:
"mcp_servers": [{
"type": "url",
"url": "https://jennah.alphaus.cloud/mcp/support.bot-01",
"name": "jennah",
"authorization_token": "jennah_sk_..."
}],
"tools": [{ "type": "mcp_toolset", "mcp_server_name": "jennah" }]
OpenAI Responses API and Agents SDK:
"tools": [{
"type": "mcp",
"server_label": "jennah",
"server_url": "https://jennah.alphaus.cloud/mcp/support.bot-01",
"headers": { "Authorization": "Bearer jennah_sk_..." }
}]
Google ADK: Configure an MCPToolset with streamable HTTP connection
parameters, the endpoint URL, and the Authorization header.
Claude Managed Agents: Add the endpoint as a remote MCP server and store the API key as its credential.
Hosts that require OAuth for remote MCP servers, such as claude.ai and ChatGPT
connectors, are not yet supported. For Claude Desktop, use jnh mcp.
Local hosts: jnh mcp
For hosts that launch local MCP servers as stdio subprocesses, use jnh mcp,
which is built into the jnh CLI:
{
"mcpServers": {
"jennah": {
"command": "jnh",
"args": ["mcp", "--workspace", "support.bot-01"]
}
}
}
jnh mcp uses the same authentication as other jnh commands: your jnh login
session (automatically renewed when expired) or JENNAH_API_KEY in the
server's env block. All flags can also be configured via environment
variables:
| Flag | Environment variable |
|---|---|
--workspace |
JENNAH_MCP_WORKSPACE |
--approver (repeatable) |
JENNAH_MCP_APPROVERS (comma-separated) |
--quorum |
JENNAH_MCP_QUORUM |
--approval-ttl |
JENNAH_MCP_APPROVAL_TTL |
jnh mcp acts as a local stdio proxy to the remote MCP endpoint. It requires
network access to the platform, and server-side tool updates become available
without upgrading jnh.
Hosts with built-in memory
Some hosts, such as Claude Code, include built-in memory features. When asked to remember something, the model may default to the host's built-in memory instead of Jennah's MCP tools, especially if the host loads MCP tools on demand.
During initialization, the MCP server returns server instructions identifying
itself as the workspace's persistent memory and describing when to call
recall_memory and remember_conversation. Hosts that include MCP server
instructions in the model prompt pass these guidelines to the model. These
instructions describe the server's role without overriding the host's built-in
memory.
To ensure the host uses Jennah for memory:
- Specify the server in your prompt, for example, "use the jennah server to remember that I deploy on Fridays", or "recall from jennah what I said about deploys".
-
Add a standing instruction in the host configuration (
CLAUDE.mdor~/.claude/CLAUDE.mdin Claude Code, project instructions or personal preferences in Claude Desktop and claude.ai, or the system prompt in an agent framework):Use the jennah MCP server's tools as my memory: call recall_memory before answering anything that may depend on earlier conversations, and remember_conversation for anything worth keeping.In Claude Code, server instructions alone may not be enough to route recall requests to Jennah; adding this instruction ensures the model uses the MCP server. The same instruction helps in Claude Desktop and claude.ai, which also include built-in memory. Agent frameworks do not include built-in memory, so the server instructions are usually sufficient on their own.
Workspace isolation and pinning
The workspace is pinned in the host configuration (via the endpoint URL or
--workspace) and cannot be overridden by tool parameters. Tools do not accept
parameters for workspaces, scopes, agents, or tenants, preventing prompt
injection attacks from redirecting reads or writes to other workspaces.
- Workspace required: Requests to
/mcp/without a workspace return404, andjnh mcpexits immediately withno workspace is pinned. - Connection-time authorization check: If the credential cannot access the pinned workspace, the connection fails during initialization rather than on subsequent tool calls.
- Single workspace per connection: Each server connection targets a single workspace. To access multiple workspaces, configure a separate MCP server entry for each workspace.
Access control policies are enforced server-side on every call. MCP tools are bound by the same permissions and resource selectors as the underlying credential.
Tools
recall_memory
Retrieves the remembered passages that semantically match a query, most relevant first, together with a bounded snapshot of the workspace's knowledge graph assertions (entities and relationships). The graph snapshot is not filtered by the query: it covers up to 50 nodes and 50 edges of the workspace.
| Argument | Description |
|---|---|
query |
What to recall, as a question or topic (required) |
limit |
Maximum passages to return (default 10) |
If nothing has been remembered yet, the tool returns an empty result without error.
Retrieved assertions include a qualified boolean flag. When false, the
underlying assertion does not have verified currency (see
temporal memory) and should not be treated as an active fact.
The tool response includes explanatory notes when unqualified assertions are
present.
remember_conversation
Submits conversation turns for asynchronous formation, including entity extraction, contradiction detection, and supersession reconciliation.
| Argument | Description |
|---|---|
turns |
The conversation, in order: a list of {role, content} objects, where role is user, assistant, system, or tool |
The call returns immediately upon acceptance with a formation handle. Processing continues asynchronously on the platform, independent of tool call timeouts, host restarts, or client disconnections (see submitted formations).
Formation handles are deterministically derived from the submitted conversation
content. Submitting the same conversation again, or retrying after a network
error, resolves to the same handle without creating duplicate memories. The
response status indicates the job's current state: accepted for a newly
created submission, or running, finished, or failed for an existing one.
formation_outcome
Queries the status and results of a formation handle returned by
remember_conversation. It takes one argument, handle, and returns
immediately without blocking.
The response reports a status, candidate decisions (new, revised,
already_known, rejected), and write counts. The status is one of:
running: the formation is still in progress.finished: the formation completed and its results are reported.nothing_written: the conversation contained no new memorable facts.failed: the formation failed without writing memory;reasondescribes the error. Resubmitting the conversation starts a new attempt.unknown_handle: the handle's record has expired, or it belongs to a different workspace.
Handles are stored server-side and can be queried across connections and after
jnh mcp or the host restarts. Handle records are retained for 7 days after
completion; committed memories persist in the workspace and remain queryable via
recall_memory.
request_approval
Creates an approval request for the configured approvers and returns immediately
with an approval ID and pending status. Available only when approvers are
configured.
| Argument | Description |
|---|---|
title |
Short title for the action shown to approvers (required) |
summary |
Markdown description of the intended action and rationale (required) |
payload |
Structured parameters for the action, such as an amount or target, displayed alongside the summary |
Requests are deduplicated using a key derived from the title, summary, payload, and approval configuration, so repeating an identical request returns the existing approval without sending duplicate notifications.
approval_outcome
Queries an approval request's status by ID without blocking. Returns pending,
approved, rejected, expired, or cancelled, along with each recorded
decision. Only approved authorizes the action; requests that pass their
deadline without a decision resolve to expired and must be treated as denied.
Approvals
The approval tools allow an agent to request human authorization before taking an action. Recipients, quorum, and request expiration are fixed in the host configuration and cannot be set or modified by tool arguments, preventing prompt injection from altering who is asked to approve.
For the remote endpoint, pass these settings as URL query parameters:
https://jennah.alphaus.cloud/mcp/support.bot-01
?approver=lead@acme.example
&approver=ops@acme.example
&quorum=all
&approval_ttl=2h
For jnh mcp, pass the corresponding flags (or environment variables):
jnh mcp --workspace support.bot-01 \
--approver lead@acme.example --approver ops@acme.example \
--quorum all --approval-ttl 2h
| Setting | Meaning |
|---|---|
approver |
Recipient email address. Repeat to specify multiple approvers. If omitted, the approval tools are not exposed. |
quorum |
any (default): resolves on the first approval. all: requires every listed approver to approve. |
approval_ttl |
Request expiration duration, such as 2h. Defaults to the platform default (72h). |
Unknown query parameters, or specifying quorum or approval_ttl without at
least one approver, cause the connection to fail immediately rather than
silently omitting the tools.
Requirements:
- The credential requires
approval.requests:createandapproval.requests:readin addition to the memory permissions. Connect via MCP includes these permissions automatically when approvers are specified. - External approvers must be listed on the organization's approver allowlist; requests referencing unlisted external addresses are rejected.
- Requests count toward the plan's approval limits for concurrent pending requests and monthly notification emails.
As with the Approvals API, Jennah records the
request and decision, but does not intercept or block tool execution. While the
tool responses instruct the model to proceed only on approved, critical
actions should be enforced in the code that executes them.
See Approvals for details on notification delivery and decision handling.
Protocol and standard I/O
The remote endpoint responds to each request with a JSON payload and does not hold sessions or streams open.
jnh mcp communicates using newline-delimited JSON-RPC over standard input and
output. All operational logs, diagnostics, and errors are written to standard
error.
Because standard output is reserved for protocol frames, jnh mcp rejects
explicit output formatting flags such as -o json or --output json:
$ jnh mcp --workspace my.agent -o json
error: jnh mcp writes a protocol on standard output,
so --output json cannot be honoured
hint: drop --output here;
this command has no result to render in any format
If the JENNAH_OUTPUT environment variable is defined in the shell, jnh mcp
ignores it rather than returning an error.
Troubleshooting
Remote endpoint connection errors
401: missingAuthorization: Bearer ...header, or the API key is expired or revoked.404: missing or invalid workspace ID in the URL. Expected path format is/mcp/{workspace}.400: unknown query parameter, invalidquorumorapproval_ttl, orquorumwithout anapprover. The response message identifies the invalid parameter.403: request originated from a browser. Browser requests are not supported on this endpoint.- Connection error reporting the workspace as not reachable: the workspace does not exist, or the API key's resource selectors do not cover it.
jnh mcp exits immediately
Check the host's server log (stderr). Common causes include:
- Missing workspace: Ensure
--workspace <name>orJENNAH_MCP_WORKSPACEis set. - Workspace unreachable: Verify that the workspace exists and the active API key or user session has permissions to access it.
- Unauthenticated session: Run
jnh loginor provide a validJENNAH_API_KEY. the platform at this endpoint does not serve MCP yet: the target platform endpoint is running an older version without remote MCP support.- Expired session:
session expired (run: jnh login)means the stored login can no longer be renewed. Runjnh loginagain.
Some hosts do not show the server's stderr. Claude Code, for example, reports only CONNECTION_CLOSED in claude mcp list. To see the reason, run the same command the host runs, at a terminal, with its input closed:
If startup succeeds, it prints nothing and exits. Otherwise it prints the reason on one line. Run it with the same environment the host uses: if the host's configuration unsets or sets JENNAH_API_KEY, do the same, since the key takes precedence over the jnh login session.
Session disconnects during handshake
If the host disconnects immediately without an error dialogue, check stderr for a protocol version mismatch:
jnh mcp: the host asked for MCP protocol version "2019-01-01",
which this server does not implement. It implements 2026-07-28,
2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05, and answered
with "2025-11-25" because the lifecycle specification requires
an answer here rather than a refusal. The host disconnects if
it cannot speak that; if the session ends now, that is why.
The MCP lifecycle specification requires the server to negotiate by returning a supported version; the host terminates the connection if it cannot support that version. Update the host application to resolve the incompatibility.
Tool calls denied
If tool calls return authorization errors, the API key or role lacks required permissions or its resource selectors do not cover the workspace. Authorization failures return explicit tool errors rather than empty results. Check assigned roles with jnh team roles or review your API key configuration.
Model does not invoke tools
Verify in the MCP host's settings that the server is active and connected. If the server is connected, tool invocation frequency depends on the host's system instructions and prompt configuration.