sql-mcp 2.3.9__tar.gz → 2.4.0__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.
Files changed (62) hide show
  1. {sql_mcp-2.3.9/sql_mcp.egg-info → sql_mcp-2.4.0}/PKG-INFO +2 -2
  2. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/pyproject.toml +2 -2
  3. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/auth.py +1 -1
  4. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/kg_ingest.py +1 -1
  5. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/mcp/mcp_sql.py +1 -1
  6. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/ontology/__init__.py +1 -1
  7. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/ontology/certification.json +3 -3
  8. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/ontology/database.ttl +8 -7
  9. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/ontology/shapes/connector.shacl.ttl +2 -2
  10. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/skills/sql-mcp-knowledge-graph-ingestion/SKILL.md +1 -1
  11. {sql_mcp-2.3.9 → sql_mcp-2.4.0/sql_mcp.egg-info}/PKG-INFO +2 -2
  12. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp.egg-info/SOURCES.txt +1 -0
  13. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp.egg-info/requires.txt +1 -1
  14. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/tests/test_kg_ingest.py +1 -1
  15. sql_mcp-2.4.0/tests/test_scion_sdk_0_10_imports.py +59 -0
  16. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/LICENSE +0 -0
  17. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/README.md +0 -0
  18. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/setup.cfg +0 -0
  19. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/__init__.py +0 -0
  20. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/__main__.py +0 -0
  21. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/api/__init__.py +0 -0
  22. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/api/api_client_sql.py +0 -0
  23. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/api_client.py +0 -0
  24. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/connector_contracts.py +0 -0
  25. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/connector_sources.py +0 -0
  26. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/dialects.py +0 -0
  27. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/kg_pgwire.py +0 -0
  28. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/mcp/__init__.py +0 -0
  29. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/mcp_config.json +0 -0
  30. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/mcp_server.py +0 -0
  31. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/ontology/fixtures/records.json +0 -0
  32. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/ontology/mappings/source.yaml +0 -0
  33. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/ontology/migrations/manifest.json +0 -0
  34. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/prompts/sql-mcp-data-analyst.json +0 -0
  35. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/prompts/sql-mcp-data-steward.json +0 -0
  36. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/prompts/sql-mcp-database-administrator.json +0 -0
  37. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/prompts/sql-mcp-operator.json +0 -0
  38. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/safety.py +0 -0
  39. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/skills/sql-mcp-development/SKILL.md +0 -0
  40. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/skills/sql-mcp-knowledge-graph-ingestion/WORKFLOW.md +0 -0
  41. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/skills/sql-mcp-operations/SKILL.md +0 -0
  42. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/skills/sql-mcp-operations/agents/openai.yaml +0 -0
  43. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/skills/sql-mcp-operations/references/catalog.md +0 -0
  44. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/skills/sql-mcp-query-execution/SKILL.md +0 -0
  45. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/skills/sql-mcp-query-execution/WORKFLOW.md +0 -0
  46. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/skills/sql-mcp-schema-inspection/SKILL.md +0 -0
  47. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/skills/sql-mcp-schema-inspection/WORKFLOW.md +0 -0
  48. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp/sql_response_models.py +0 -0
  49. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp.egg-info/dependency_links.txt +0 -0
  50. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp.egg-info/entry_points.txt +0 -0
  51. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/sql_mcp.egg-info/top_level.txt +0 -0
  52. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/tests/test_api_wrapper.py +0 -0
  53. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/tests/test_auth.py +0 -0
  54. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/tests/test_dialect_paths.py +0 -0
  55. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/tests/test_dialects.py +0 -0
  56. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/tests/test_identity_context_scoping.py +0 -0
  57. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/tests/test_init_dynamics.py +0 -0
  58. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/tests/test_kg_pgwire.py +0 -0
  59. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/tests/test_package_getattr.py +0 -0
  60. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/tests/test_safety.py +0 -0
  61. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/tests/test_sql_mcp_validation.py +0 -0
  62. {sql_mcp-2.3.9 → sql_mcp-2.4.0}/tests/test_startup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sql-mcp
3
- Version: 2.3.9
3
+ Version: 2.4.0
4
4
  Summary: Generic SQL database (Postgres, MySQL/MariaDB, MSSQL, Oracle, SQLite) API + MCP Server for Agentic AI!
5
5
  Author-email: Repository Maintainers <maintainers@knuckles.team>
6
6
  License: MIT
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3
12
12
  Requires-Python: <3.15,>=3.12
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
- Requires-Dist: scion-sdk[mcp]<1.0.0,>=0.9.0
15
+ Requires-Dist: scion-sdk[mcp]<0.12,>=0.11.0
16
16
  Requires-Dist: python-dotenv>=1.2.4
