Documentation Index
Fetch the complete documentation index at: https://ahvn.top/llms.txt
Use this file to discover all available pages before exploring further.
A Tool is a runtime view over a Capsule. The Capsule is the durable executable payload.
What a Toolkit is
A Toolkit groups Capsules under tool names and serving metadata. Use it when you want a set of functions to behave like a local API, an MCP server, or an export target for model tool calling. The durable model is intentionally small:Capsule: stores the executable function manifestTool: names one Capsule and exposes a runtimerun(...)surfaceToolkit: orders tools, saves references, and exports serversToolkitRecord: stores Toolkit manifests and Capsule references in the registry
Build and register a Toolkit
toolkit.register(...) saves each Capsule first, then stores the Toolkit manifest as Capsule references. Loading a Toolkit restores the referenced Capsules lazily.
For compact construction, pass a list, pairs, or a mapping:
Load from another path
registry_config=... to isolate registry storage while keeping the same public API.
Architecture data flow
Toolkit execution is a thin layer over Capsules:Toolkit.add(callable)captures the callable as a Capsule.toolkit.register()persists each Capsule and then stores a Toolkit manifest containing ordered Capsule references.Toolkit.load(...)resolves the manifest and restores each referenced Capsule into aTool.Toolkit.run(name, **kwargs)calls the selected Capsule locally.Toolkit.to_fastmcp()wraps each Tool with a signature-compatible FastMCP function.Toolkit.to_anthropic_tools(...)exports a separate Anthropic programmatic tool schema withallowed_callers.
Serve through MCP
Import an MCP server
Workspace Toolkits
Every workspace can still become a Toolkit:Demo
Toolkit.load(...), shows Capsule docstring/format conversion, and checks that FastMCP can list and call the tools.

