@hasna/knowledge 0.2.22 → 0.2.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -13
- package/bin/open-knowledge-mcp.js +1080 -430
- package/bin/open-knowledge.js +1 -1
- package/docs/architecture/ai-native-knowledge-base.md +14 -0
- package/docs/architecture/hybrid-semantic-search.md +11 -10
- package/package.json +1 -1
- package/src/mcp.js +789 -1
package/README.md
CHANGED
|
@@ -418,19 +418,54 @@ location with `--store <path>`.
|
|
|
418
418
|
open-knowledge-mcp
|
|
419
419
|
```
|
|
420
420
|
|
|
421
|
-
The
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
`
|
|
429
|
-
|
|
430
|
-
`
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
421
|
+
The stable agent-facing MCP tools are:
|
|
422
|
+
|
|
423
|
+
- `knowledge_search`: return a reranked citation context pack.
|
|
424
|
+
- `knowledge_ask`: answer with read-only local knowledge and optional AI SDK
|
|
425
|
+
generation.
|
|
426
|
+
- `knowledge_build`: run the prompt flow and optionally file a cited wiki answer
|
|
427
|
+
when `approve_write=true`.
|
|
428
|
+
- `knowledge_get`: read an item, indexed source, wiki page, run, index, or
|
|
429
|
+
decision by id.
|
|
430
|
+
- `knowledge_ingest`: ingest an open-files/S3/file/web source ref or open-files
|
|
431
|
+
manifest into the derived catalog.
|
|
432
|
+
- `knowledge_web_search`: run safety-gated provider-native web search.
|
|
433
|
+
- `knowledge_lint`: lint generated wiki pages for citation/source issues.
|
|
434
|
+
- `knowledge_run_status`: list recent runs or inspect one run ledger.
|
|
435
|
+
- `knowledge_storage`: inspect the local/S3/hosted storage contract.
|
|
436
|
+
- `knowledge_resolve_source`: resolve indexed source chunks through the
|
|
437
|
+
read-only source boundary.
|
|
438
|
+
|
|
439
|
+
Compatibility and lower-level tools remain available with the `ok_*` prefix:
|
|
440
|
+
item tools (`ok_add`, `ok_list`, `ok_get`, `ok_update`, `ok_delete`,
|
|
441
|
+
`ok_archive`, `ok_restore`, `ok_upsert`, `ok_untag`, `ok_bulk_delete`,
|
|
442
|
+
`ok_prune`, `ok_dedupe`, `ok_stats`, `ok_export`, `ok_import`, `ok_batch`),
|
|
443
|
+
workspace/storage inspection (`ok_paths`, `ok_storage_status`), providers,
|
|
444
|
+
embeddings, reindexing, hybrid search, source parsing/resolution, and
|
|
445
|
+
`ok_web_search`.
|
|
446
|
+
|
|
447
|
+
MCP also publishes project-scope JSON resources for agent inspection:
|
|
448
|
+
|
|
449
|
+
- `knowledge://project/config`
|
|
450
|
+
- `knowledge://project/storage`
|
|
451
|
+
- `knowledge://project/schema`
|
|
452
|
+
- `knowledge://project/sources`
|
|
453
|
+
- `knowledge://project/open-files`
|
|
454
|
+
- `knowledge://project/wiki/pages`
|
|
455
|
+
- `knowledge://project/indexes`
|
|
456
|
+
- `knowledge://project/runs`
|
|
457
|
+
- `knowledge://project/decisions`
|
|
458
|
+
- Templated reads:
|
|
459
|
+
`knowledge://project/items/{id}`,
|
|
460
|
+
`knowledge://project/sources/{id}`,
|
|
461
|
+
`knowledge://project/wiki/pages/{id}`,
|
|
462
|
+
`knowledge://project/indexes/{id}`,
|
|
463
|
+
`knowledge://project/runs/{id}`,
|
|
464
|
+
`knowledge://project/decisions/{id}`
|
|
465
|
+
|
|
466
|
+
These resources expose compact metadata, derived chunks, generated wiki text,
|
|
467
|
+
run ledgers, and citation evidence. They do not expose raw source bytes from
|
|
468
|
+
`open-files`, local files, or S3.
|
|
434
469
|
|
|
435
470
|
## Source And Artifact Boundary
|
|
436
471
|
|