17
17
  Requires-Dist: sqlalchemy>=2.1.5
18
18
  Provides-Extra: postgres
@@ -4,12 +4,12 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "sql-mcp"
7
- version = "2.3.9"
7
+ version = "2.4.0"
8
8
  description = "Generic SQL database (Postgres, MySQL/MariaDB, MSSQL, Oracle, SQLite) API + MCP Server for Agentic AI!"
9
9
  readme = "README.md"
10
10
  classifiers = [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Environment :: Console", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3",]
11
11
  requires-python = ">=3.12, <3.15"
12
- dependencies = [ "scion-sdk[mcp]>=0.9.0,<1.0.0", "python-dotenv>=1.2.4", "sqlalchemy>=2.1.5",]
12
+ dependencies = [ "scion-sdk[mcp]>=0.11.0,<0.12", "python-dotenv>=1.2.4", "sqlalchemy>=2.1.5",]
13
13
  [[project.authors]]
14
14
  name = "Repository Maintainers"
15
15
  email = "maintainers@knuckles.team"
@@ -205,7 +205,7 @@ def allow_writes() -> bool:
205
205
 
206
206
 
207
207
  def allow_kg_ingest() -> bool:
208
- """Whether SQL schema writes into Epistemic Graph are enabled."""
208
+ """Whether SQL schema writes into Medulla are enabled."""
209
209
  return bool(setting("SQL_ALLOW_KG_INGEST", False))
210
210
 
211
211
 
@@ -1,4 +1,4 @@
1
- """Epistemic-graph ingestion for reflected relational schemas.
1
+ """Medulla ingestion for reflected relational schemas.
2
2
 
3
3
  Writes use ``scion_sdk.ingest`` -- the generated ``SourceIngest`` client,
4
4
  not a local ingestion helper. Nodes use canonical ``node_type`` and edges use
@@ -84,7 +84,7 @@ def register_sql_tools(mcp: FastMCP) -> None:
84
84
 
85
85
  if not allow_kg_ingest():
86
86
  raise PermissionError(
87
- "Epistemic Graph ingestion is disabled. Start the server with "
87
+ "Medulla ingestion is disabled. Start the server with "
88
88
  "SQL_ALLOW_KG_INGEST=True to enable this external write path."
89
89
  )
90
90
  api = get_api()
@@ -1,7 +1,7 @@
1
1
  """Database ontology contribution (CONCEPT:AU-KG.ontology.package-federation-migration).
2
2
 
3
3
  Data-only subpackage: it carries ``database.ttl`` (the ``owl:Ontology``
4
- ``http://knuckles.team/kg/database`` module — databases, schemas, tables,
4
+ ``https://knuckles-team.github.io/ontology/connector/database`` module — databases, schemas, tables,
5
5
  columns and their relationships) which the scion-sdk hub federates in via
6
6
  the ``scion_sdk.ontology_providers`` entry-point. It holds no business
7
7
  logic and no heavy imports so the hub can resolve it cheaply.
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "api_version": "graphos.io/v1",
3
3
  "artifacts": {
4
- "sql_mcp/ontology/database.ttl": "9bedb25413dbd4aa83ae76ec84b025e01f5e1affd1afc01e899e543e5ba2dbd2",
4
+ "sql_mcp/ontology/database.ttl": "da0e6649ba804c2820b9041a25bdcb37412f2f08c194e4455712d7a6ffd9b713",
5
5
  "sql_mcp/ontology/fixtures/records.json": "2a06e3f58c45c99a612d756419b9029fc7d14f5acaa1db77f964e32cc58c28d1",
6
6
  "sql_mcp/ontology/mappings/source.yaml": "15faf4992ea561ea2ffa48bdd39ccb78823b11b31f32aeda2030479e700a521e",
7
7
  "sql_mcp/ontology/migrations/manifest.json": "18189bd6a40c3683809ed9d80a2179361bbc8ea79d11ed1c3bed6152f64c3396",
8
- "sql_mcp/ontology/shapes/connector.shacl.ttl": "d4b4e860b48ad2ada571ae1e21a29d7d5f6970ebf4169702eb1012dba72420f9"
8
+ "sql_mcp/ontology/shapes/connector.shacl.ttl": "65b49a90dd8ca3ea622f5f9ca3e64673ef7afd37b835dc25f2f9832c8305cebd"
9
9
  },
10
10
  "checks": {
11
11
  "declared_tool_schema": "passed",
@@ -29,5 +29,5 @@
29
29
  "signer": "UNSIGNED-PREVIEW",
30
30
  "signing_public_key": "",
31
31
  "status": "source-validated",
32
- "validated_at": "2026-11-06T18:25:13Z"
32
+ "validated_at": "2026-11-13T00:28:35Z"
33
33
  }
@@ -1,11 +1,12 @@
1
1
  @prefix fibo-fi: <https://spec.edmcouncil.org/fibo/ontology/FBC/FinancialInstruments/FinancialInstruments/> .
2
+ @prefix core: <https://knuckles-team.github.io/ontology/core#> .
2
3
  @prefix fibo-org: <https://spec.edmcouncil.org/fibo/ontology/FND/Organizations/Organizations/> .
3
4
  @prefix bibo: <http://purl.org/ontology/bibo/> .
4
5
  @prefix time: <http://www.w3.org/2006/time#> .
5
6
  @prefix skos: <http://www.w3.org/2004/02/skos/core#> .
6
7
  @prefix foaf: <http://xmlns.com/foaf/0.1/> .
7
8
  @prefix dc: <http://purl.org/dc/terms/> .
8
- @prefix : <http://knuckles.team/kg#> .
9
+ @prefix : <https://knuckles-team.github.io/ontology/connector/sql#> .
9
10
  @prefix owl: <http://www.w3.org/2002/07/owl#> .
10
11
  @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
11
12
  @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@@ -64,7 +65,7 @@
64
65
  rdfs:domain :DatabaseTable ;
65
66
  rdfs:range :DatabaseTable .
66
67
 
67
- <http://knuckles.team/kg/database> a owl:Ontology ;
68
+ <https://knuckles-team.github.io/ontology/connector/database> a owl:Ontology ;
68
69
  rdfs:label "Relational Database Schema Ontology" ;
69
70
  rdfs:comment """Ontology for modeling relational database schemas, tables, columns,
