sql-mcp 2.3.2__tar.gz → 2.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.
- {sql_mcp-2.3.2/sql_mcp.egg-info → sql_mcp-2.3.4}/PKG-INFO +3 -3
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/pyproject.toml +6 -5
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/requirements.txt +1 -1
- sql_mcp-2.3.4/sql_mcp/connector_sources.py +121 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/mcp_server.py +1 -1
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/ontology/certification.json +0 -3
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/ontology/database.ttl +2 -2
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/prompts/database_specialist.json +0 -2
- {sql_mcp-2.3.2 → sql_mcp-2.3.4/sql_mcp.egg-info}/PKG-INFO +3 -3
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp.egg-info/SOURCES.txt +2 -2
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp.egg-info/entry_points.txt +3 -3
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp.egg-info/requires.txt +2 -2
- sql_mcp-2.3.4/tests/test_default_content_surfaces.py +43 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/tests/test_kg_ingest.py +1 -1
- sql_mcp-2.3.2/sql_mcp/connectors/mcp_source_presets.json +0 -3
- sql_mcp-2.3.2/sql_mcp/connectors/tool_schema_fingerprints.json +0 -6
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/LICENSE +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/MANIFEST.in +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/README.md +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/setup.cfg +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/__init__.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/__main__.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/api/__init__.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/api/api_client_sql.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/api_client.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/auth.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/connectors/__init__.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/dialects.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/kg_ingest.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/kg_pgwire.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/mcp/__init__.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/mcp/mcp_sql.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/mcp_config.json +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/ontology/__init__.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/ontology/fixtures/records.json +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/ontology/mappings/source.yaml +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/ontology/migrations/manifest.json +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/ontology/shapes/connector.shacl.ttl +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/prompts/__init__.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/safety.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/skills/__init__.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/skills/sql-mcp-knowledge-graph-ingestion/SKILL.md +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/skills/sql-mcp-knowledge-graph-ingestion/WORKFLOW.md +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/skills/sql-mcp-operations/SKILL.md +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/skills/sql-mcp-operations/agents/openai.yaml +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/skills/sql-mcp-operations/references/catalog.md +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/skills/sql-mcp-query-execution/SKILL.md +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/skills/sql-mcp-query-execution/WORKFLOW.md +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/skills/sql-mcp-schema-inspection/SKILL.md +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/skills/sql-mcp-schema-inspection/WORKFLOW.md +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/sql_input_models.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/sql_response_models.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp.egg-info/dependency_links.txt +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp.egg-info/top_level.txt +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/tests/test_api_wrapper.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/tests/test_auth.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/tests/test_dialect_paths.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/tests/test_dialects.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/tests/test_identity_context_scoping.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/tests/test_init_dynamics.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/tests/test_kg_pgwire.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/tests/test_package_getattr.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/tests/test_safety.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/tests/test_sql_mcp_validation.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/tests/test_startup.py +0 -0
- {sql_mcp-2.3.2 → sql_mcp-2.3.4}/tests/test_verify_api_integration.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sql-mcp
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.4
|
|
4
4
|
Summary: Generic SQL database (Postgres, MySQL/MariaDB, MSSQL, Oracle, SQLite) API + MCP Server for Agentic AI!
|
|
5
5
|
Author-email: Project Maintainers <maintainers@users.noreply.github.com>
|
|
6
6
|
License: MIT
|
|
@@ -12,11 +12,11 @@ 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: 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: python-dotenv>=1.2.4
|
|
17
17
|
Requires-Dist: sqlalchemy>=2.1.5
|
|
18
18
|
Provides-Extra: mcp
|
|
19
|
-
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.
|
|
19
|
+
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "mcp"
|
|
20
20
|
Provides-Extra: postgres
|
|
21
21
|
Requires-Dist: psycopg[binary]>=3.3.6; extra == "postgres"
|
|
22
22
|
Provides-Extra: mysql
|
|
@@ -4,12 +4,12 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "sql-mcp"
|
|
7
|
-
version = "2.3.
|
|
7
|
+
version = "2.3.4"
|
|
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 = [ "agent-connector-sdk[mcp]>=0.
|
|
12
|
+
dependencies = [ "agent-connector-sdk[mcp]>=0.4.1,<1.0.0", "python-dotenv>=1.2.4", "sqlalchemy>=2.1.5",]
|
|
13
13
|
[[project.authors]]
|
|
14
14
|
name = "Project Maintainers"
|
|
15
15
|
email = "maintainers@users.noreply.github.com"
|
|
@@ -18,7 +18,7 @@ email = "maintainers@users.noreply.github.com"
|
|
|
18
18
|
text = "MIT"
|
|
19
19
|
|
|
20
20
|
[project.optional-dependencies]
|
|
21
|
-
mcp = [ "agent-connector-sdk[mcp]>=0.
|
|
21
|
+
mcp = [ "agent-connector-sdk[mcp]>=0.4.1,<1.0.0",]
|
|
22
22
|
postgres = [ "psycopg[binary]>=3.3.6",]
|
|
23
23
|
mysql = [ "pymysql>=1.2.3",]
|
|
24
24
|
mssql = [ "pyodbc>=5.3.0",]
|
|
@@ -38,8 +38,9 @@ sql-mcp = "sql_mcp.prompts"
|
|
|
38
38
|
[project.entry-points."agent_connector_sdk.ontology_providers"]
|
|
39
39
|
sql-mcp = "sql_mcp.ontology"
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
# The one declared connector identity: the fleet name (SDK-CONNECTOR-CONTROL-R071).
|
|
42
|
+
[project.entry-points."agent_connector_sdk.connector"]
|
|
43
|
+
sql-mcp = "sql_mcp"
|
|
43
44
|
|
|
44
45
|
[tool.uv.workspace]
|
|
45
46
|
members = ["."]
|
|
@@ -0,0 +1,121 @@
|
|
|
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 typing import Any
|
|
10
|
+
|
|
11
|
+
from agent_connector_sdk.ingest.sources import IngestSourceDeclaration, IngestSourceSpec
|
|
12
|
+
|
|
13
|
+
CONNECTOR: str = "sql-mcp"
|
|
14
|
+
|
|
15
|
+
SOURCES: tuple[Any, ...] = ()
|
|
16
|
+
|
|
17
|
+
SCHEMA_MAPPINGS: dict[str, Any] = {
|
|
18
|
+
"DatabaseColumn": {
|
|
19
|
+
"fields": {
|
|
20
|
+
"dataType": "xsd:string",
|
|
21
|
+
"isForeignKey": "xsd:boolean",
|
|
22
|
+
"isNullable": "xsd:boolean",
|
|
23
|
+
"isPrimaryKey": "xsd:boolean",
|
|
24
|
+
"isUnique": "xsd:boolean",
|
|
25
|
+
"sqlDialect": "xsd:string",
|
|
26
|
+
},
|
|
27
|
+
"ontology_class": "ApplicationLayer",
|
|
28
|
+
},
|
|
29
|
+
"DatabaseIndex": {
|
|
30
|
+
"fields": {
|
|
31
|
+
"dataType": "xsd:string",
|
|
32
|
+
"isForeignKey": "xsd:boolean",
|
|
33
|
+
"isNullable": "xsd:boolean",
|
|
34
|
+
"isPrimaryKey": "xsd:boolean",
|
|
35
|
+
"isUnique": "xsd:boolean",
|
|
36
|
+
"sqlDialect": "xsd:string",
|
|
37
|
+
},
|
|
38
|
+
"ontology_class": "ApplicationLayer",
|
|
39
|
+
},
|
|
40
|
+
"DatabaseSchema": {
|
|
41
|
+
"fields": {
|
|
42
|
+
"dataType": "xsd:string",
|
|
43
|
+
"isForeignKey": "xsd:boolean",
|
|
44
|
+
"isNullable": "xsd:boolean",
|
|
45
|
+
"isPrimaryKey": "xsd:boolean",
|
|
46
|
+
"isUnique": "xsd:boolean",
|
|
47
|
+
"sqlDialect": "xsd:string",
|
|
48
|
+
},
|
|
49
|
+
"ontology_class": "TechnologyLayer",
|
|
50
|
+
},
|
|
51
|
+
"DatabaseTable": {
|
|
52
|
+
"fields": {
|
|
53
|
+
"dataType": "xsd:string",
|
|
54
|
+
"isForeignKey": "xsd:boolean",
|
|
55
|
+
"isNullable": "xsd:boolean",
|
|
56
|
+
"isPrimaryKey": "xsd:boolean",
|
|
57
|
+
"isUnique": "xsd:boolean",
|
|
58
|
+
"sqlDialect": "xsd:string",
|
|
59
|
+
},
|
|
60
|
+
"ontology_class": "ApplicationLayer",
|
|
61
|
+
},
|
|
62
|
+
"DatabaseView": {
|
|
63
|
+
"fields": {
|
|
64
|
+
"dataType": "xsd:string",
|
|
65
|
+
"isForeignKey": "xsd:boolean",
|
|
66
|
+
"isNullable": "xsd:boolean",
|
|
67
|
+
"isPrimaryKey": "xsd:boolean",
|
|
68
|
+
"isUnique": "xsd:boolean",
|
|
69
|
+
"sqlDialect": "xsd:string",
|
|
70
|
+
},
|
|
71
|
+
"ontology_class": "ApplicationLayer",
|
|
72
|
+
},
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
RESOURCES: tuple[dict[str, str], ...] = (
|
|
76
|
+
{
|
|
77
|
+
"id_prefix": "databasecolumn",
|
|
78
|
+
"label": "Database Column",
|
|
79
|
+
"name": "DatabaseColumn",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id_prefix": "databaseindex",
|
|
83
|
+
"label": "Database Index",
|
|
84
|
+
"name": "DatabaseIndex",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id_prefix": "databaseschema",
|
|
88
|
+
"label": "Database Schema",
|
|
89
|
+
"name": "DatabaseSchema",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"id_prefix": "databasetable",
|
|
93
|
+
"label": "Database Table",
|
|
94
|
+
"name": "DatabaseTable",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"id_prefix": "databaseview",
|
|
98
|
+
"label": "Database View",
|
|
99
|
+
"name": "DatabaseView",
|
|
100
|
+
},
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def declaration() -> IngestSourceDeclaration:
|
|
105
|
+
"""The declaration the server assembles from this module."""
|
|
106
|
+
specs: list[IngestSourceSpec] = []
|
|
107
|
+
for item in SOURCES:
|
|
108
|
+
for entry in item["connector_sources"]:
|
|
109
|
+
body: dict[str, Any] = {
|
|
110
|
+
k: v for k, v in entry.items() if k not in ("tool", "mapping")
|
|
111
|
+
}
|
|
112
|
+
spec = {**body, "tools": (entry["tool"],)}
|
|
113
|
+
specs.append(IngestSourceSpec.model_validate(spec))
|
|
114
|
+
return IngestSourceDeclaration.model_validate(
|
|
115
|
+
{
|
|
116
|
+
"connector": CONNECTOR,
|
|
117
|
+
"sources": specs,
|
|
118
|
+
"schema_mappings": SCHEMA_MAPPINGS,
|
|
119
|
+
"resources": RESOURCES,
|
|
120
|
+
}
|
|
121
|
+
)
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"api_version": "arbora.io/v1",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"connector_manifest.yml": "3f57351af0d7b55b2eb2e0cefdff0235b928cd8f9efe81f130c688424280a587",
|
|
5
|
-
"sql_mcp/connectors/mcp_source_presets.json": "ed6bbb14d4a0e706bbe2caa1a714f06093273cc288d49aa43ff887dd5e129c46",
|
|
6
|
-
"sql_mcp/connectors/tool_schema_fingerprints.json": "349901c65b6f1fd273ebdca0df935fab3308c612e7e7d334e836b5eded7fa3e5",
|
|
7
4
|
"sql_mcp/ontology/database.ttl": "1486055962ef7a286c349f6d3974bbe5d8176e88b627fb59c201b79a78153c64",
|
|
8
5
|
"sql_mcp/ontology/fixtures/records.json": "2a06e3f58c45c99a612d756419b9029fc7d14f5acaa1db77f964e32cc58c28d1",
|
|
9
6
|
"sql_mcp/ontology/mappings/source.yaml": "15faf4992ea561ea2ffa48bdd39ccb78823b11b31f32aeda2030479e700a521e",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
rdfs:comment """Ontology for modeling relational database schemas, tables, columns,
|
|
70
70
|
and keys. This maps database artifacts to logical Data Objects at the
|
|
71
71
|
ArchiMate Application/Technology layer, allowing code generators and
|
|
72
|
-
planners to dynamically reason about data layouts."""
|
|
73
|
-
|
|
72
|
+
planners to dynamically reason about data layouts.""" .
|
|
73
|
+
|
|
74
74
|
|
|
75
75
|
:DatabaseSchema a owl:Class ;
|
|
76
76
|
rdfs:label "Database Schema" ;
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
"schema_version": "1.0",
|
|
5
5
|
"prompt_version": "0.1.0",
|
|
6
6
|
"source": "sql-mcp",
|
|
7
|
-
"extends": "agent-connector-sdk:base",
|
|
8
|
-
"compose": "append",
|
|
9
7
|
"description": "Relational database specialist: safe parameterized querying, schema reflection, and knowledge-graph ingestion over the sql-mcp MCP server.",
|
|
10
8
|
"metadata": {
|
|
11
9
|
"topic": "Relational Databases",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sql-mcp
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.4
|
|
4
4
|
Summary: Generic SQL database (Postgres, MySQL/MariaDB, MSSQL, Oracle, SQLite) API + MCP Server for Agentic AI!
|
|
5
5
|
Author-email: Project Maintainers <maintainers@users.noreply.github.com>
|
|
6
6
|
License: MIT
|
|
@@ -12,11 +12,11 @@ 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: 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: python-dotenv>=1.2.4
|
|
17
17
|
Requires-Dist: sqlalchemy>=2.1.5
|
|
18
18
|
Provides-Extra: mcp
|
|
19
|
-
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.
|
|
19
|
+
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "mcp"
|
|
20
20
|
Provides-Extra: postgres
|
|
21
21
|
Requires-Dist: psycopg[binary]>=3.3.6; extra == "postgres"
|
|
22
22
|
Provides-Extra: mysql
|
|
@@ -7,6 +7,7 @@ sql_mcp/__init__.py
|
|
|
7
7
|
sql_mcp/__main__.py
|
|
8
8
|
sql_mcp/api_client.py
|
|
9
9
|
sql_mcp/auth.py
|
|
10
|
+
sql_mcp/connector_sources.py
|
|
10
11
|
sql_mcp/dialects.py
|
|
11
12
|
sql_mcp/kg_ingest.py
|
|
12
13
|
sql_mcp/kg_pgwire.py
|
|
@@ -24,8 +25,6 @@ sql_mcp.egg-info/top_level.txt
|
|
|
24
25
|
sql_mcp/api/__init__.py
|
|
25
26
|
sql_mcp/api/api_client_sql.py
|
|
26
27
|
sql_mcp/connectors/__init__.py
|
|
27
|
-
sql_mcp/connectors/mcp_source_presets.json
|
|
28
|
-
sql_mcp/connectors/tool_schema_fingerprints.json
|
|
29
28
|
sql_mcp/mcp/__init__.py
|
|
30
29
|
sql_mcp/mcp/mcp_sql.py
|
|
31
30
|
sql_mcp/ontology/__init__.py
|
|
@@ -49,6 +48,7 @@ sql_mcp/skills/sql-mcp-schema-inspection/SKILL.md
|
|
|
49
48
|
sql_mcp/skills/sql-mcp-schema-inspection/WORKFLOW.md
|
|
50
49
|
tests/test_api_wrapper.py
|
|
51
50
|
tests/test_auth.py
|
|
51
|
+
tests/test_default_content_surfaces.py
|
|
52
52
|
tests/test_dialect_paths.py
|
|
53
53
|
tests/test_dialects.py
|
|
54
54
|
tests/test_identity_context_scoping.py
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
[agent_connector_sdk.connector]
|
|
2
|
+
sql-mcp = sql_mcp
|
|
3
|
+
|
|
1
4
|
[agent_connector_sdk.ontology_providers]
|
|
2
5
|
sql-mcp = sql_mcp.ontology
|
|
3
6
|
|
|
@@ -7,8 +10,5 @@ sql-mcp = sql_mcp.prompts
|
|
|
7
10
|
[agent_connector_sdk.skill_providers]
|
|
8
11
|
sql-mcp = sql_mcp.skills
|
|
9
12
|
|
|
10
|
-
[agent_connector_sdk.source_connector_providers]
|
|
11
|
-
sql-mcp = sql_mcp.connectors
|
|
12
|
-
|
|
13
13
|
[console_scripts]
|
|
14
14
|
sql-mcp = sql_mcp.mcp_server:mcp_server
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
agent-connector-sdk[mcp]<1.0.0,>=0.
|
|
1
|
+
agent-connector-sdk[mcp]<1.0.0,>=0.4.1
|
|
2
2
|
python-dotenv>=1.2.4
|
|
3
3
|
sqlalchemy>=2.1.5
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ sqlalchemy>=2.1.5
|
|
|
6
6
|
sql-mcp[mcp,mssql,mysql,oracle,postgres]>=1.0.0
|
|
7
7
|
|
|
8
8
|
[mcp]
|
|
9
|
-
agent-connector-sdk[mcp]<1.0.0,>=0.
|
|
9
|
+
agent-connector-sdk[mcp]<1.0.0,>=0.4.1
|
|
10
10
|
|
|
11
11
|
[mssql]
|
|
12
12
|
pyodbc>=5.3.0
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""CONN-SQL-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 = "sql_mcp"
|
|
13
|
+
ROOT = Path(list(importlib.import_module(PACKAGE).__path__)[0])
|
|
14
|
+
|
|
15
|
+
pytestmark = pytest.mark.spec("CONN-SQL-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('sql-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://sql-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
|
|
@@ -100,7 +100,7 @@ async def test_ingest_entities_writes_nodes_and_edges(ingest):
|
|
|
100
100
|
a_record = next(r for r in request.records if r.record_id == "a")
|
|
101
101
|
assert a_record.payload["name"] == "t"
|
|
102
102
|
assert request.relationships[0].relation_reference.endswith(
|
|
103
|
-
"
|
|
103
|
+
"relations/DatabaseTable/hasColumn"
|
|
104
104
|
)
|
|
105
105
|
|
|
106
106
|
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_comment": "Tier-1 mcp_tool source presets for sql-mcp (AU-KG.ingest.mcp-tool-connector). Declarative doc-sync leg that syncs a connection's tables into the KG as lightweight 'database_table' documents via the sql-mcp MCP server. The primary, richer path is the native typed-node tool 'sql_ingest_schema' (see sql_mcp.kg_ingest), which emits :DatabaseTable/:DatabaseColumn/:DatabaseView/:DatabaseIndex nodes with structural links; this preset is the zero-code declarative complement. Contributed presets win over the central MCP_TOOL_PRESETS. The declarative sql-tables sweep is retired: a table sweep has no record identity and belongs to a data-platform source adapter; sql_ingest_schema is the supported path."
|
|
3
|
-
}
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sql_mcp-2.3.2 → sql_mcp-2.3.4}/sql_mcp/skills/sql-mcp-knowledge-graph-ingestion/WORKFLOW.md
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|