knolo-core icon indicating copy to clipboard operation
knolo-core copied to clipboard

Feature request: Mastra tools (@knolo/mastra)

Open HiveForensicsAI opened this issue 1 month ago • 0 comments

For human review. This issue was drafted from the Knolo Adoption Targets research. A human will review it and implement it manually. No code or pull request accompanies it.

Adoption case

TypeScript agent framework with tools, RAG and workflows, and an integrations/ folder of third-party packages. Sheet traction:

  • mastra-ai/mastra: 28,897 GitHub stars (https://github.com/mastra-ai/mastra, checked 2026-10-19)
  • npm @mastra/core: 1,392,690 downloads, week 2026-10-10 to 10-16 (https://api.npmjs.org/downloads/point/last-week/@mastra/core)

Sources: https://github.com/mastra-ai/mastra ; https://github.com/mastra-ai/mastra/tree/main/integrations ; https://api.npmjs.org/downloads/point/last-week/@mastra/core

What exists today

  • @knolo/tools 0.2.0 (in tree): host-agnostic read-only service. Pins a V5 Knowledge Image by file SHA-256 and state root, checks the policy root, and writes a query receipt before results return. Caller identity is supplied by the host.
  • @knolo/mcp 0.2.0 on main (npm still 0.1.0): stdio server with knolo_search, knolo_get, knolo_verify, knolo_status, plus knolo_kar_evaluate, knolo_kar_verify, knolo_cortex_verify for mounts with a pinned graph (PR #80, PR #87). Started with npx -y @knolo/mcp --config /absolute/knolo-mcp.json.
  • @knolo/core and @knolo/cli 6.2.0, including KAR, composition and Cortex (@knolo/core/cortex).
  • Existing adapters: @knolo/openclaw, @knolo/langchain, @knolo/llamaindex. The knolo-verify Action (PR #86) checks artifacts in CI.

Proposed design

  • New package @knolo/mastra exposing createTool() wrappers over @knolo/tools (search, get, verify, status, optional KAR and Cortex verify when a graph is pinned), with caller identity taken from host config.
  • Document the zero-code path with Mastra's MCP client pointed at @knolo/mcp.
  • If @knolo/ai-sdk is built first, share its schema module.

Scope

In: package, tests, README, an example agent. Out: Mastra vector store or memory provider implementations, network fetch, write tools, the upstream integrations/ PR (manual).

Acceptance criteria

  • Tools return receipt ids and roots and fail closed exactly like @knolo/tools.
  • Example agent answers from a fixture image with citations, offline.

Open questions

  • Is an MCP-only doc enough for Mastra, making the package optional?

Related

  • #79 / PR #80: @knolo/mcp read-only server and MCP Registry listing
  • #84 / PR #87: KAR and Cortex tools in @knolo/mcp
  • #85 / PR #86: knolo-verify Action
  • PR #70: @knolo/openclaw (reference for a thin adapter over @knolo/tools)
  • PR #25: LangChain and LlamaIndex adapters

Knolo is open source under Apache-2.0, built by Hive Forensics AI Inc. R&D.

HiveForensicsAI avatar Nov 01 '26 17:11 HiveForensicsAI