Docs
A lens reaches an AI in one of two ways: an MCP URL for clients that speak MCP, or a paste block for everything else. Both are made in the app in under a minute.
Paste block (works with any AI)
In the app, cut a lens and copy its paste block. It is built in your browser from the ticked sections; our server is not involved, so there is no Glint for it. Paste it at the start of a chat or into a project's instructions.
MCP URL
Each lens has its own URL. The key is in the path, because URL fragments never reach a server:
https://lensary.xyz/l/<lensKey>/mcp
Transport: Streamable HTTP, stateless. No OAuth. The URL is a bearer key: anyone who holds it can read the lens until it expires or you Shutter it.
Client status
A client is listed as working only after a real test passes: copy one line, the tools appear, a tool call returns the lens. Until then it is marked as being tested and the paste block is the supported path.
| Client | How | Status |
|---|---|---|
| Claude Code | claude mcp add --transport http | being tested |
| Cursor | mcp.json | being tested |
| Any other AI | paste block | works |
Claude Code (being tested)
claude mcp add --transport http lensary https://lensary.xyz/l/<lensKey>/mcpCursor (being tested)
{
"mcpServers": {
"lensary": { "url": "https://lensary.xyz/l/<lensKey>/mcp" }
}
}An AI reads over MCP only when the model decides to call a tool. To make it reliable, add a line to the project instructions such as “Before answering, call get_context from the lensary server.”
Tools
Read-only. There is no write tool, so an AI cannot widen its own lens.
get_context(): every section in the lens, as one compact block.list_sections(): section names in the lens.read_section(name): one section.
Only tools/call creates a Glint; initialize and tools/list do not.
curl -s https://lensary.xyz/l/<lensKey>/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_context","arguments":{}}}'Errors
410: the lens was shuttered or expired. Its key wraps are gone.429: rate limited per lens or per IP./.well-known/oauth-*: a JSON 404 by design. There is no login.
Limits
- 16 sections and 64 KB per vault.
- Free: open lens count and lens life come from
/api/config; renew a lens in one click and the URL stays the same. - Free vaults with no activity for 30 days are deleted. Download your key file; there is no reset.
Public API
GET /api/config: ticker, CA, threshold, chain, ledger address, limits.GET /api/stats: lenses and Glints, user and house apart; last anchor; keeper balance.GET /api/anchors,GET /api/anchors/:id/leaves,GET /api/proof/:seq.POST /api/bags {address}: Bags brief. The address is not stored.GET /api/events: server-sent events,statsand houseglint.- /dashboard.json and /llms.txt for agents.
Cryptography and the visibility table: /security. Checking a receipt: /verify.