sql-mcp 2.3.5__tar.gz → 2.3.6__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.5/sql_mcp.egg-info → sql_mcp-2.3.6}/PKG-INFO +1 -1
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/pyproject.toml +1 -1
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/ontology/certification.json +1 -1
- sql_mcp-2.3.6/sql_mcp/skills/sql-mcp-development/SKILL.md +116 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6/sql_mcp.egg-info}/PKG-INFO +1 -1
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp.egg-info/SOURCES.txt +1 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/LICENSE +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/README.md +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/setup.cfg +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/__init__.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/__main__.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/api/__init__.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/api/api_client_sql.py +1 -1
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/api_client.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/auth.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/connector_sources.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/dialects.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/kg_ingest.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/kg_pgwire.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/mcp/__init__.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/mcp/mcp_sql.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/mcp_config.json +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/mcp_server.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/ontology/__init__.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/ontology/database.ttl +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/ontology/fixtures/records.json +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/ontology/mappings/source.yaml +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/ontology/migrations/manifest.json +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/ontology/shapes/connector.shacl.ttl +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/prompts/database_specialist.json +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/safety.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/skills/sql-mcp-knowledge-graph-ingestion/SKILL.md +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/skills/sql-mcp-knowledge-graph-ingestion/WORKFLOW.md +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/skills/sql-mcp-operations/SKILL.md +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/skills/sql-mcp-operations/agents/openai.yaml +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/skills/sql-mcp-operations/references/catalog.md +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/skills/sql-mcp-query-execution/SKILL.md +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/skills/sql-mcp-query-execution/WORKFLOW.md +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/skills/sql-mcp-schema-inspection/SKILL.md +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/skills/sql-mcp-schema-inspection/WORKFLOW.md +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/sql_input_models.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp/sql_response_models.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp.egg-info/dependency_links.txt +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp.egg-info/entry_points.txt +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp.egg-info/requires.txt +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/sql_mcp.egg-info/top_level.txt +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/tests/test_api_wrapper.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/tests/test_auth.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/tests/test_dialect_paths.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/tests/test_dialects.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/tests/test_identity_context_scoping.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/tests/test_init_dynamics.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/tests/test_kg_ingest.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/tests/test_kg_pgwire.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/tests/test_package_getattr.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/tests/test_safety.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/tests/test_sql_mcp_validation.py +0 -0
- {sql_mcp-2.3.5 → sql_mcp-2.3.6}/tests/test_startup.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "sql-mcp"
|
|
7
|
-
version = "2.3.
|
|
7
|
+
version = "2.3.6"
|
|
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",]
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sql-mcp-development
|
|
3
|
+
skill_type: skill
|
|
4
|
+
description: >-
|
|
5
|
+
Develop, test, and release the sql-mcp connector while preserving its
|
|
6
|
+
SQLAlchemy Core, MCP action, safety, packaged-content, and spec-delivery
|
|
7
|
+
contracts. Use when changing SQL access, dialect support, connector content,
|
|
8
|
+
documentation, workflows, or repository-owned specifications.
|
|
9
|
+
license: MIT
|
|
10
|
+
tags: [sql, database, connector, development, testing, pages, specs]
|
|
11
|
+
metadata:
|
|
12
|
+
author: Genius
|
|
13
|
+
version: '0.1.0'
|
|
14
|
+
---
|
|
15
|
+
# SQL MCP Development
|
|
16
|
+
|
|
17
|
+
Use this skill for changes inside the `sql-mcp` package. The connector owns the
|
|
18
|
+
SQLAlchemy Core facade, named-connection configuration, dialect registry,
|
|
19
|
+
read-only safety gate, bounded result envelopes, knowledge-graph ingestion, and
|
|
20
|
+
the action-routed MCP tools. Shared transports and connector contracts belong
|
|
21
|
+
to `agent-connector-sdk`; admission, serving, and durable graph state belong to
|
|
22
|
+
their owning repositories.
|
|
23
|
+
|
|
24
|
+
## Repository map
|
|
25
|
+
|
|
26
|
+
- `sql_mcp/api_client.py` is the SQLAlchemy Core facade and connection lifecycle.
|
|
27
|
+
- `sql_mcp/mcp_server.py` exposes the four action-routed MCP tool surfaces.
|
|
28
|
+
- `sql_mcp/dialects.py` owns dialect registration and driver guidance.
|
|
29
|
+
- `sql_mcp/safety.py` owns read-only classification and write-policy checks.
|
|
30
|
+
- `sql_mcp/auth.py` owns named connections, environment parsing, and redaction.
|
|
31
|
+
- `sql_mcp/skills/`, prompts, ontology, and connector resources are packaged
|
|
32
|
+
content exposed through the connector entry point.
|
|
33
|
+
- `specs/` contains repository-owned source specifications and generated status
|
|
34
|
+
evidence; `docs/` is the MkDocs source published by the shared Pages workflow.
|
|
35
|
+
|
|
36
|
+
## Rapid delivery: the 5-minute contract
|
|
37
|
+
|
|
38
|
+
Specs are already designed. Deliver one small, reviewable slice at a time.
|
|
39
|
+
|
|
40
|
+
- Find the owning row with `git grep -n "<term>" -- specs` before adding
|
|
41
|
+
behavior. Extend an existing spec before writing a new requirement.
|
|
42
|
+
- Trace a changed action from its typed input through the MCP router, the
|
|
43
|
+
SQLAlchemy Core facade, safety policy, and bounded response envelope. Reuse
|
|
44
|
+
those seams instead of duplicating a connector path.
|
|
45
|
+
- Keep a change inside this connector. SDK transports, Arbora admission, MCP
|
|
46
|
+
multiplexing, and graph persistence belong in their owning repositories.
|
|
47
|
+
- Bind every user value through SQLAlchemy `text()` parameters. Never assemble
|
|
48
|
+
user SQL with f-strings, `%`, or string concatenation, and route identifiers
|
|
49
|
+
through SQLAlchemy reflection or expression objects.
|
|
50
|
+
- Preserve the read-only statement gate for `sql_query`; `sql_execute` writes
|
|
51
|
+
remain server-policy controlled by `SQL_ALLOW_WRITES` and never gain a
|
|
52
|
+
per-call override. Keep row caps and statement timeouts on every result path.
|
|
53
|
+
- Keep credentials, DSNs, database contents, and live provider calls out of
|
|
54
|
+
tests and logs. Use the existing in-memory SQLite and mock seams; redact
|
|
55
|
+
passwords with `hide_password=True` before rendering any URL.
|
|
56
|
+
- Every behavior change needs a focused test. Generated `specs/*/status.json`
|
|
57
|
+
files come from `pipelines-hook spec-status`; never hand-edit delivery state.
|
|
58
|
+
- Use one logical change per commit with `Spec: <ID>` or an explicit
|
|
59
|
+
`Spec: none (<reason>)` trailer and the assisting-agent trailer. Stage only
|
|
60
|
+
reviewed paths.
|
|
61
|
+
|
|
62
|
+
## Setup and gates
|
|
63
|
+
|
|
64
|
+
Use the locked project environment and do not install database drivers or create
|
|
65
|
+
live connections for a local check:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
uv sync --locked
|
|
69
|
+
uvx pre-commit install --hook-type pre-commit --hook-type pre-push
|
|
70
|
+
uvx pre-commit run --all-files
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
For focused feedback, run the smallest relevant existing tests:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
uv run --locked pytest tests/test_safety.py tests/test_api_wrapper.py -q
|
|
77
|
+
uv run --locked pytest tests/test_startup.py tests/test_package_getattr.py -q
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
The canonical pre-commit configuration delegates connector-standard, secrets,
|
|
81
|
+
spec-status, spec-decomposition, spec-trailers, tests-fast, and dependency
|
|
82
|
+
readiness checks to `Knuckles-Team/pipelines` at `rev: main`. Keep those shared
|
|
83
|
+
hooks; do not copy their implementation into this repository or bypass a
|
|
84
|
+
failure.
|
|
85
|
+
|
|
86
|
+
## Spec delivery and Pages
|
|
87
|
+
|
|
88
|
+
`.github/workflows/pages.yml` calls
|
|
89
|
+
`Knuckles-Team/pipelines/.github/workflows/pages_pipeline.yml@main` with
|
|
90
|
+
`content_source: docs`, `spec_dashboard_enabled: true`, and
|
|
91
|
+
`.github/spec-dashboard.json`. The dashboard config is version 1 and reads only
|
|
92
|
+
`specs/*/status.json`. Keep the push paths for docs, specs, the dashboard
|
|
93
|
+
config, and the caller workflow so a source change publishes the page.
|
|
94
|
+
|
|
95
|
+
Do not claim a spec row from a YAML marker alone. Proof requires the generated
|
|
96
|
+
status records, a successful exact-source Pages run, and the public
|
|
97
|
+
`/spec-delivery/` page and snapshot serving the candidate revision. Inspect the
|
|
98
|
+
complete diff and live evidence before reporting delivery.
|
|
99
|
+
|
|
100
|
+
## Packaging and release
|
|
101
|
+
|
|
102
|
+
Skills and other connector resources are included by the existing
|
|
103
|
+
`sql_mcp` package-data globs. When a packaged skill or resource changes, bump
|
|
104
|
+
the project patch version using the repository's version tool and refresh
|
|
105
|
+
`uv.lock` in the same release slice. Confirm the wheel/sdist contains the new
|
|
106
|
+
path before publication. Publish the package first; let the central container
|
|
107
|
+
workflow consume that exact public version, and report a central workflow
|
|
108
|
+
failure with its exact run rather than adding a fake extra or bypassing a gate.
|
|
109
|
+
|
|
110
|
+
## Safety
|
|
111
|
+
|
|
112
|
+
Never commit `.env` files, credentials, raw DSNs, database dumps, live query
|
|
113
|
+
results, generated sites, caches, or temporary output. Work in a real Git
|
|
114
|
+
worktree based on current `origin/main`, inspect `git status --short` and the
|
|
115
|
+
complete candidate diff, and do not use `git stash`, `git add -A`, or
|
|
116
|
+
`git add .`.
|
|
@@ -32,6 +32,7 @@ sql_mcp/ontology/mappings/source.yaml
|
|
|
32
32
|
sql_mcp/ontology/migrations/manifest.json
|
|
33
33
|
sql_mcp/ontology/shapes/connector.shacl.ttl
|
|
34
34
|
sql_mcp/prompts/database_specialist.json
|
|
35
|
+
sql_mcp/skills/sql-mcp-development/SKILL.md
|
|
35
36
|
sql_mcp/skills/sql-mcp-knowledge-graph-ingestion/SKILL.md
|
|
36
37
|
sql_mcp/skills/sql-mcp-knowledge-graph-ingestion/WORKFLOW.md
|
|
37
38
|
sql_mcp/skills/sql-mcp-operations/SKILL.md
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -325,8 +325,8 @@ class SqlApi:
|
|
|
325
325
|
list if agent-connector-sdk predates the resolver.
|
|
326
326
|
"""
|
|
327
327
|
try:
|
|
328
|
-
from agent_connector_sdk.identity import IdentityRequiredError
|
|
329
328
|
from agent_connector_sdk.entitlements import identity_scoped_resources
|
|
329
|
+
from agent_connector_sdk.identity import IdentityRequiredError
|
|
330
330
|
except Exception:
|
|
331
331
|
return list(names)
|
|
332
332
|
try:
|
|
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.5 → sql_mcp-2.3.6}/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
|
|
File without changes
|
|
File without changes
|