Feature request: Vercel AI SDK tools (@knolo/ai-sdk)
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 toolkit with a large install base. Sheet traction:
- vercel/ai: 27,258 GitHub stars (https://github.com/vercel/ai)
- npm 'ai': 30,798,367 downloads, week 2026-10-04 to 10-10 (https://www.npmjs.com/package/ai)
Sources: https://github.com/vercel/ai ; https://api.npmjs.org/downloads/point/last-week/ai
@knolo/core is TS/npm, so Knolo retrieval and evidence checks map directly to AI SDK tools.
What exists today
@knolo/tools0.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/mcp0.2.0 on main (npm still 0.1.0): stdio server withknolo_search,knolo_get,knolo_verify,knolo_status, plusknolo_kar_evaluate,knolo_kar_verify,knolo_cortex_verifyfor mounts with a pinned graph (PR #80, PR #87). Started withnpx -y @knolo/mcp --config /absolute/knolo-mcp.json.@knolo/coreand@knolo/cli6.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/ai-sdkexportingknoloTools(config)that returns AI SDKtool()definitions (with zod input schemas) over@knolo/tools: search, get, verify, status, and optional KAR evaluate/verify and Cortex verify when a graph is pinned. - Results include receipt id, state root, query plan and result roots, and object ids for citation.
- Document the alternative zero-code path using the AI SDK MCP client against @knolo/mcp.
- Node-only (local file images); no edge runtime promise in this issue.
Scope
In: package, tests against fixture images, README, an example. Out: hosted retrieval, network image fetch, write tools, upstream listing PR (manual, after release).
Acceptance criteria
- Tool outputs match @knolo/mcp outputs for the same inputs and image.
- Fails closed on pin, policy or audit errors.
- Works with the current major of
ainamed in peerDependencies.
Open questions
- Share one schema module between @knolo/mcp and framework adapters to avoid drift?
- Edge runtime support as a follow-up?
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.
@knolo/ai-sdk is already in the tree. Pull request #135 merged that package. It peers ai ^7.0.0. The tests cover ACCESS_DENIED and a KAR graph pin mismatch. examples/ai-sdk/smoke.mjs checks a qr_ receipt and modelCalled: false. Closing this issue on that merged work. No new package is published from this pass.