70
71
  and keys. This maps database artifacts to logical Data Objects at the
@@ -75,27 +76,27 @@ planners to dynamically reason about data layouts.""" .
75
76
  :DatabaseSchema a owl:Class ;
76
77
  rdfs:label "Database Schema" ;
77
78
  rdfs:comment "A logical grouping of database tables and relations." ;
78
- rdfs:subClassOf :TechnologyLayer .
79
+ rdfs:subClassOf core:TechnologyLayer .
79
80
 
80
81
  :DatabaseView a owl:Class ;
81
82
  rdfs:label "Database View" ;
82
83
  rdfs:comment "A SQL view (a named query over one or more tables). Extracted from CREATE VIEW DDL (CONCEPT:EG-KG.query.create-drop-view); its source tables are linked by :references." ;
83
- rdfs:subClassOf :ApplicationLayer .
84
+ rdfs:subClassOf core:ApplicationLayer .
84
85
 
85
86
  :DatabaseTable a owl:Class ;
86
87
  rdfs:label "Database Table" ;
87
88
  rdfs:comment "A database table representing a logical data object." ;
88
- rdfs:subClassOf :ApplicationLayer .
89
+ rdfs:subClassOf core:ApplicationLayer .
89
90
 
90
91
  :DatabaseColumn a owl:Class ;
91
92
  rdfs:label "Database Column" ;
92
93
  rdfs:comment "An individual column within a database table." ;
93
- rdfs:subClassOf :ApplicationLayer .
94
+ rdfs:subClassOf core:ApplicationLayer .
94
95
 
95
96
  :DatabaseIndex a owl:Class ;
96
97
  rdfs:label "Database Index" ;
97
98
  rdfs:comment "A named index over one or more columns of a table (unique or non-unique), reflected from the live schema (CONCEPT:AU-KG.ingest.enterprise-source-extractor)." ;
98
- rdfs:subClassOf :ApplicationLayer .
99
+ rdfs:subClassOf core:ApplicationLayer .
99
100
 
100
101
  :hasIndex a owl:ObjectProperty ;
101
102
  rdfs:label "has index" ;
@@ -1,5 +1,5 @@
1
- @prefix : <http://knuckles.team/kg#> .
2
- @prefix shape: <http://knuckles.team/kg/database/shape#> .
1
+ @prefix : <https://knuckles-team.github.io/ontology/core#> .
2
+ @prefix shape: <https://knuckles-team.github.io/ontology/connector/database-shapes#> .
3
3
  @prefix sh: <http://www.w3.org/ns/shacl#> .
4
4
  @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
5
5
 
@@ -21,7 +21,7 @@ Push the **reflected schema** of any configured connection into the ONE
21
21
  medulla knowledge graph as **typed OWL nodes**, via the **sql-mcp** MCP
22
22
  server. The connector walks tables, columns, foreign keys, indexes, and views
23
23
  and maps them to the classes federated by `sql_mcp.ontology`
24
- (`http://knuckles.team/kg/database`).
24
+ (`https://knuckles-team.github.io/ontology/connector/database`).
25
25
 
26
26
  ## When to use
27
27
  - Make a database's structure discoverable/queryable inside the KG.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sql-mcp
3
- Version: 2.3.9
3
+ Version: 2.4.0
4
4
  Summary: Generic SQL database (Postgres, MySQL/MariaDB, MSSQL, Oracle, SQLite) API + MCP Server for Agentic AI!
5
5
  Author-email: Repository Maintainers <maintainers@knuckles.team>
6
6
  License: MIT
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3
12
12
  Requires-Python: <3.15,>=3.12
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
- Requires-Dist: scion-sdk[mcp]<1.0.0,>=0.9.0
15
+ Requires-Dist: scion-sdk[mcp]<0.12,>=0.11.0
16
16
  Requires-Dist: python-dotenv>=1.2.4
17
17
  Requires-Dist: sqlalchemy>=2.1.5
18
18
  Provides-Extra: postgres
@@ -55,5 +55,6 @@ tests/test_kg_ingest.py
55
55
  tests/test_kg_pgwire.py
56
56
  tests/test_package_getattr.py
57
57
  tests/test_safety.py
58
+ tests/test_scion_sdk_0_10_imports.py
58
59
  tests/test_sql_mcp_validation.py
59
60
  tests/test_startup.py
@@ -1,4 +1,4 @@
1
- scion-sdk[mcp]<1.0.0,>=0.9.0
1
+ scion-sdk[mcp]<0.12,>=0.11.0
2
2
  python-dotenv>=1.2.4
3
3
  sqlalchemy>=2.1.5
4
4
 
@@ -1,4 +1,4 @@
1
- """Epistemic-graph typed-node ingestion -- Wire-First coverage for sql-mcp.
1
+ """Medulla typed-node ingestion -- Wire-First coverage for sql-mcp.
2
2
 
3
3
  Exercises the real ``ingest_entities`` seam against a fake
4
4
  ``scion_sdk.ingest`` transport (no engine required), plus the pure
@@ -0,0 +1,59 @@
1
+ """Every scion_sdk import in this repository resolves on the pinned SDK release."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import ast
6
+ import importlib
7
+ import importlib.util
8
+ from pathlib import Path
9
+
10
+ ROOT = Path(__file__).resolve().parent.parent
11
+ SKIP = {".git", ".venv", "venv", "node_modules", "build", "dist", ".tox", "__pycache__"}
12
+
13
+
14
+ def _python_files() -> list[Path]:
15
+ return [
16
+ p
17
+ for p in ROOT.rglob("*.py")
18
+ if not (set(p.relative_to(ROOT).parts) & SKIP)
19
+ and not any(part.startswith(".") for part in p.relative_to(ROOT).parts)
20
+ ]
21
+
22
+
23
+ def _is_sdk(name: str | None) -> bool:
24
+ return bool(name) and (name == "scion_sdk" or name.startswith("scion_sdk."))
25
+
26
+
27
+ def test_every_scion_sdk_import_resolves_on_the_pinned_release() -> None:
28
+ missing: list[str] = []
29
+ for path in _python_files():
30
+ tree = ast.parse(path.read_text(encoding="utf-8"))
31
+ rel = path.relative_to(ROOT)
32
+ for node in ast.walk(tree):
33
+ if isinstance(node, ast.Import):
34
+ for alias in node.names:
35
+ if (
36
+ _is_sdk(alias.name)
37
+ and importlib.util.find_spec(alias.name) is None
38
+ ):
39
+ missing.append(f"{rel}:{node.lineno} {alias.name}")
40
+ elif (
41
+ isinstance(node, ast.ImportFrom)
42
+ and node.level == 0
43
+ and _is_sdk(node.module)
44
+ ):
45
+ if importlib.util.find_spec(node.module) is None:
46
+ missing.append(f"{rel}:{node.lineno} {node.module}")
47
+ continue
48
+ module = importlib.import_module(node.module)
49
+ for alias in node.names:
50
+ if alias.name == "*" or hasattr(module, alias.name):
51
+ continue
52
+ if importlib.util.find_spec(f"{node.module}.{alias.name}") is None:
53
+ missing.append(
54
+ f"{rel}:{node.lineno} {node.module}.{alias.name}"
55
+ )
56
+ assert not missing, (
57
+ "scion_sdk names that do not exist on the pinned release:\n"
58
+ + "\n".join(missing)
59
+ )
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes