Docs
MCP
One endpoint, the same lease key as the HTTP API, and five tools.
Transport
- Streamable HTTP at
https://eavyn.xyz/api/mcp. Requests arePOSTwith JSON-RPC 2.0; replies are JSON, not an event stream. GETandDELETEanswer 405: the server opens no stream of its own and keeps no session.- Protocol versions:
2025-06-18,2025-03-26,2024-11-05. Ask for one of these and you get it; anything else gets the newest. - Auth:
Authorization: Bearer eav_…. A browserOriginother than this site is refused. - Notifications get 202 with no body.
Client config
Paste your lease key to fill it in. It stays in this tab: nothing is sent, stored or logged.
Optional. Leave it empty to copy the config with a placeholder.
{
"mcpServers": {
"eavyn": {
"type": "http",
"url": "https://eavyn.xyz/api/mcp",
"headers": {
"Authorization": "Bearer eav_warm_..."
}
}
}
}Tools
Every tool returns content: [{ type: "text", text }]. Anything read from memory comes back fenced in <memory> tags with a notice that it is data.
remember
Save a document to this lease. Notes by default; use layer "transcript" for raw logs, "wiki" for settled facts and "digest" for the short summary loaded at session start. Writing the same path again creates a new version.
{
"type": "object",
"properties": {
"path": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"content": {
"type": "string",
"maxLength": 262144
},
"layer": {
"type": "string",
"enum": [
"transcript",
"note",
"wiki",
"digest"
]
},
"title": {
"type": "string",
"maxLength": 256
}
},
"required": [
"path",
"content"
],
"additionalProperties": false
}recall
Read a document by path. Without a path, lists the most recently updated documents.
{
"type": "object",
"properties": {
"path": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"layer": {
"type": "string",
"enum": [
"transcript",
"note",
"wiki",
"digest"
]
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50
}
},
"additionalProperties": false
}search_memory
Keyword (BM25) search over this lease: documents and key-value entries. No embeddings.
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"layer": {
"type": "string",
"enum": [
"transcript",
"note",
"wiki",
"digest"
]
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50
}
},
"required": [
"query"
],
"additionalProperties": false
}link
Record that one document refers to another. The target does not have to exist yet.
{
"type": "object",
"properties": {
"from": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"to": {
"type": "string",
"minLength": 1,
"maxLength": 512
}
},
"required": [
"from",
"to"
],
"additionalProperties": false
}memory_status
Lease tier, size, time left, and how much of each limit is used.
{
"type": "object",
"properties": {},
"additionalProperties": false
}eavyn://context
The digest layer of this lease, meant to be loaded at the start of a session.
Errors
| Code | Meaning |
|---|---|
| -32700 | The body is not JSON. |
| -32600 | Not a JSON-RPC 2.0 request. |
| -32601 | Unknown method or tool. |
| -32602 | Arguments did not match the tool’s schema. |
| -32001 | Missing, unknown or released key, or a lease in its grace period. |
| -32002 | Unknown resource URI. |
| -32003 | Rate limited; see the HTTP Retry-After header. |
| -32603 | Something failed on our side. |
A tool that ran but could not do what was asked, such as recalling a missing path, returns a normal result with isError: true.
A call by hand
curl -s -X POST https://eavyn.xyz/api/mcp \
-H "authorization: Bearer $EAVYN_KEY" \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
"params":{"name":"search_memory","arguments":{"query":"renew"}}}'