vector-mcp 3.3.1__tar.gz → 3.3.4__tar.gz
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.
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/PKG-INFO +16 -16
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/README.md +8 -8
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/pyproject.toml +20 -12
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/scripts/validate_a2a_agent.py +2 -1
- vector_mcp-3.3.4/tests/test_default_content_surfaces.py +43 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_store_extras.py +4 -4
- vector_mcp-3.3.4/vector_mcp/__init__.py +25 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/action_split.py +5 -1
- vector_mcp-3.3.4/vector_mcp/connector_sources.py +186 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/document_inputs.py +1 -3
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/ontology/certification.json +3 -6
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/ontology/vector.ttl +6 -5
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/prompts/retrieval_specialist.json +0 -2
- vector_mcp-3.3.4/vector_mcp/skills/vector-mcp-development/SKILL.md +57 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/vectordb/__init__.py +1 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/vectordb/base.py +3 -1
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp.egg-info/PKG-INFO +16 -16
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp.egg-info/SOURCES.txt +3 -14
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp.egg-info/entry_points.txt +3 -3
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp.egg-info/requires.txt +6 -6
- vector_mcp-3.3.1/.pre-commit-config.yaml +0 -127
- vector_mcp-3.3.1/AGENTS.md +0 -231
- vector_mcp-3.3.1/CHANGELOG.md +0 -15
- vector_mcp-3.3.1/CLAUDE.md +0 -9
- vector_mcp-3.3.1/MANIFEST.in +0 -1
- vector_mcp-3.3.1/connector_manifest.yml +0 -226
- vector_mcp-3.3.1/mcp_config.json +0 -17
- vector_mcp-3.3.1/mkdocs.yml +0 -53
- vector_mcp-3.3.1/opencode.json +0 -18
- vector_mcp-3.3.1/release-readiness.json +0 -34914
- vector_mcp-3.3.1/requirements.txt +0 -10
- vector_mcp-3.3.1/scripts/security_sanitizer.py +0 -272
- vector_mcp-3.3.1/vector_mcp/__init__.py +0 -5
- vector_mcp-3.3.1/vector_mcp/connectors/mcp_source_presets.json +0 -13
- vector_mcp-3.3.1/vector_mcp/connectors/tool_schema_fingerprints.json +0 -8
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/LICENSE +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/scripts/investigate_timeout.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/scripts/validate_agents.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/scripts/validate_all_dbs.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/scripts/verify_deps.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/setup.cfg +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/conftest.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/reproduce_chunking.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_all_backends.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_database_transport_security.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_databases.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_doctor.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_document_inputs.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_identity_scoped_resources.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_init_dynamics.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_mcp_server.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_optional_dependencies.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_optional_dependency_boundary.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_package.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_placeholder.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_protocol_compliance.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_retrievers.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_secure_backends.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_startup.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_uv_sources_contract.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_vector_api.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_vector_mcp.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/tests/test_vectordbs_mock.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/__main__.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/backend_policy.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/bundled_mcp.json +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/connectors/__init__.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/doctor.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/mcp_config.json +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/mcp_server.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/ontology/__init__.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/ontology/fixtures/records.json +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/ontology/mappings/source.yaml +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/ontology/migrations/manifest.json +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/ontology/shapes/connector.shacl.ttl +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/prompts/__init__.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/prompts/main_agent.json +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/retriever/__init__.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/retriever/chromadb_retriever.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/retriever/couchbase_retriever.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/retriever/epistemic_graph_retriever.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/retriever/llamaindex_retriever.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/retriever/mongodb_retriever.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/retriever/postgres_retriever.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/retriever/qdrant_retriever.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/retriever/retriever.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/session.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/skills/__init__.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/skills/vector-backend-operations/SKILL.md +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/skills/vector-collection-management/SKILL.md +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/skills/vector-hybrid-search/SKILL.md +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/skills/vector-mcp-operations/SKILL.md +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/skills/vector-mcp-operations/agents/openai.yaml +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/skills/vector-mcp-operations/references/catalog.md +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/vector_api.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/vectordb/chromadb.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/vectordb/couchbase.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/vectordb/db_utils.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/vectordb/epistemic_graph.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/vectordb/mongodb.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/vectordb/postgres.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp/vectordb/qdrant.py +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp.egg-info/dependency_links.txt +0 -0
- {vector_mcp-3.3.1 → vector_mcp-3.3.4}/vector_mcp.egg-info/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: vector-mcp
|
|
3
|
-
Version: 3.3.
|
|
3
|
+
Version: 3.3.4
|
|
4
4
|
Summary: Governed vector retrieval over native epistemic-graph and secure opt-in providers.
|
|
5
|
-
Author-email:
|
|
5
|
+
Author-email: Repository Maintainers <maintainers@knuckles.team>
|
|
6
6
|
License: MIT
|
|
7
7
|
Classifier: Development Status :: 5 - Production/Stable
|
|
8
8
|
Classifier: License :: Public Domain
|
|
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Requires-Python: >=3.12
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
|
-
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.
|
|
15
|
+
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1
|
|
16
16
|
Requires-Dist: markdownify>=1.2.3
|
|
17
17
|
Requires-Dist: beautifulsoup4>=4.15.0
|
|
18
18
|
Requires-Dist: ebooklib>=0.20
|
|
@@ -23,15 +23,15 @@ Requires-Dist: pypdf>=6.14.2
|
|
|
23
23
|
Requires-Dist: llama-index-core>=0.14.23
|
|
24
24
|
Requires-Dist: llama-index-readers-file>=0.6.0
|
|
25
25
|
Provides-Extra: mcp
|
|
26
|
-
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.
|
|
26
|
+
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "mcp"
|
|
27
27
|
Provides-Extra: postgres
|
|
28
|
-
Requires-Dist: agent-connector-sdk[vector]<1.0.0,>=0.
|
|
28
|
+
Requires-Dist: agent-connector-sdk[vector]<1.0.0,>=0.4.1; extra == "postgres"
|
|
29
29
|
Provides-Extra: qdrant
|
|
30
|
-
Requires-Dist: agent-connector-sdk[vector]<1.0.0,>=0.
|
|
30
|
+
Requires-Dist: agent-connector-sdk[vector]<1.0.0,>=0.4.1; extra == "qdrant"
|
|
31
31
|
Provides-Extra: mongodb
|
|
32
|
-
Requires-Dist: agent-connector-sdk[vector]<1.0.0,>=0.
|
|
32
|
+
Requires-Dist: agent-connector-sdk[vector]<1.0.0,>=0.4.1; extra == "mongodb"
|
|
33
33
|
Provides-Extra: chromadb
|
|
34
|
-
Requires-Dist: agent-connector-sdk[vector-chroma]<1.0.0,>=0.
|
|
34
|
+
Requires-Dist: agent-connector-sdk[vector-chroma]<1.0.0,>=0.4.1; extra == "chromadb"
|
|
35
35
|
Provides-Extra: all
|
|
36
36
|
Requires-Dist: vector-mcp[chromadb,mcp,mongodb,postgres,qdrant]>=2.1.2; extra == "all"
|
|
37
37
|
Provides-Extra: test
|
|
@@ -47,8 +47,6 @@ Action-routed MCP and agent interfaces for governed vector collection management
|
|
|
47
47
|
The native default is epistemic-graph. Secure opt-in providers cover PostgreSQL/pgvector,
|
|
48
48
|
Qdrant, and MongoDB Atlas.
|
|
49
49
|
|
|
50
|
-
*Version: 3.3.1*
|
|
51
|
-
|
|
52
50
|
<!-- GOVERNED-CAPABILITY:START -->
|
|
53
51
|
## Governed capability
|
|
54
52
|
|
|
@@ -407,8 +405,6 @@ ontology must never be copied forward.
|
|
|
407
405
|
Low-cost checks that do not start providers:
|
|
408
406
|
|
|
409
407
|
```bash
|
|
410
|
-
python scripts/security_sanitizer.py
|
|
411
|
-
python scripts/security_contract.py --contract .security/security-contract.json validate
|
|
412
408
|
python -m compileall -q vector_mcp
|
|
413
409
|
```
|
|
414
410
|
|
|
@@ -423,8 +419,9 @@ separate deployment gate and must use operator-provided AgentConfig and secrets.
|
|
|
423
419
|
- [Usage](docs/usage.md)
|
|
424
420
|
- [Architecture overview](docs/overview.md)
|
|
425
421
|
|
|
426
|
-
The slim `:mcp` streamable-http container (`docker/mcp.compose.yml`) publishes
|
|
427
|
-
`/health` check; see [Deployment](docs/deployment.md) for the full
|
|
422
|
+
The slim `:mcp` streamable-http container (`docker/mcp.compose.yml`) publishes
|
|
423
|
+
`0.0.0.0:8000` with a `/health` check; see [Deployment](docs/deployment.md) for the full
|
|
424
|
+
compose service definition.
|
|
428
425
|
|
|
429
426
|
## License
|
|
430
427
|
|
|
@@ -477,13 +474,16 @@ uv pip install "vector-mcp[all]" # or: python -m pip install "vector-mcp[al
|
|
|
477
474
|
|
|
478
475
|
### Container image
|
|
479
476
|
|
|
480
|
-
|
|
477
|
+
The shared connector pipeline renders a slim `:mcp` image (`vector-mcp[mcp]`, entrypoint
|
|
478
|
+
`vector-mcp`) from `pyproject.toml` at release time:
|
|
481
479
|
|
|
482
480
|
```bash
|
|
481
|
+
pipelines-connector render --root .
|
|
483
482
|
docker build -t knucklessg1/vector-mcp:mcp docker/
|
|
484
483
|
```
|
|
485
484
|
|
|
486
|
-
`docker/mcp.compose.yml
|
|
485
|
+
The render command creates the release-owned `docker/mcp.compose.yml`; it runs the image with
|
|
486
|
+
the configured host publication.
|
|
487
487
|
|
|
488
488
|
### Knowledge-graph database (`epistemic-graph`)
|
|
489
489
|
|
|
@@ -4,8 +4,6 @@ Action-routed MCP and agent interfaces for governed vector collection management
|
|
|
4
4
|
The native default is epistemic-graph. Secure opt-in providers cover PostgreSQL/pgvector,
|
|
5
5
|
Qdrant, and MongoDB Atlas.
|
|
6
6
|
|
|
7
|
-
*Version: 3.3.1*
|
|
8
|
-
|
|
9
7
|
<!-- GOVERNED-CAPABILITY:START -->
|
|
10
8
|
## Governed capability
|
|
11
9
|
|
|
@@ -364,8 +362,6 @@ ontology must never be copied forward.
|
|
|
364
362
|
Low-cost checks that do not start providers:
|
|
365
363
|
|
|
366
364
|
```bash
|
|
367
|
-
python scripts/security_sanitizer.py
|
|
368
|
-
python scripts/security_contract.py --contract .security/security-contract.json validate
|
|
369
365
|
python -m compileall -q vector_mcp
|
|
370
366
|
```
|
|
371
367
|
|
|
@@ -380,8 +376,9 @@ separate deployment gate and must use operator-provided AgentConfig and secrets.
|
|
|
380
376
|
- [Usage](docs/usage.md)
|
|
381
377
|
- [Architecture overview](docs/overview.md)
|
|
382
378
|
|
|
383
|
-
The slim `:mcp` streamable-http container (`docker/mcp.compose.yml`) publishes
|
|
384
|
-
`/health` check; see [Deployment](docs/deployment.md) for the full
|
|
379
|
+
The slim `:mcp` streamable-http container (`docker/mcp.compose.yml`) publishes
|
|
380
|
+
`0.0.0.0:8000` with a `/health` check; see [Deployment](docs/deployment.md) for the full
|
|
381
|
+
compose service definition.
|
|
385
382
|
|
|
386
383
|
## License
|
|
387
384
|
|
|
@@ -434,13 +431,16 @@ uv pip install "vector-mcp[all]" # or: python -m pip install "vector-mcp[al
|
|
|
434
431
|
|
|
435
432
|
### Container image
|
|
436
433
|
|
|
437
|
-
|
|
434
|
+
The shared connector pipeline renders a slim `:mcp` image (`vector-mcp[mcp]`, entrypoint
|
|
435
|
+
`vector-mcp`) from `pyproject.toml` at release time:
|
|
438
436
|
|
|
439
437
|
```bash
|
|
438
|
+
pipelines-connector render --root .
|
|
440
439
|
docker build -t knucklessg1/vector-mcp:mcp docker/
|
|
441
440
|
```
|
|
442
441
|
|
|
443
|
-
`docker/mcp.compose.yml
|
|
442
|
+
The render command creates the release-owned `docker/mcp.compose.yml`; it runs the image with
|
|
443
|
+
the configured host publication.
|
|
444
444
|
|
|
445
445
|
### Knowledge-graph database (`epistemic-graph`)
|
|
446
446
|
|
|
@@ -4,25 +4,25 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "vector-mcp"
|
|
7
|
-
version = "3.3.
|
|
7
|
+
version = "3.3.4"
|
|
8
8
|
description = "Governed vector retrieval over native epistemic-graph and secure opt-in providers."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
classifiers = [ "Development Status :: 5 - Production/Stable", "License :: Public Domain", "Environment :: Console", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3",]
|
|
11
11
|
requires-python = ">=3.12"
|
|
12
|
-
dependencies = [ "agent-connector-sdk[mcp]>=0.
|
|
12
|
+
dependencies = [ "agent-connector-sdk[mcp]>=0.4.1,<1.0.0", "markdownify>=1.2.3", "beautifulsoup4>=4.15.0", "ebooklib>=0.20", "html2text>=2025.4.15", "ipython>=9.15.0", "platformdirs>=4.11.0", "pypdf>=6.14.2", "llama-index-core>=0.14.23", "llama-index-readers-file>=0.6.0",]
|
|
13
13
|
[[project.authors]]
|
|
14
|
-
name = "
|
|
15
|
-
email = "maintainers@
|
|
14
|
+
name = "Repository Maintainers"
|
|
15
|
+
email = "maintainers@knuckles.team"
|
|
16
16
|
|
|
17
17
|
[project.license]
|
|
18
18
|
text = "MIT"
|
|
19
19
|
|
|
20
20
|
[project.optional-dependencies]
|
|
21
|
-
mcp = [ "agent-connector-sdk[mcp]>=0.
|
|
22
|
-
postgres = [ "agent-connector-sdk[vector]>=0.
|
|
23
|
-
qdrant = [ "agent-connector-sdk[vector]>=0.
|
|
24
|
-
mongodb = [ "agent-connector-sdk[vector]>=0.
|
|
25
|
-
chromadb = [ "agent-connector-sdk[vector-chroma]>=0.
|
|
21
|
+
mcp = [ "agent-connector-sdk[mcp]>=0.4.1,<1.0.0",]
|
|
22
|
+
postgres = [ "agent-connector-sdk[vector]>=0.4.1,<1.0.0",]
|
|
23
|
+
qdrant = [ "agent-connector-sdk[vector]>=0.4.1,<1.0.0",]
|
|
24
|
+
mongodb = [ "agent-connector-sdk[vector]>=0.4.1,<1.0.0",]
|
|
25
|
+
chromadb = [ "agent-connector-sdk[vector-chroma]>=0.4.1,<1.0.0",]
|
|
26
26
|
all = [ "vector-mcp[mcp,postgres,qdrant,mongodb,chromadb]>=2.1.2",]
|
|
27
27
|
test = [
|
|
28
28
|
"pytest-xdist>=3.8.0", "pytest>=9.1.1", "pytest-asyncio>=1.4.0", "pytest-cov>=7.1.0",]
|
|
@@ -37,12 +37,13 @@ vector-mcp = "vector_mcp.skills"
|
|
|
37
37
|
[project.entry-points."agent_connector_sdk.ontology_providers"]
|
|
38
38
|
vector-mcp = "vector_mcp.ontology"
|
|
39
39
|
|
|
40
|
-
[project.entry-points."agent_connector_sdk.source_connector_providers"]
|
|
41
|
-
vector-mcp = "vector_mcp.connectors"
|
|
42
|
-
|
|
43
40
|
[project.entry-points."agent_connector_sdk.prompt_providers"]
|
|
44
41
|
vector-mcp = "vector_mcp.prompts"
|
|
45
42
|
|
|
43
|
+
# The one declared connector identity: the fleet name (SDK-CONNECTOR-CONTROL-R071).
|
|
44
|
+
[project.entry-points."agent_connector_sdk.connector"]
|
|
45
|
+
vector-mcp = "vector_mcp"
|
|
46
|
+
|
|
46
47
|
[tool.uv.workspace]
|
|
47
48
|
members = ["."]
|
|
48
49
|
|
|
@@ -50,6 +51,7 @@ members = ["."]
|
|
|
50
51
|
include-package-data = true
|
|
51
52
|
|
|
52
53
|
[tool.ruff]
|
|
54
|
+
extend-exclude = ["tests", "scripts"]
|
|
53
55
|
line-length = 88
|
|
54
56
|
target-version = "py311"
|
|
55
57
|
|
|
@@ -84,3 +86,9 @@ override-dependencies = [
|
|
|
84
86
|
|
|
85
87
|
[tool.pipelines_hooks.ste]
|
|
86
88
|
exempt = ["specs/*", "specs/**/*"]
|
|
89
|
+
|
|
90
|
+
[tool.pipelines.container]
|
|
91
|
+
host = "0.0.0.0"
|
|
92
|
+
compose_host = "0.0.0.0"
|
|
93
|
+
debug_apt = ["default-jre", "ripgrep", "tree", "fd-find", "curl", "nano", "build-essential", "cmake", "libssl-dev", "libcurl4-openssl-dev", "pkg-config", "rustc", "cargo"]
|
|
94
|
+
compose_env = ["AUTH_TYPE=${MCP_AUTH_TYPE:?set MCP_AUTH_TYPE for network transport}"]
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
2
|
import asyncio
|
|
3
3
|
import json
|
|
4
|
+
import os
|
|
4
5
|
import uuid
|
|
5
6
|
|
|
6
7
|
import httpx
|
|
7
8
|
|
|
8
|
-
A2A_URL = "http://
|
|
9
|
+
A2A_URL = os.environ.get("A2A_URL", "http://example.invalid/a2a/")
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
def _last_non_user_message(history):
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""CONN-VECTOR-MCP-CONNECTOR-CONTENT-R001: the server lists its packaged skills, ontology and prompts by default."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import asyncio
|
|
6
|
+
import importlib
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
import pytest
|
|
10
|
+
from fastmcp import Client
|
|
11
|
+
|
|
12
|
+
PACKAGE = "vector_mcp"
|
|
13
|
+
ROOT = Path(list(importlib.import_module(PACKAGE).__path__)[0])
|
|
14
|
+
|
|
15
|
+
pytestmark = pytest.mark.spec("CONN-VECTOR-MCP-CONNECTOR-CONTENT-R001")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def _server():
|
|
19
|
+
namespace = {"__name__": PACKAGE + ".mcp_server"}
|
|
20
|
+
exec(
|
|
21
|
+
"from agent_connector_sdk.mcp.server import create_mcp_server\n"
|
|
22
|
+
"result = create_mcp_server('vector-mcp', version='0', command_args=[])",
|
|
23
|
+
namespace,
|
|
24
|
+
)
|
|
25
|
+
return namespace["result"][1]
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
async def _listings():
|
|
29
|
+
async with Client(_server()) as client:
|
|
30
|
+
resources = {str(r.uri) for r in await client.list_resources()}
|
|
31
|
+
prompts = {p.name for p in await client.list_prompts()}
|
|
32
|
+
return resources, prompts
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def test_default_content_surfaces() -> None:
|
|
36
|
+
resources, prompts = asyncio.run(_listings())
|
|
37
|
+
if list(ROOT.glob("skills/*/SKILL.md")):
|
|
38
|
+
assert any(u.startswith("skill://") for u in resources)
|
|
39
|
+
if list(ROOT.glob("ontology/*.ttl")):
|
|
40
|
+
assert any(u.startswith("ontology://vector-mcp/") for u in resources)
|
|
41
|
+
for path in ROOT.glob("prompts/*.json"):
|
|
42
|
+
if not path.name.startswith("_"):
|
|
43
|
+
assert path.stem in prompts
|
|
@@ -22,10 +22,10 @@ def test_store_extras_come_from_the_sdk() -> None:
|
|
|
22
22
|
project = tomllib.loads(PYPROJECT.read_text(encoding="utf-8"))["project"]
|
|
23
23
|
extras = project["optional-dependencies"]
|
|
24
24
|
expected = {
|
|
25
|
-
"postgres": "agent-connector-sdk[vector]>=0.
|
|
26
|
-
"qdrant": "agent-connector-sdk[vector]>=0.
|
|
27
|
-
"mongodb": "agent-connector-sdk[vector]>=0.
|
|
28
|
-
"chromadb": "agent-connector-sdk[vector-chroma]>=0.
|
|
25
|
+
"postgres": "agent-connector-sdk[vector]>=0.4.1,<1.0.0",
|
|
26
|
+
"qdrant": "agent-connector-sdk[vector]>=0.4.1,<1.0.0",
|
|
27
|
+
"mongodb": "agent-connector-sdk[vector]>=0.4.1,<1.0.0",
|
|
28
|
+
"chromadb": "agent-connector-sdk[vector-chroma]>=0.4.1,<1.0.0",
|
|
29
29
|
}
|
|
30
30
|
for extra, requirement in expected.items():
|
|
31
31
|
assert extras[extra] == [requirement]
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"""Governed vector retrieval provider package."""
|
|
2
|
+
|
|
3
|
+
import tomllib
|
|
4
|
+
from importlib.metadata import PackageNotFoundError
|
|
5
|
+
from importlib.metadata import version as _distribution_version
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def _source_version() -> str:
|
|
10
|
+
"""Read the project version when importing directly from an unpackaged checkout."""
|
|
11
|
+
try:
|
|
12
|
+
project = Path(__file__).resolve().parents[1] / "pyproject.toml"
|
|
13
|
+
return str(
|
|
14
|
+
tomllib.loads(project.read_text(encoding="utf-8"))["project"]["version"]
|
|
15
|
+
)
|
|
16
|
+
except (OSError, KeyError, TypeError, tomllib.TOMLDecodeError):
|
|
17
|
+
return "0.0.0"
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
try:
|
|
21
|
+
__version__ = _distribution_version("vector-mcp")
|
|
22
|
+
except PackageNotFoundError:
|
|
23
|
+
__version__ = _source_version()
|
|
24
|
+
|
|
25
|
+
__all__ = ["__version__"]
|
|
@@ -92,7 +92,11 @@ def register_split_action_tools(
|
|
|
92
92
|
registrar(scratch)
|
|
93
93
|
tags.append(tag)
|
|
94
94
|
for name, tool in registered_tools(scratch).items():
|
|
95
|
-
actions =
|
|
95
|
+
actions = (
|
|
96
|
+
_actions(tool)
|
|
97
|
+
if "action" in (tool.parameters or {}).get("properties", {})
|
|
98
|
+
else []
|
|
99
|
+
)
|
|
96
100
|
if not actions:
|
|
97
101
|
mcp.add_tool(tool)
|
|
98
102
|
continue
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
"""Data sources of this connector, declared by tool name (generated by connector-ontology-map migrate).
|
|
2
|
+
|
|
3
|
+
Served live as ``connector://resources``. Regenerate by editing the declarations, not the tools.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
# ruff: noqa: E501
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
from agent_connector_sdk.ingest.live_declaration import source_meta
|
|
10
|
+
from agent_connector_sdk.ingest.sources import IngestSourceDeclaration, IngestSourceSpec
|
|
11
|
+
|
|
12
|
+
CONNECTOR = "vector-mcp"
|
|
13
|
+
|
|
14
|
+
SOURCES = (
|
|
15
|
+
source_meta(
|
|
16
|
+
tool="vector_list_collections",
|
|
17
|
+
source_id="vector-collections",
|
|
18
|
+
record_type="VectorCollection",
|
|
19
|
+
id_field="collection_name",
|
|
20
|
+
preset={
|
|
21
|
+
"doc_type": "vector_collection",
|
|
22
|
+
"params_style": "args",
|
|
23
|
+
},
|
|
24
|
+
records_path="collections",
|
|
25
|
+
server="vector-mcp",
|
|
26
|
+
text_field="collection_name",
|
|
27
|
+
title_field="collection_name",
|
|
28
|
+
),
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
SCHEMA_MAPPINGS = {
|
|
32
|
+
"Chunk": {
|
|
33
|
+
"fields": {
|
|
34
|
+
"bm25Weight": "xsd:double",
|
|
35
|
+
"chunkText": "xsd:string",
|
|
36
|
+
"collectionName": "xsd:string",
|
|
37
|
+
"dbType": "xsd:string",
|
|
38
|
+
"dimensions": "xsd:integer",
|
|
39
|
+
"distanceMetric": "xsd:string",
|
|
40
|
+
"embeddingModel": "xsd:string",
|
|
41
|
+
"lexicalWeight": "xsd:double",
|
|
42
|
+
"numberResults": "xsd:integer",
|
|
43
|
+
"rrfK": "xsd:integer",
|
|
44
|
+
"semanticWeight": "xsd:double",
|
|
45
|
+
"similarityScore": "xsd:double",
|
|
46
|
+
},
|
|
47
|
+
"ontology_class": None,
|
|
48
|
+
},
|
|
49
|
+
"Embedding": {
|
|
50
|
+
"fields": {
|
|
51
|
+
"bm25Weight": "xsd:double",
|
|
52
|
+
"chunkText": "xsd:string",
|
|
53
|
+
"collectionName": "xsd:string",
|
|
54
|
+
"dbType": "xsd:string",
|
|
55
|
+
"dimensions": "xsd:integer",
|
|
56
|
+
"distanceMetric": "xsd:string",
|
|
57
|
+
"embeddingModel": "xsd:string",
|
|
58
|
+
"lexicalWeight": "xsd:double",
|
|
59
|
+
"numberResults": "xsd:integer",
|
|
60
|
+
"rrfK": "xsd:integer",
|
|
61
|
+
"semanticWeight": "xsd:double",
|
|
62
|
+
"similarityScore": "xsd:double",
|
|
63
|
+
},
|
|
64
|
+
"ontology_class": None,
|
|
65
|
+
},
|
|
66
|
+
"SearchHit": {
|
|
67
|
+
"fields": {
|
|
68
|
+
"bm25Weight": "xsd:double",
|
|
69
|
+
"chunkText": "xsd:string",
|
|
70
|
+
"collectionName": "xsd:string",
|
|
71
|
+
"dbType": "xsd:string",
|
|
72
|
+
"dimensions": "xsd:integer",
|
|
73
|
+
"distanceMetric": "xsd:string",
|
|
74
|
+
"embeddingModel": "xsd:string",
|
|
75
|
+
"lexicalWeight": "xsd:double",
|
|
76
|
+
"numberResults": "xsd:integer",
|
|
77
|
+
"rrfK": "xsd:integer",
|
|
78
|
+
"semanticWeight": "xsd:double",
|
|
79
|
+
"similarityScore": "xsd:double",
|
|
80
|
+
},
|
|
81
|
+
"ontology_class": None,
|
|
82
|
+
},
|
|
83
|
+
"SearchQuery": {
|
|
84
|
+
"fields": {
|
|
85
|
+
"bm25Weight": "xsd:double",
|
|
86
|
+
"chunkText": "xsd:string",
|
|
87
|
+
"collectionName": "xsd:string",
|
|
88
|
+
"dbType": "xsd:string",
|
|
89
|
+
"dimensions": "xsd:integer",
|
|
90
|
+
"distanceMetric": "xsd:string",
|
|
91
|
+
"embeddingModel": "xsd:string",
|
|
92
|
+
"lexicalWeight": "xsd:double",
|
|
93
|
+
"numberResults": "xsd:integer",
|
|
94
|
+
"rrfK": "xsd:integer",
|
|
95
|
+
"semanticWeight": "xsd:double",
|
|
96
|
+
"similarityScore": "xsd:double",
|
|
97
|
+
},
|
|
98
|
+
"ontology_class": None,
|
|
99
|
+
},
|
|
100
|
+
"VectorBackend": {
|
|
101
|
+
"fields": {
|
|
102
|
+
"bm25Weight": "xsd:double",
|
|
103
|
+
"chunkText": "xsd:string",
|
|
104
|
+
"collectionName": "xsd:string",
|
|
105
|
+
"dbType": "xsd:string",
|
|
106
|
+
"dimensions": "xsd:integer",
|
|
107
|
+
"distanceMetric": "xsd:string",
|
|
108
|
+
"embeddingModel": "xsd:string",
|
|
109
|
+
"lexicalWeight": "xsd:double",
|
|
110
|
+
"numberResults": "xsd:integer",
|
|
111
|
+
"rrfK": "xsd:integer",
|
|
112
|
+
"semanticWeight": "xsd:double",
|
|
113
|
+
"similarityScore": "xsd:double",
|
|
114
|
+
},
|
|
115
|
+
"ontology_class": None,
|
|
116
|
+
},
|
|
117
|
+
"VectorCollection": {
|
|
118
|
+
"fields": {
|
|
119
|
+
"bm25Weight": "xsd:double",
|
|
120
|
+
"chunkText": "xsd:string",
|
|
121
|
+
"collectionName": "xsd:string",
|
|
122
|
+
"dbType": "xsd:string",
|
|
123
|
+
"dimensions": "xsd:integer",
|
|
124
|
+
"distanceMetric": "xsd:string",
|
|
125
|
+
"embeddingModel": "xsd:string",
|
|
126
|
+
"lexicalWeight": "xsd:double",
|
|
127
|
+
"numberResults": "xsd:integer",
|
|
128
|
+
"rrfK": "xsd:integer",
|
|
129
|
+
"semanticWeight": "xsd:double",
|
|
130
|
+
"similarityScore": "xsd:double",
|
|
131
|
+
},
|
|
132
|
+
"ontology_class": None,
|
|
133
|
+
},
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
RESOURCES = (
|
|
137
|
+
{
|
|
138
|
+
"id_prefix": "chunk",
|
|
139
|
+
"label": "Chunk",
|
|
140
|
+
"name": "Chunk",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"id_prefix": "embedding",
|
|
144
|
+
"label": "Embedding",
|
|
145
|
+
"name": "Embedding",
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"id_prefix": "searchhit",
|
|
149
|
+
"label": "Search Hit",
|
|
150
|
+
"name": "SearchHit",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"id_prefix": "searchquery",
|
|
154
|
+
"label": "Search Query",
|
|
155
|
+
"name": "SearchQuery",
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"id_prefix": "vectorbackend",
|
|
159
|
+
"label": "Vector Backend",
|
|
160
|
+
"name": "VectorBackend",
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"id_prefix": "vectorcollection",
|
|
164
|
+
"label": "Vector Collection",
|
|
165
|
+
"name": "VectorCollection",
|
|
166
|
+
},
|
|
167
|
+
)
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
def declaration() -> IngestSourceDeclaration:
|
|
171
|
+
"""The declaration the server assembles from this module."""
|
|
172
|
+
specs = []
|
|
173
|
+
for item in SOURCES:
|
|
174
|
+
for entry in item["connector_sources"]:
|
|
175
|
+
body = {k: v for k, v in entry.items() if k not in ("tool", "mapping")}
|
|
176
|
+
specs.append(
|
|
177
|
+
IngestSourceSpec.model_validate({**body, "tools": (entry["tool"],)})
|
|
178
|
+
)
|
|
179
|
+
return IngestSourceDeclaration.model_validate(
|
|
180
|
+
{
|
|
181
|
+
"connector": CONNECTOR,
|
|
182
|
+
"sources": specs,
|
|
183
|
+
"schema_mappings": SCHEMA_MAPPINGS,
|
|
184
|
+
"resources": RESOURCES,
|
|
185
|
+
}
|
|
186
|
+
)
|
|
@@ -155,9 +155,7 @@ def _collect_configured_directory(root: Path) -> None:
|
|
|
155
155
|
if total_bytes > MAX_DOCUMENT_TOTAL_BYTES:
|
|
156
156
|
raise ValueError("Configured document root exceeded its size limit")
|
|
157
157
|
except OSError:
|
|
158
|
-
raise ValueError(
|
|
159
|
-
"Configured document root could not be inspected"
|
|
160
|
-
) from None
|
|
158
|
+
raise ValueError("Configured document root could not be inspected") from None
|
|
161
159
|
|
|
162
160
|
|
|
163
161
|
def resolve_document_inputs(
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"api_version": "
|
|
2
|
+
"api_version": "graphos.io/v1",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"connector_manifest.yml": "92e219b2d277e76baeaeeb2ba3221a5b997511033113482fffc4ca89e5448fb1",
|
|
5
|
-
"vector_mcp/connectors/mcp_source_presets.json": "31aa65ad098cad8855fd1ba727b44b83894f6709ae44831bc2256fbc51211528",
|
|
6
|
-
"vector_mcp/connectors/tool_schema_fingerprints.json": "dd4478b94709277eb7df054f1b6ec9dbd1667e3826f3f555ce77c6f5ba3ce3d4",
|
|
7
4
|
"vector_mcp/ontology/fixtures/records.json": "6cf260132839cdee3fa8b4ee7318f4862077bcba150375a74cae1bb985b28965",
|
|
8
5
|
"vector_mcp/ontology/mappings/source.yaml": "2e8f3a5605baed844d56de29ffcace307193874f3425dbccb3bde65245b89f82",
|
|
9
6
|
"vector_mcp/ontology/migrations/manifest.json": "af4fbd9965a3789c439240566368d990c560f0f8ce1b814c6eeab4c0a319da76",
|
|
10
7
|
"vector_mcp/ontology/shapes/connector.shacl.ttl": "9af6f36f4df78859782770c4de6b701d95f9cb0e275f4a4e70189680113ddbba",
|
|
11
|
-
"vector_mcp/ontology/vector.ttl": "
|
|
8
|
+
"vector_mcp/ontology/vector.ttl": "437af7fb94a002a515c5bc0077553b0a05101b41fb7d4bc352874bba53eb79f2"
|
|
12
9
|
},
|
|
13
10
|
"checks": {
|
|
14
11
|
"declared_tool_schema": "passed",
|
|
@@ -32,5 +29,5 @@
|
|
|
32
29
|
"signer": "UNSIGNED-PREVIEW",
|
|
33
30
|
"signing_public_key": "",
|
|
34
31
|
"status": "source-validated",
|
|
35
|
-
"validated_at": "2026-
|
|
32
|
+
"validated_at": "2026-10-26T20:39:42Z"
|
|
36
33
|
}
|
|
@@ -23,9 +23,8 @@
|
|
|
23
23
|
rdfs:label "Vector Backend" ;
|
|
24
24
|
rdfs:comment "A vector-store engine that hosts collections — epistemic_graph (native default), postgres (pgvector), qdrant, or mongodb — selected by the db_type parameter." .
|
|
25
25
|
|
|
26
|
-
:Chunk a owl:Class
|
|
27
|
-
|
|
28
|
-
rdfs:comment "A retrievable text segment split from a :Document, stored in a collection with its embedding and metadata (the Document TypedDict record: id/content/metadata/embedding)." .
|
|
26
|
+
:Chunk a owl:Class .
|
|
27
|
+
|
|
29
28
|
|
|
30
29
|
:Embedding a owl:Class ;
|
|
31
30
|
rdfs:label "Embedding" ;
|
|
@@ -162,5 +161,7 @@
|
|
|
162
161
|
rdfs:comment """Vector-database / RAG retrieval model — collections, backends, chunks,
|
|
163
162
|
embeddings and semantic / lexical / hybrid search — backing the vector-mcp MCP tool
|
|
164
163
|
surface (vector_collection_management + vector_search) and federated into the
|
|
165
|
-
agent-utilities knowledge-graph hub. Reuses the shared :Document and :Person classes."""
|
|
166
|
-
|
|
164
|
+
agent-utilities knowledge-graph hub. Reuses the shared :Document and :Person classes.""" .
|
|
165
|
+
|
|
166
|
+
# ontology-codemod R3
|
|
167
|
+
<http://knuckles.team/kg#VectorCollection> rdfs:subClassOf <http://knuckles.team/kg#Collection> .
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
"schema_version": "1.0",
|
|
5
5
|
"prompt_version": "0.2.0",
|
|
6
6
|
"source": "vector-mcp",
|
|
7
|
-
"extends": "agent-utilities:base",
|
|
8
|
-
"compose": "append",
|
|
9
7
|
"description": "Vector retrieval / RAG specialist: build collections and run semantic, lexical, and hybrid search over the vector-mcp MCP server.",
|
|
10
8
|
"metadata": {
|
|
11
9
|
"topic": "Vector Retrieval & RAG",
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: vector-mcp-development
|
|
3
|
+
skill_type: skill
|
|
4
|
+
domain: development
|
|
5
|
+
description: >-
|
|
6
|
+
Develop and validate the vector-mcp connector, its action-routed vector tools,
|
|
7
|
+
packaged content, documentation, and spec-delivery integration.
|
|
8
|
+
license: MIT
|
|
9
|
+
tags: [vector, retrieval, development, mcp, spec-delivery]
|
|
10
|
+
metadata:
|
|
11
|
+
author: Genius
|
|
12
|
+
version: '0.1.0'
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Vector MCP Development
|
|
16
|
+
|
|
17
|
+
Use this skill when changing the `vector-mcp` connector, its documentation, or
|
|
18
|
+
its spec-delivery integration. Work from the repository root and read `AGENTS.md`,
|
|
19
|
+
the affected module, and the relevant `specs/` status before editing. Keep the
|
|
20
|
+
native epistemic-graph backend as the default and route optional vector providers
|
|
21
|
+
through the existing provider policy and SDK contracts.
|
|
22
|
+
|
|
23
|
+
## Rapid delivery: the 5-minute contract
|
|
24
|
+
|
|
25
|
+
For a small, reviewable change:
|
|
26
|
+
|
|
27
|
+
1. Identify one requirement or maintenance slice and name the exact files it touches.
|
|
28
|
+
2. Reuse the existing action-routed MCP surface, SDK, central pipelines, and package
|
|
29
|
+
conventions. Do not add another vector transport, planner, publisher, or CI
|
|
30
|
+
framework.
|
|
31
|
+
3. Keep spec status generated by the canonical pipeline tools. Run the narrowest
|
|
32
|
+
relevant test, then run `pre-commit run --all-files` from the repository root.
|
|
33
|
+
4. Review the complete diff, including workflow and package-data changes, and record
|
|
34
|
+
the source revision plus the commands and results used as evidence.
|
|
35
|
+
5. Keep credentials, provider endpoints, generated output, caches, and scratch files
|
|
36
|
+
outside the checkout. A Pages claim is complete only after the central reusable
|
|
37
|
+
workflow has run and the exact published `spec-delivery/` source is checked.
|
|
38
|
+
|
|
39
|
+
### Change boundaries
|
|
40
|
+
|
|
41
|
+
- Preserve the native epistemic-graph default, action-routed tools, provider policy,
|
|
42
|
+
refusal behavior, and packaged vector ontology and source mappings.
|
|
43
|
+
- Keep optional provider imports lazy and resolve credentials through the existing
|
|
44
|
+
runtime configuration and secret-reference paths.
|
|
45
|
+
- Extend an existing retrieval or collection operation before adding a new abstraction.
|
|
46
|
+
- Use the central Pages workflow and `.config/spec-dashboard.json` for the spec
|
|
47
|
+
dashboard; keep one documentation publisher for this repository.
|
|
48
|
+
- Keep the central aggregate hooks in `.pre-commit-config.yaml`; do not copy their
|
|
49
|
+
implementation or create a second CI framework.
|
|
50
|
+
|
|
51
|
+
### Validation evidence
|
|
52
|
+
|
|
53
|
+
For code changes, run the narrowest relevant mocked test first and then the repository
|
|
54
|
+
hooks. For delivery changes, validate JSON and YAML syntax and inspect the rendered
|
|
55
|
+
dashboard inputs before requesting review. Report failures with the command, revision,
|
|
56
|
+
and file or line that needs attention; do not hide a failing check behind a skipped
|
|
57
|
+
hook.
|
|
@@ -10,6 +10,7 @@ def get_logger(name: str) -> logging.Logger:
|
|
|
10
10
|
"""Standard library logger, re-exported for backward compatibility."""
|
|
11
11
|
return logging.getLogger(name)
|
|
12
12
|
|
|
13
|
+
|
|
13
14
|
if TYPE_CHECKING:
|
|
14
15
|
from .epistemic_graph import EpistemicGraphVectorDB
|
|
15
16
|
from .mongodb import MongoDBAtlasVectorDB
|
|
@@ -48,7 +48,9 @@ def _partition_embeddings(
|
|
|
48
48
|
return resolved, missing, texts
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
def _generate_missing_embeddings(
|
|
51
|
+
def _generate_missing_embeddings(
|
|
52
|
+
embed_model: Any, texts: list[str]
|
|
53
|
+
) -> list[list[float]]:
|
|
52
54
|
batch = getattr(embed_model, "get_text_embedding_batch", None)
|
|
53
55
|
if callable(batch):
|
|
54
56
|
return batch(texts)
|