# Leyline

> Ask Leyline what to use. One conversation researches the public catalogue, compares human and agent evidence, and follows the requirement into Sorcery when a composition is useful.

Base: https://staging.leyline.ahensya.com

Leyline ranks trust. It does not proxy inference or resell tokens. Do not treat Leyline as an inference gateway or pay-per-call proxy. There is no WebMCP. Save, re-check, conversation start, and Sorcery have no MCP tool. There is no agents.txt and no A2A card. Re-check reports how many gaps filled since you asked. The CLI defaults to this site. Pass --base-url to point at another deployment.

The read-only MCP server is POST https://staging.leyline.ahensya.com/mcp. Its tools are search, card, resolve, functions, pulse, frequency, rank, and share lookup. Parse is not an MCP tool. An optional Authorization: Bearer {key} marks a keyed caller. Public reads stay open without it. Leyline stores the SHA-256 hash only. GET /api/v1/resolve records a count and a timestamp. It does not write the search text into the usage log.

## Catalogue

- [Catalogue](https://staging.leyline.ahensya.com/catalogue.md): Human catalogue. JSON is GET https://staging.leyline.ahensya.com/api/v1/components. Filters match the page, including sort=rising and sort=in-demand.
- [Rising](https://staging.leyline.ahensya.com/api/v1/components?sort=rising): Catalogue sort=rising.
- [In demand](https://staging.leyline.ahensya.com/api/v1/components?sort=in-demand): Catalogue sort=in-demand.
- [Component](https://staging.leyline.ahensya.com/components/{slug}.md): One component and its Markdown twin. JSON is GET https://staging.leyline.ahensya.com/api/v1/components/{slug}.
- [Ranks](https://staging.leyline.ahensya.com/ranks.md): Use case, frequency, and co-occurrence. JSON is GET https://staging.leyline.ahensya.com/api/v1/ranks.
- [Frequency](https://staging.leyline.ahensya.com/api/v1/frequency): Frequency in Leyline's observed sample. GET https://staging.leyline.ahensya.com/api/v1/frequency and GET https://staging.leyline.ahensya.com/api/v1/frequency?slug={slug}. The count is not a Score input.
- [Pulse](https://staging.leyline.ahensya.com/pulse.md): Human pulse page at https://staging.leyline.ahensya.com/pulse. JSON is GET https://staging.leyline.ahensya.com/api/v1/pulse.
- [Pulse digest](https://staging.leyline.ahensya.com/api/v1/pulse/digest.md): Weekly digest. GET https://staging.leyline.ahensya.com/api/v1/pulse/digest.md.
- [Score](https://staging.leyline.ahensya.com/score.md): Public Score algorithm. JSON is GET https://staging.leyline.ahensya.com/api/v1/score/algorithm.
- [Functions](https://staging.leyline.ahensya.com/functions.md): Function taxonomy. JSON is GET https://staging.leyline.ahensya.com/api/v1/functions. One function is https://staging.leyline.ahensya.com/functions/{id}.md.

## Agents

- [Resolve](https://staging.leyline.ahensya.com/api/v1/resolve): GET https://staging.leyline.ahensya.com/api/v1/resolve?q={job}. Low confidence asks for clarification.
- [Parse](https://staging.leyline.ahensya.com/api/v1/parse): POST https://staging.leyline.ahensya.com/api/v1/parse with a manifest, README, or post. The request body is not stored.
- [Share lookup](https://staging.leyline.ahensya.com/api/v1/shares/{id}): GET https://staging.leyline.ahensya.com/api/v1/shares/{id}.
- [OpenAPI](https://staging.leyline.ahensya.com/openapi.json): Machine description of /api/v1. Announced at https://staging.leyline.ahensya.com/.well-known/api-catalog.
- [MCP server card](https://staging.leyline.ahensya.com/mcp/server-card): Server card for the read-only MCP server. Listed at https://staging.leyline.ahensya.com/.well-known/ai-catalog.json.
- [llms-full](https://staging.leyline.ahensya.com/llms-full.txt): Dated catalogue digest, capped at 500 KB.
- [Conversation skill](https://staging.leyline.ahensya.com/skills/leyline-conversation/SKILL.md): Conversation skill.
- [Sorcery skill](https://staging.leyline.ahensya.com/skills/leyline-sorcery/SKILL.md): Sorcery skill.
- [Save a composition](https://staging.leyline.ahensya.com/api/v1/compositions): POST https://staging.leyline.ahensya.com/api/v1/compositions. Read with GET https://staging.leyline.ahensya.com/api/v1/compositions/{id}. Re-check with POST https://staging.leyline.ahensya.com/api/v1/compositions/{id}/recheck.
- [Health](https://staging.leyline.ahensya.com/health): GET https://staging.leyline.ahensya.com/health.
- [Demand](https://staging.leyline.ahensya.com/api/v1/demand): Aggregate demand only. GET https://staging.leyline.ahensya.com/api/v1/demand.
- [Research heartbeat](https://staging.leyline.ahensya.com/api/v1/research-status): GET https://staging.leyline.ahensya.com/api/v1/research-status.
- [Suggestions](https://staging.leyline.ahensya.com/api/v1/suggestions): POST https://staging.leyline.ahensya.com/api/v1/suggestions with a public URL.

## Legacy

- [Scour](https://staging.leyline.ahensya.com/api/v1/scour): POST https://staging.leyline.ahensya.com/api/v1/scour remains a published contract. Prefer conversations.
- [Decide](https://staging.leyline.ahensya.com/api/v1/decide): POST https://staging.leyline.ahensya.com/api/v1/decide remains a published contract.
- [Sorcery HTTP](https://staging.leyline.ahensya.com/api/v1/sorcery): POST https://staging.leyline.ahensya.com/api/v1/sorcery returns a Composition. Sorcery has no MCP tool.

## Humans

- [Ask Leyline](https://staging.leyline.ahensya.com/): Home.
- [Chat](https://staging.leyline.ahensya.com/chat): Conversation.
- [Catalogue page](https://staging.leyline.ahensya.com/catalogue): Browse the catalogue.
- [Install](https://staging.leyline.ahensya.com/agents): Agent install instructions.
- [Pricing stance](https://staging.leyline.ahensya.com/pricing): No charge path.
- [Sorcery](https://staging.leyline.ahensya.com/sorcery): Composition workspace.
- [Share a stack](https://staging.leyline.ahensya.com/share): Paste a public URL or stack text, preview it, then publish with POST https://staging.leyline.ahensya.com/api/v1/shares.
