vector-mcp 3.3.2__tar.gz → 3.3.5__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.2 → vector_mcp-3.3.5}/PKG-INFO +16 -16
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/README.md +8 -8
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/pyproject.toml +18 -20
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/scripts/validate_a2a_agent.py +2 -1
- vector_mcp-3.3.5/tests/test_chromadb_data_dir.py +31 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_default_content_surfaces.py +3 -7
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_package.py +1 -1
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_retrievers.py +7 -1
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_store_extras.py +4 -4
- vector_mcp-3.3.5/vector_mcp/__init__.py +48 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/action_split.py +5 -1
- vector_mcp-3.3.5/vector_mcp/connector_sources.py +166 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/document_inputs.py +1 -3
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/ontology/certification.json +3 -6
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/ontology/vector.ttl +6 -5
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/prompts/retrieval_specialist.json +0 -2
- vector_mcp-3.3.5/vector_mcp/skills/vector-mcp-development/SKILL.md +57 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/vectordb/__init__.py +1 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/vectordb/base.py +3 -1
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/vectordb/chromadb.py +4 -5
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp.egg-info/PKG-INFO +16 -16
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp.egg-info/SOURCES.txt +3 -14
- vector_mcp-3.3.5/vector_mcp.egg-info/entry_points.txt +9 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp.egg-info/requires.txt +6 -6
- vector_mcp-3.3.2/.pre-commit-config.yaml +0 -127
- vector_mcp-3.3.2/AGENTS.md +0 -231
- vector_mcp-3.3.2/CHANGELOG.md +0 -15
- vector_mcp-3.3.2/CLAUDE.md +0 -9
- vector_mcp-3.3.2/MANIFEST.in +0 -1
- vector_mcp-3.3.2/connector_manifest.yml +0 -226
- vector_mcp-3.3.2/mcp_config.json +0 -17
- vector_mcp-3.3.2/mkdocs.yml +0 -53
- vector_mcp-3.3.2/opencode.json +0 -18
- vector_mcp-3.3.2/release-readiness.json +0 -34914
- vector_mcp-3.3.2/requirements.txt +0 -10
- vector_mcp-3.3.2/scripts/security_sanitizer.py +0 -272
- vector_mcp-3.3.2/vector_mcp/__init__.py +0 -5
- vector_mcp-3.3.2/vector_mcp/connectors/mcp_source_presets.json +0 -13
- vector_mcp-3.3.2/vector_mcp/connectors/tool_schema_fingerprints.json +0 -8
- vector_mcp-3.3.2/vector_mcp.egg-info/entry_points.txt +0 -18
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/LICENSE +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/scripts/investigate_timeout.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/scripts/validate_agents.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/scripts/validate_all_dbs.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/scripts/verify_deps.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/setup.cfg +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/conftest.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/reproduce_chunking.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_all_backends.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_database_transport_security.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_databases.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_doctor.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_document_inputs.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_identity_scoped_resources.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_init_dynamics.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_mcp_server.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_optional_dependencies.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_optional_dependency_boundary.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_placeholder.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_protocol_compliance.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_secure_backends.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_startup.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_uv_sources_contract.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_vector_api.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_vector_mcp.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/tests/test_vectordbs_mock.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/__main__.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/backend_policy.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/bundled_mcp.json +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/connectors/__init__.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/doctor.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/mcp_config.json +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/mcp_server.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/ontology/__init__.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/ontology/fixtures/records.json +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/ontology/mappings/source.yaml +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/ontology/migrations/manifest.json +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/ontology/shapes/connector.shacl.ttl +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/prompts/__init__.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/prompts/main_agent.json +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/retriever/__init__.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/retriever/chromadb_retriever.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/retriever/couchbase_retriever.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/retriever/epistemic_graph_retriever.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/retriever/llamaindex_retriever.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/retriever/mongodb_retriever.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/retriever/postgres_retriever.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/retriever/qdrant_retriever.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/retriever/retriever.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/session.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/skills/__init__.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/skills/vector-backend-operations/SKILL.md +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/skills/vector-collection-management/SKILL.md +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/skills/vector-hybrid-search/SKILL.md +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/skills/vector-mcp-operations/SKILL.md +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/skills/vector-mcp-operations/agents/openai.yaml +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/skills/vector-mcp-operations/references/catalog.md +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/vector_api.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/vectordb/couchbase.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/vectordb/db_utils.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/vectordb/epistemic_graph.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/vectordb/mongodb.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/vectordb/postgres.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp/vectordb/qdrant.py +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/vector_mcp.egg-info/dependency_links.txt +0 -0
- {vector_mcp-3.3.2 → vector_mcp-3.3.5}/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.5
|
|
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:
|
|
15
|
+
Requires-Dist: scion-sdk[mcp]<0.6.0,>=0.5.9
|
|
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:
|
|
26
|
+
Requires-Dist: scion-sdk[mcp]<0.6.0,>=0.5.9; extra == "mcp"
|
|
27
27
|
Provides-Extra: postgres
|
|
28
|
-
Requires-Dist:
|
|
28
|
+
Requires-Dist: scion-sdk[vector]<0.6.0,>=0.5.9; extra == "postgres"
|
|
29
29
|
Provides-Extra: qdrant
|
|
30
|
-
Requires-Dist:
|
|
30
|
+
Requires-Dist: scion-sdk[vector]<0.6.0,>=0.5.9; extra == "qdrant"
|
|
31
31
|
Provides-Extra: mongodb
|
|
32
|
-
Requires-Dist:
|
|
32
|
+
Requires-Dist: scion-sdk[vector]<0.6.0,>=0.5.9; extra == "mongodb"
|
|
33
33
|
Provides-Extra: chromadb
|
|
34
|
-
Requires-Dist:
|
|
34
|
+
Requires-Dist: scion-sdk[vector-chroma]<0.6.0,>=0.5.9; 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.2*
|
|
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.2*
|
|
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.5"
|
|
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 = [ "
|
|
12
|
+
dependencies = [ "scion-sdk[mcp]>=0.5.9,<0.6.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 = [ "
|
|
22
|
-
postgres = [ "
|
|
23
|
-
qdrant = [ "
|
|
24
|
-
mongodb = [ "
|
|
25
|
-
chromadb = [ "
|
|
21
|
+
mcp = [ "scion-sdk[mcp]>=0.5.9,<0.6.0",]
|
|
22
|
+
postgres = [ "scion-sdk[vector]>=0.5.9,<0.6.0",]
|
|
23
|
+
qdrant = [ "scion-sdk[vector]>=0.5.9,<0.6.0",]
|
|
24
|
+
mongodb = [ "scion-sdk[vector]>=0.5.9,<0.6.0",]
|
|
25
|
+
chromadb = [ "scion-sdk[vector-chroma]>=0.5.9,<0.6.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",]
|
|
@@ -31,21 +31,12 @@ test = [
|
|
|
31
31
|
vector-mcp = "vector_mcp.mcp_server:mcp_server"
|
|
32
32
|
vector-mcp-doctor = "vector_mcp.doctor:main"
|
|
33
33
|
|
|
34
|
-
[project.entry-points."agent_connector_sdk.skill_providers"]
|
|
35
|
-
vector-mcp = "vector_mcp.skills"
|
|
36
|
-
|
|
37
|
-
[project.entry-points."agent_connector_sdk.ontology_providers"]
|
|
38
|
-
vector-mcp = "vector_mcp.ontology"
|
|
39
|
-
|
|
40
|
-
[project.entry-points."agent_connector_sdk.source_connector_providers"]
|
|
41
|
-
vector-mcp = "vector_mcp.connectors"
|
|
42
|
-
|
|
43
34
|
[project.entry-points."agent_connector_sdk.prompt_providers"]
|
|
44
35
|
vector-mcp = "vector_mcp.prompts"
|
|
45
36
|
|
|
46
|
-
# The one declared connector identity: the fleet name (
|
|
37
|
+
# The one declared connector identity: the fleet name (SCION-CONNECTOR-CONTROL-R071).
|
|
47
38
|
[project.entry-points."agent_connector_sdk.connector"]
|
|
48
|
-
vector-mcp = "vector_mcp"
|
|
39
|
+
vector-mcp = "vector_mcp:connector"
|
|
49
40
|
|
|
50
41
|
[tool.uv.workspace]
|
|
51
42
|
members = ["."]
|
|
@@ -54,6 +45,7 @@ members = ["."]
|
|
|
54
45
|
include-package-data = true
|
|
55
46
|
|
|
56
47
|
[tool.ruff]
|
|
48
|
+
extend-exclude = ["tests", "scripts"]
|
|
57
49
|
line-length = 88
|
|
58
50
|
target-version = "py311"
|
|
59
51
|
|
|
@@ -88,3 +80,9 @@ override-dependencies = [
|
|
|
88
80
|
|
|
89
81
|
[tool.pipelines_hooks.ste]
|
|
90
82
|
exempt = ["specs/*", "specs/**/*"]
|
|
83
|
+
|
|
84
|
+
[tool.pipelines.container]
|
|
85
|
+
host = "0.0.0.0"
|
|
86
|
+
compose_host = "0.0.0.0"
|
|
87
|
+
debug_apt = ["default-jre", "ripgrep", "tree", "fd-find", "curl", "nano", "build-essential", "cmake", "libssl-dev", "libcurl4-openssl-dev", "pkg-config", "rustc", "cargo"]
|
|
88
|
+
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,31 @@
|
|
|
1
|
+
"""The ChromaDB data directory is owned by this connector, not agent-utilities."""
|
|
2
|
+
|
|
3
|
+
import importlib
|
|
4
|
+
|
|
5
|
+
import pytest
|
|
6
|
+
|
|
7
|
+
pytest.importorskip("platformdirs")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def _module():
|
|
11
|
+
return importlib.import_module("vector_mcp.vectordb.chromadb")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def test_data_dir_defaults_to_the_connector_app_name(monkeypatch, tmp_path):
|
|
15
|
+
monkeypatch.delenv("VECTOR_MCP_DATA_DIR", raising=False)
|
|
16
|
+
monkeypatch.setenv("XDG_DATA_HOME", str(tmp_path))
|
|
17
|
+
path = _module()._data_dir()
|
|
18
|
+
assert path == tmp_path / "vector-mcp"
|
|
19
|
+
assert "agent-utilities" not in str(path)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def test_data_dir_honours_connector_override(monkeypatch, tmp_path):
|
|
23
|
+
monkeypatch.setenv("VECTOR_MCP_DATA_DIR", str(tmp_path / "chosen"))
|
|
24
|
+
assert _module()._data_dir() == tmp_path / "chosen"
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def test_legacy_agent_utilities_data_dir_env_is_ignored(monkeypatch, tmp_path):
|
|
28
|
+
monkeypatch.delenv("VECTOR_MCP_DATA_DIR", raising=False)
|
|
29
|
+
monkeypatch.setenv("XDG_DATA_HOME", str(tmp_path))
|
|
30
|
+
monkeypatch.setenv("AGENT_UTILITIES_DATA_DIR", str(tmp_path / "legacy"))
|
|
31
|
+
assert _module()._data_dir() == tmp_path / "vector-mcp"
|
|
@@ -16,13 +16,9 @@ pytestmark = pytest.mark.spec("CONN-VECTOR-MCP-CONNECTOR-CONTENT-R001")
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
def _server():
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"result = create_mcp_server('vector-mcp', version='0', command_args=[])",
|
|
23
|
-
namespace,
|
|
24
|
-
)
|
|
25
|
-
return namespace["result"][1]
|
|
19
|
+
from agent_connector_sdk.connector import build_server
|
|
20
|
+
|
|
21
|
+
return build_server(PACKAGE, command_args=[])[1]
|
|
26
22
|
|
|
27
23
|
|
|
28
24
|
async def _listings():
|
|
@@ -7,4 +7,4 @@ import vector_mcp
|
|
|
7
7
|
|
|
8
8
|
def test_package_exposes_semantic_version_without_import_side_effects() -> None:
|
|
9
9
|
assert re.fullmatch(r"\d+\.\d+\.\d+", vector_mcp.__version__)
|
|
10
|
-
assert vector_mcp.__all__ == ["__version__"]
|
|
10
|
+
assert vector_mcp.__all__ == ["__version__", "connector"]
|
|
@@ -73,7 +73,13 @@ def mock_dependencies_fixture():
|
|
|
73
73
|
sys.modules["llama_index.core.vector_stores.types"] = (
|
|
74
74
|
mock_llama_index.core.vector_stores.types
|
|
75
75
|
)
|
|
76
|
-
|
|
76
|
+
# The embedding client is the network boundary: it resolves and pins the
|
|
77
|
+
# configured endpoint, so a unit test must not build a real one.
|
|
78
|
+
with patch(
|
|
79
|
+
"vector_mcp.retriever.llamaindex_retriever.create_embedding_model",
|
|
80
|
+
return_value=MagicMock(),
|
|
81
|
+
):
|
|
82
|
+
yield
|
|
77
83
|
# Restore
|
|
78
84
|
for name, orig in _curr_orig.items():
|
|
79
85
|
if orig is not None:
|
|
@@ -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": "
|
|
26
|
-
"qdrant": "
|
|
27
|
-
"mongodb": "
|
|
28
|
-
"chromadb": "
|
|
25
|
+
"postgres": "scion-sdk[vector]>=0.5.9,<0.6.0",
|
|
26
|
+
"qdrant": "scion-sdk[vector]>=0.5.9,<0.6.0",
|
|
27
|
+
"mongodb": "scion-sdk[vector]>=0.5.9,<0.6.0",
|
|
28
|
+
"chromadb": "scion-sdk[vector-chroma]>=0.5.9,<0.6.0",
|
|
29
29
|
}
|
|
30
30
|
for extra, requirement in expected.items():
|
|
31
31
|
assert extras[extra] == [requirement]
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
from agent_connector_sdk.connector import Connector # noqa: E402
|
|
26
|
+
|
|
27
|
+
from vector_mcp.mcp_server import ( # noqa: E402
|
|
28
|
+
register_collection_management_tools,
|
|
29
|
+
register_search_tools,
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
connector = Connector(
|
|
33
|
+
instructions="vector-mcp MCP Server — governed vector retrieval, one tool per operation.",
|
|
34
|
+
action_tools=(
|
|
35
|
+
(
|
|
36
|
+
"collection_management",
|
|
37
|
+
"COLLECTION_MANAGEMENTTOOL",
|
|
38
|
+
register_collection_management_tools,
|
|
39
|
+
),
|
|
40
|
+
("search", "SEARCHTOOL", register_search_tools),
|
|
41
|
+
),
|
|
42
|
+
action_prefixes={
|
|
43
|
+
"vector_collection_management": "vector",
|
|
44
|
+
"vector_search": "vector",
|
|
45
|
+
},
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
__all__ = ["__version__", "connector"]
|
|
@@ -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,166 @@
|
|
|
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
|
+
|
|
11
|
+
CONNECTOR = "vector-mcp"
|
|
12
|
+
|
|
13
|
+
SOURCES = (
|
|
14
|
+
source_meta(
|
|
15
|
+
tool="vector_list_collections",
|
|
16
|
+
source_id="vector-collections",
|
|
17
|
+
record_type="VectorCollection",
|
|
18
|
+
id_field="collection_name",
|
|
19
|
+
preset={
|
|
20
|
+
"doc_type": "vector_collection",
|
|
21
|
+
"params_style": "args",
|
|
22
|
+
},
|
|
23
|
+
records_path="collections",
|
|
24
|
+
server="vector-mcp",
|
|
25
|
+
text_field="collection_name",
|
|
26
|
+
title_field="collection_name",
|
|
27
|
+
),
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
SCHEMA_MAPPINGS = {
|
|
31
|
+
"Chunk": {
|
|
32
|
+
"fields": {
|
|
33
|
+
"bm25Weight": "xsd:double",
|
|
34
|
+
"chunkText": "xsd:string",
|
|
35
|
+
"collectionName": "xsd:string",
|
|
36
|
+
"dbType": "xsd:string",
|
|
37
|
+
"dimensions": "xsd:integer",
|
|
38
|
+
"distanceMetric": "xsd:string",
|
|
39
|
+
"embeddingModel": "xsd:string",
|
|
40
|
+
"lexicalWeight": "xsd:double",
|
|
41
|
+
"numberResults": "xsd:integer",
|
|
42
|
+
"rrfK": "xsd:integer",
|
|
43
|
+
"semanticWeight": "xsd:double",
|
|
44
|
+
"similarityScore": "xsd:double",
|
|
45
|
+
},
|
|
46
|
+
"ontology_class": None,
|
|
47
|
+
},
|
|
48
|
+
"Embedding": {
|
|
49
|
+
"fields": {
|
|
50
|
+
"bm25Weight": "xsd:double",
|
|
51
|
+
"chunkText": "xsd:string",
|
|
52
|
+
"collectionName": "xsd:string",
|
|
53
|
+
"dbType": "xsd:string",
|
|
54
|
+
"dimensions": "xsd:integer",
|
|
55
|
+
"distanceMetric": "xsd:string",
|
|
56
|
+
"embeddingModel": "xsd:string",
|
|
57
|
+
"lexicalWeight": "xsd:double",
|
|
58
|
+
"numberResults": "xsd:integer",
|
|
59
|
+
"rrfK": "xsd:integer",
|
|
60
|
+
"semanticWeight": "xsd:double",
|
|
61
|
+
"similarityScore": "xsd:double",
|
|
62
|
+
},
|
|
63
|
+
"ontology_class": None,
|
|
64
|
+
},
|
|
65
|
+
"SearchHit": {
|
|
66
|
+
"fields": {
|
|
67
|
+
"bm25Weight": "xsd:double",
|
|
68
|
+
"chunkText": "xsd:string",
|
|
69
|
+
"collectionName": "xsd:string",
|
|
70
|
+
"dbType": "xsd:string",
|
|
71
|
+
"dimensions": "xsd:integer",
|
|
72
|
+
"distanceMetric": "xsd:string",
|
|
73
|
+
"embeddingModel": "xsd:string",
|
|
74
|
+
"lexicalWeight": "xsd:double",
|
|
75
|
+
"numberResults": "xsd:integer",
|
|
76
|
+
"rrfK": "xsd:integer",
|
|
77
|
+
"semanticWeight": "xsd:double",
|
|
78
|
+
"similarityScore": "xsd:double",
|
|
79
|
+
},
|
|
80
|
+
"ontology_class": None,
|
|
81
|
+
},
|
|
82
|
+
"SearchQuery": {
|
|
83
|
+
"fields": {
|
|
84
|
+
"bm25Weight": "xsd:double",
|
|
85
|
+
"chunkText": "xsd:string",
|
|
86
|
+
"collectionName": "xsd:string",
|
|
87
|
+
"dbType": "xsd:string",
|
|
88
|
+
"dimensions": "xsd:integer",
|
|
89
|
+
"distanceMetric": "xsd:string",
|
|
90
|
+
"embeddingModel": "xsd:string",
|
|
91
|
+
"lexicalWeight": "xsd:double",
|
|
92
|
+
"numberResults": "xsd:integer",
|
|
93
|
+
"rrfK": "xsd:integer",
|
|
94
|
+
"semanticWeight": "xsd:double",
|
|
95
|
+
"similarityScore": "xsd:double",
|
|
96
|
+
},
|
|
97
|
+
"ontology_class": None,
|
|
98
|
+
},
|
|
99
|
+
"VectorBackend": {
|
|
100
|
+
"fields": {
|
|
101
|
+
"bm25Weight": "xsd:double",
|
|
102
|
+
"chunkText": "xsd:string",
|
|
103
|
+
"collectionName": "xsd:string",
|
|
104
|
+
"dbType": "xsd:string",
|
|
105
|
+
"dimensions": "xsd:integer",
|
|
106
|
+
"distanceMetric": "xsd:string",
|
|
107
|
+
"embeddingModel": "xsd:string",
|
|
108
|
+
"lexicalWeight": "xsd:double",
|
|
109
|
+
"numberResults": "xsd:integer",
|
|
110
|
+
"rrfK": "xsd:integer",
|
|
111
|
+
"semanticWeight": "xsd:double",
|
|
112
|
+
"similarityScore": "xsd:double",
|
|
113
|
+
},
|
|
114
|
+
"ontology_class": None,
|
|
115
|
+
},
|
|
116
|
+
"VectorCollection": {
|
|
117
|
+
"fields": {
|
|
118
|
+
"bm25Weight": "xsd:double",
|
|
119
|
+
"chunkText": "xsd:string",
|
|
120
|
+
"collectionName": "xsd:string",
|
|
121
|
+
"dbType": "xsd:string",
|
|
122
|
+
"dimensions": "xsd:integer",
|
|
123
|
+
"distanceMetric": "xsd:string",
|
|
124
|
+
"embeddingModel": "xsd:string",
|
|
125
|
+
"lexicalWeight": "xsd:double",
|
|
126
|
+
"numberResults": "xsd:integer",
|
|
127
|
+
"rrfK": "xsd:integer",
|
|
128
|
+
"semanticWeight": "xsd:double",
|
|
129
|
+
"similarityScore": "xsd:double",
|
|
130
|
+
},
|
|
131
|
+
"ontology_class": None,
|
|
132
|
+
},
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
RESOURCES = (
|
|
136
|
+
{
|
|
137
|
+
"id_prefix": "chunk",
|
|
138
|
+
"label": "Chunk",
|
|
139
|
+
"name": "Chunk",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"id_prefix": "embedding",
|
|
143
|
+
"label": "Embedding",
|
|
144
|
+
"name": "Embedding",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id_prefix": "searchhit",
|
|
148
|
+
"label": "Search Hit",
|
|
149
|
+
"name": "SearchHit",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"id_prefix": "searchquery",
|
|
153
|
+
"label": "Search Query",
|
|
154
|
+
"name": "SearchQuery",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"id_prefix": "vectorbackend",
|
|
158
|
+
"label": "Vector Backend",
|
|
159
|
+
"name": "VectorBackend",
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"id_prefix": "vectorcollection",
|
|
163
|
+
"label": "Vector Collection",
|
|
164
|
+
"name": "VectorCollection",
|
|
165
|
+
},
|
|
166
|
+
)
|
|
@@ -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-30T01:38:51Z"
|
|
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",
|