API Reference

MCP endpoint

Wire-level reference for the MCP server and the token routes. Usage guides live in the MCP section.

API Reference6 pages

Memo exposes one MCP server. This page covers the transport and token routes; the MCP section covers when to use the tools and how to connect a client.

Endpoint

URL
https://memo.uno/api/mcp
Transport
Value
Streamable HTTP, stateless (no session id)
Auth
Value
Authorization: Bearer memo_...
Methods
Value
POST for JSON-RPC; GET/DELETE for stream and teardown
Tools
Value
memory_search, memory_context, memory_list, memory_get, memory_personal_categories, memory_code_types, memory_code_category_add, memory_code_category_update, memory_code_category_delete, memory_repos, memory_add, memory_add_personal, memory_add_code, memory_update, memory_delete, memory_restore, memory_export, memory_import, memory_personal_category_add, memory_personal_category_update, memory_personal_category_delete, memory_repo_create, memory_repo_share, memory_feedback
CORS
Value
Open, so browser-based clients can connect

Handshake

initialize
curl -X POST https://memo.uno/api/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Authorization: Bearer memo_..." \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1.0"}}}'

Calling a tool

tools/call
curl -X POST https://memo.uno/api/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Authorization: Bearer memo_..." \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"memory_search","arguments":{"query":"deploy command","repo":"acme/api","limit":5}}}'

Token routes

GET
Path
/api/mcp/token
Purpose
List tokens: prefix, label, last used, created
POST
Path
/api/mcp/token
Purpose
Mint a token; the full value is returned once
DELETE
Path
/api/mcp/token
Purpose
Revoke a token

Tokens are stored hashed and prefixed memo_. Up to 20 can be active per account; the list never contains the full value after creation. Token routes use the browser session, not the token itself.

Revocation

A token authenticates as its owner. Revoking it takes effect on the next request, including for clients that keep a connection open.

Errors

  • 401 with Unauthorized: send Authorization: Bearer <mcp token> when the token is missing, revoked or mistyped.
  • Plan limits surface as a tool error inside a 200 JSON-RPC response; the message names the limit and the upgrade path.
  • Invalid tool arguments return a tool error the client shows to the model instead of crashing the session.