Documentation Index
Fetch the complete documentation index at: https://ahvn.top/llms.txt
Use this file to discover all available pages before exploring further.
Workspace MCP exposes data operations. Capsule Toolkits expose reviewed Python functions.
1. When to use this page
Use a Capsule Toolkit when the agent needs stable application functions such as math, project operations, parsers, validators, or domain tools. A Toolkit can be called locally, registered in a HeavenBase registry, exported as a FastMCP server, and imported back as a local Toolkit client. Use Workspace MCP when the agent needs generic entity, CRUD, query, explain, or memory tools for one workspace.2. Create a Toolkit
heavenbase.toolkit.namespace, then heavenbase.capsule.namespace, then default.
3. Serve through MCP
structured_content["result"] in FastMCP client responses.
4. Import MCP as a Toolkit client
fastmcp.Client. It is runtime-only and should not be registered as a durable Toolkit because it closes over a live server or transport.
5. CLI
hb setup; users do not need a separate MCP setup step. Use --registry-db file:<path> when a test or demo should target an isolated SQLite registry.
Stdio MCP configs use hb mcp stdio <namespace/name:version> so the client process imports HeavenBase in the active Python environment and serves the registered Toolkit directly from the registry.
6. How the pieces fit
The export path is:CapsuleManifeststores signature and schema.Toolexposes the Capsule under a tool name.Toolkit.to_fastmcp()builds wrappers with evaluated annotations and the original callable signature.- FastMCP serves the wrappers over the selected transport.

