Keturah
A uniform, MCP-bridgeable manifest of a product's LLM-consumable interfaces.
Keturah lets any family product — library or service — answer one question:
what can an LLM call here, and how? Each interface is a Capability (name,
description, JSON-Schema input/output); a Manifest bundles them with the product
and version. The name is biblical ("incense / that which is offered up") — the
catalog of what each product offers.
There is already a standard for this — Model Context Protocol (MCP) — and
Keturah does not replace it. Manifest.to_mcp() projects a manifest onto MCP's
tools/list shape, so a real MCP server is a thin adapter over a Keturah manifest
rather than a parallel definition. Keturah exists because the family is a mix of
libraries and services, and because manifests should be built from the seam
contracts a product already enforces (Deborah's plan schema, Milcah's
specialist request/result, Mahalath's match, Galeed's events) so the manifest and
the contract never drift.
from keturah import manifest, capability, Registry, MANIFEST_SCHEMA_VERSION
m = manifest(
"tirzah",
version="1.3.0",
capabilities=[
capability(
"ask",
"Answer a question over Tirzah's memory.",
input_schema={
"type": "object",
"properties": {"query": {"type": "string"}},
"required": ["query"],
},
output_schema={
"type": "object",
"properties": {
"answer": {"type": "string"},
"traceId": {"type": "string"},
},
},
tags=["qa", "memory"],
),
capability(
"capabilities",
"List this product's interfaces.",
kind="resource",
tags=["discovery"],
),
capability(
"system_prompt",
"Default system prompt for agents using this product.",
kind="prompt",
),
],
)
m.schema_version # MANIFEST_SCHEMA_VERSION ("1.0")
m.to_dict() # full manifest (descriptions + schemas)
m.to_mcp() # MCP tools/list — tools only; includes outputSchema
m.resources() # kind="resource" capabilities
m.prompts() # kind="prompt" capabilities
A product typically exposes this as capabilities() and, where it is a service, a
GET /api/capabilities endpoint (with ?format=mcp for the MCP view).
Registry (federated discovery)
reg = Registry([m, other_product_manifest])
reg.find("ask") # first (product, capability) match
reg.find("tirzah.ask") # namespaced — same form to_mcp() emits
reg.find("ask", product="tirzah") # explicit product wins
reg.find_all("ask") # every product exposing that tool name
reg.tools() # all kind="tool"
reg.resources() # all kind="resource"
reg.prompts() # all kind="prompt"
reg.with_tag("planner")
reg.to_mcp() # union tools/list; names are product.tool
MCP projection
Capability.to_mcp_tool() / Manifest.to_mcp() / Registry.to_mcp() emit the
MCP tools/list shape:
| Keturah field | MCP field |
|---|---|
name |
name (Registry namespaces as product.tool) |
description |
description |
input_schema |
inputSchema |
output_schema |
outputSchema (omitted when unset) |
Only kind="tool" entries appear in to_mcp(). Resources and prompts stay on
the Keturah surface (resources() / prompts()); a real MCP server can map them
to MCP prompts/resources resources separately via keturah.mcp.run_stdio_server.
Manifest validation requires schema_version equal to
MANIFEST_SCHEMA_VERSION so consumers can version-gate.
Develop
Works the same on native Linux and WSL — stdlib-only, no platform-specific steps.
pip install -e ".[dev]" && pytest
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file keturah-0.4.0.tar.gz.
File metadata
- Download URL: keturah-0.4.0.tar.gz
- Upload date:
- Size: 32.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10f26dbbfd1da1655903f7be050c0645668fa2bfd443672616cf66a06bd2c669
|
|
| MD5 |
73f3b5c459e7e97873395201159706dc
|
|
| BLAKE2b-256 |
37f98750349944a90ed4c43cc7fdfb85a170f486b5c5bdf635f7c16359dfc733
|
File details
Details for the file keturah-0.4.0-py3-none-any.whl.
File metadata
- Download URL: keturah-0.4.0-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83617234c7f472f0abe9738b2d8ce11f46fcf3a44e8c547a319c8161c3cc1a6a
|
|
| MD5 |
f07af8df5d51323fcff65c6cb9af3e03
|
|
| BLAKE2b-256 |
da5d9b304c9413783553985e8099788b4dbdbe899a238585a015dd02bab17dbe
|