Skip to content
Eavyn

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 are POST with JSON-RPC 2.0; replies are JSON, not an event stream.
  • GET and DELETE answer 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 browser Origin other 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

JSON-RPC error codes
CodeMeaning
-32700The body is not JSON.
-32600Not a JSON-RPC 2.0 request.
-32601Unknown method or tool.
-32602Arguments did not match the tool’s schema.
-32001Missing, unknown or released key, or a lease in its grace period.
-32002Unknown resource URI.
-32003Rate limited; see the HTTP Retry-After header.
-32603Something 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"}}}'