sql-mcp 1.0.1__tar.gz → 2.3.3__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 (86) hide show
  1. sql_mcp-1.0.1/README.md → sql_mcp-2.3.3/PKG-INFO +108 -105
  2. sql_mcp-1.0.1/PKG-INFO → sql_mcp-2.3.3/README.md +72 -143
  3. sql_mcp-2.3.3/pyproject.toml +87 -0
  4. {sql_mcp-1.0.1 → sql_mcp-2.3.3}/requirements.txt +1 -1
  5. {sql_mcp-1.0.1 → sql_mcp-2.3.3}/sql_mcp/__init__.py +23 -16
  6. sql_mcp-2.3.3/sql_mcp/__main__.py +4 -0
  7. sql_mcp-2.3.3/sql_mcp/api/api_client_sql.py +1680 -0
  8. sql_mcp-2.3.3/sql_mcp/auth.py +316 -0
  9. sql_mcp-2.3.3/sql_mcp/connectors/mcp_source_presets.json +3 -0
  10. sql_mcp-2.3.3/sql_mcp/connectors/tool_schema_fingerprints.json +6 -0
  11. {sql_mcp-1.0.1 → sql_mcp-2.3.3}/sql_mcp/dialects.py +13 -3
  12. sql_mcp-2.3.3/sql_mcp/kg_ingest.py +306 -0
  13. sql_mcp-2.3.3/sql_mcp/kg_pgwire.py +125 -0
  14. sql_mcp-2.3.3/sql_mcp/mcp/mcp_sql.py +625 -0
  15. {sql_mcp-1.0.1 → sql_mcp-2.3.3}/sql_mcp/mcp_config.json +1 -2
  16. {sql_mcp-1.0.1 → sql_mcp-2.3.3}/sql_mcp/mcp_server.py +11 -9
  17. sql_mcp-2.3.3/sql_mcp/ontology/__init__.py +8 -0
  18. sql_mcp-2.3.3/sql_mcp/ontology/certification.json +36 -0
  19. sql_mcp-2.3.3/sql_mcp/ontology/database.ttl +122 -0
  20. sql_mcp-2.3.3/sql_mcp/ontology/fixtures/records.json +17 -0
  21. sql_mcp-2.3.3/sql_mcp/ontology/mappings/source.yaml +20 -0
  22. sql_mcp-2.3.3/sql_mcp/ontology/migrations/manifest.json +6 -0
  23. sql_mcp-2.3.3/sql_mcp/ontology/shapes/connector.shacl.ttl +104 -0
  24. sql_mcp-2.3.3/sql_mcp/prompts/database_specialist.json +44 -0
  25. sql_mcp-2.3.3/sql_mcp/safety.py +372 -0
  26. sql_mcp-2.3.3/sql_mcp/skills/__init__.py +0 -0
  27. sql_mcp-2.3.3/sql_mcp/skills/sql-mcp-knowledge-graph-ingestion/SKILL.md +89 -0
  28. sql_mcp-2.3.3/sql_mcp/skills/sql-mcp-knowledge-graph-ingestion/WORKFLOW.md +78 -0
  29. sql_mcp-2.3.3/sql_mcp/skills/sql-mcp-operations/SKILL.md +33 -0
  30. sql_mcp-2.3.3/sql_mcp/skills/sql-mcp-operations/agents/openai.yaml +4 -0
  31. sql_mcp-2.3.3/sql_mcp/skills/sql-mcp-operations/references/catalog.md +7 -0
  32. sql_mcp-2.3.3/sql_mcp/skills/sql-mcp-query-execution/SKILL.md +93 -0
  33. sql_mcp-2.3.3/sql_mcp/skills/sql-mcp-query-execution/WORKFLOW.md +79 -0
  34. sql_mcp-2.3.3/sql_mcp/skills/sql-mcp-schema-inspection/SKILL.md +88 -0
  35. sql_mcp-2.3.3/sql_mcp/skills/sql-mcp-schema-inspection/WORKFLOW.md +75 -0
  36. sql_mcp-2.3.3/sql_mcp/sql_input_models.py +129 -0
  37. sql_mcp-2.3.3/sql_mcp/sql_response_models.py +49 -0
  38. {sql_mcp-1.0.1 → sql_mcp-2.3.3}/sql_mcp.egg-info/PKG-INFO +89 -124
  39. sql_mcp-2.3.3/sql_mcp.egg-info/SOURCES.txt +63 -0
  40. sql_mcp-2.3.3/sql_mcp.egg-info/entry_points.txt +17 -0
  41. sql_mcp-2.3.3/sql_mcp.egg-info/requires.txt +27 -0
  42. sql_mcp-2.3.3/tests/test_api_wrapper.py +746 -0
  43. sql_mcp-2.3.3/tests/test_auth.py +379 -0
  44. sql_mcp-2.3.3/tests/test_default_content_surfaces.py +43 -0
  45. {sql_mcp-1.0.1 → sql_mcp-2.3.3}/tests/test_dialect_paths.py +67 -1
  46. {sql_mcp-1.0.1 → sql_mcp-2.3.3}/tests/test_dialects.py +4 -3
  47. sql_mcp-2.3.3/tests/test_identity_context_scoping.py +84 -0
  48. sql_mcp-2.3.3/tests/test_kg_ingest.py +287 -0
  49. sql_mcp-2.3.3/tests/test_kg_pgwire.py +59 -0
  50. sql_mcp-2.3.3/tests/test_package_getattr.py +76 -0
  51. sql_mcp-2.3.3/tests/test_safety.py +207 -0
  52. sql_mcp-2.3.3/tests/test_sql_mcp_validation.py +406 -0
  53. sql_mcp-2.3.3/tests/test_startup.py +72 -0
  54. sql_mcp-2.3.3/tests/test_verify_api_integration.py +266 -0
  55. sql_mcp-1.0.1/pyproject.toml +0 -67
  56. sql_mcp-1.0.1/sql_mcp/__main__.py +0 -4
  57. sql_mcp-1.0.1/sql_mcp/agent_server.py +0 -71
  58. sql_mcp-1.0.1/sql_mcp/api/api_client_sql.py +0 -469
  59. sql_mcp-1.0.1/sql_mcp/auth.py +0 -142
  60. sql_mcp-1.0.1/sql_mcp/main_agent.json +0 -18
  61. sql_mcp-1.0.1/sql_mcp/mcp/mcp_sql.py +0 -224
  62. sql_mcp-1.0.1/sql_mcp/prompts/main_agent.json +0 -18
  63. sql_mcp-1.0.1/sql_mcp/safety.py +0 -173
  64. sql_mcp-1.0.1/sql_mcp/skills/sql-starter/SKILL.md +0 -19
  65. sql_mcp-1.0.1/sql_mcp/sql_input_models.py +0 -63
  66. sql_mcp-1.0.1/sql_mcp/sql_response_models.py +0 -51
  67. sql_mcp-1.0.1/sql_mcp.egg-info/SOURCES.txt +0 -40
  68. sql_mcp-1.0.1/sql_mcp.egg-info/entry_points.txt +0 -9
  69. sql_mcp-1.0.1/sql_mcp.egg-info/requires.txt +0 -30
  70. sql_mcp-1.0.1/tests/test_api_wrapper.py +0 -272
  71. sql_mcp-1.0.1/tests/test_auth.py +0 -160
  72. sql_mcp-1.0.1/tests/test_concept_parity.py +0 -28
  73. sql_mcp-1.0.1/tests/test_safety.py +0 -98
  74. sql_mcp-1.0.1/tests/test_sql_mcp_validation.py +0 -187
  75. sql_mcp-1.0.1/tests/test_startup.py +0 -30
  76. {sql_mcp-1.0.1 → sql_mcp-2.3.3}/LICENSE +0 -0
  77. {sql_mcp-1.0.1 → sql_mcp-2.3.3}/MANIFEST.in +0 -0
  78. {sql_mcp-1.0.1 → sql_mcp-2.3.3}/setup.cfg +0 -0
  79. {sql_mcp-1.0.1 → sql_mcp-2.3.3}/sql_mcp/api/__init__.py +0 -0
  80. {sql_mcp-1.0.1 → sql_mcp-2.3.3}/sql_mcp/api_client.py +0 -0
  81. {sql_mcp-1.0.1/sql_mcp/prompts → sql_mcp-2.3.3/sql_mcp/connectors}/__init__.py +0 -0
  82. {sql_mcp-1.0.1 → sql_mcp-2.3.3}/sql_mcp/mcp/__init__.py +0 -0
  83. {sql_mcp-1.0.1/sql_mcp/skills → sql_mcp-2.3.3/sql_mcp/prompts}/__init__.py +0 -0
  84. {sql_mcp-1.0.1 → sql_mcp-2.3.3}/sql_mcp.egg-info/dependency_links.txt +0 -0
  85. {sql_mcp-1.0.1 → sql_mcp-2.3.3}/sql_mcp.egg-info/top_level.txt +0 -0
  86. {sql_mcp-1.0.1 → sql_mcp-2.3.3}/tests/test_init_dynamics.py +0 -0
@@ -1,33 +1,40 @@
1
- # Sql Mcp
2
- ## API | MCP Server | A2A Agent
3
-
4
- ![PyPI - Version](https://img.shields.io/pypi/v/sql-mcp)
5
- ![MCP Server](https://badge.mcpx.dev?type=server 'MCP Server')
6
- ![PyPI - Downloads](https://img.shields.io/pypi/dd/sql-mcp)
7
- ![GitHub Repo stars](https://img.shields.io/github/stars/Knuckles-Team/sql-mcp)
8
- ![GitHub forks](https://img.shields.io/github/forks/Knuckles-Team/sql-mcp)
9
- ![GitHub contributors](https://img.shields.io/github/contributors/Knuckles-Team/sql-mcp)
10
- ![PyPI - License](https://img.shields.io/pypi/l/sql-mcp)
11
- ![GitHub](https://img.shields.io/github/license/Knuckles-Team/sql-mcp)
12
- ![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/Knuckles-Team/sql-mcp)
13
- ![GitHub pull requests](https://img.shields.io/github/issues-pr/Knuckles-Team/sql-mcp)
14
- ![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/Knuckles-Team/sql-mcp)
15
- ![GitHub issues](https://img.shields.io/github/issues/Knuckles-Team/sql-mcp)
16
- ![GitHub top language](https://img.shields.io/github/languages/top/Knuckles-Team/sql-mcp)
17
- ![GitHub language count](https://img.shields.io/github/languages/count/Knuckles-Team/sql-mcp)
18
- ![GitHub repo size](https://img.shields.io/github/repo-size/Knuckles-Team/sql-mcp)
19
- ![PyPI - Wheel](https://img.shields.io/pypi/wheel/sql-mcp)
20
- ![PyPI - Implementation](https://img.shields.io/pypi/implementation/sql-mcp)
21
-
22
- Generic SQL database **API + MCP Server + A2A Agent** for the agent-utilities
23
- ecosystem — one connector for **PostgreSQL, MySQL/MariaDB, Microsoft SQL Server,
24
- Oracle, and SQLite** over SQLAlchemy 2.x Core.
25
-
26
- *Version: 1.0.1*
27
-
28
- > **Documentation** — Installation, deployment, and usage across the API, CLI, and
29
- > MCP interfaces are maintained in [`docs/`](docs/index.md).
1
+ Metadata-Version: 2.4
2
+ Name: sql-mcp
3
+ Version: 2.3.3
4
+ Summary: Generic SQL database (Postgres, MySQL/MariaDB, MSSQL, Oracle, SQLite) API + MCP Server for Agentic AI!
5
+ Author-email: Project Maintainers <maintainers@users.noreply.github.com>
6
+ License: MIT
7
+ Classifier: Development Status :: 4 - Beta
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Environment :: Console
10
+ Classifier: Operating System :: POSIX :: Linux
11
+ Classifier: Programming Language :: Python :: 3
12
+ Requires-Python: <3.15,>=3.12
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.18
16
+ Requires-Dist: python-dotenv>=1.2.4
17
+ Requires-Dist: sqlalchemy>=2.1.5
18
+ Provides-Extra: mcp
19
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.18; extra == "mcp"
20
+ Provides-Extra: postgres
21
+ Requires-Dist: psycopg[binary]>=3.3.6; extra == "postgres"
22
+ Provides-Extra: mysql
23
+ Requires-Dist: pymysql>=1.2.3; extra == "mysql"
24
+ Provides-Extra: mssql
25
+ Requires-Dist: pyodbc>=5.3.0; extra == "mssql"
26
+ Provides-Extra: oracle
27
+ Requires-Dist: oracledb>=26.0.1; extra == "oracle"
28
+ Provides-Extra: all
29
+ Requires-Dist: sql-mcp[mcp,mssql,mysql,oracle,postgres]>=1.0.0; extra == "all"
30
+ Provides-Extra: test
31
+ Requires-Dist: pytest-xdist>=3.8.0; extra == "test"
32
+ Requires-Dist: pytest>=9.1.1; extra == "test"
33
+ Requires-Dist: pytest-asyncio>=1.4.0; extra == "test"
34
+ Requires-Dist: pytest-cov>=7.1.0; extra == "test"
35
+ Dynamic: license-file
30
36
 
37
+ # Sql Mcp
31
38
  ## Table of Contents
32
39
 
33
40
  - [Overview](#overview)
@@ -46,7 +53,6 @@ Oracle, and SQLite** over SQLAlchemy 2.x Core.
46
53
 
47
54
  `sql-mcp` exposes read-only queries, gated DML/DDL, schema reflection, and
48
55
  connection administration as typed, deterministic MCP tools, and ships an optional
49
- Pydantic-AI agent server. It is **read-only by default**: every query passes a
50
56
  statement-type allowlist, every result is bounded by a row cap and a timeout, and
51
57
  all values travel as bound parameters — never interpolated into SQL strings.
52
58
 
@@ -56,15 +62,14 @@ all values travel as bound parameters — never interpolated into SQL strings.
56
62
  named multi-connection support, lazy engine creation, the read-only statement
57
63
  gate, row-cap/timeout enforcement, and bounded result envelopes
58
64
  (`{columns, rows, row_count, truncated}`).
59
- - **Four MCP tools** (`sql-mcp` console script): `sql_query` (execute/explain),
60
- `sql_execute` (execute/script — gated by `SQL_ALLOW_WRITES`), `sql_schema`
65
+ - **Four MCP tools** (`sql-mcp` console script): `sql_query` (run/explain),
66
+ `sql_execute` (run/script — gated by `SQL_ALLOW_WRITES`), `sql_schema`
61
67
  (schemas/tables/views/columns/indexes/foreign_keys/ddl/sample), and `sql_admin`
62
68
  (ping/version/active_connections/connections/dialects). See
63
69
  [`docs/usage.md`](docs/usage.md) for the full action surface.
64
70
  - **A dialect registry** (`sql_mcp.dialects`) — per-engine driver, URL scheme, pip
65
71
  extra, EXPLAIN prefix, and admin SQL. Core ships SQLite only; the other drivers
66
72
  install via extras.
67
- - **An A2A agent server** (`sql-agent` console script) — a Pydantic-AI graph agent
68
73
  wired to the MCP server via `MCP_URL`.
69
74
 
70
75
  ## MCP tools
@@ -143,59 +148,52 @@ of the configured connections. The whole set is toggled with `SQLTOOL`.
143
148
  | `SQLTOOL` | `True` | Register the SQL tool set |
144
149
 
145
150
  With nothing configured the server registers a zero-infra in-memory SQLite
146
- connection named `memory`, so it works out of the box. Tools take an optional
151
+ connection named `memory`, so it works by default. Tools take an optional
147
152
  `connection` parameter naming one of the configured connections; it defaults to
148
153
  the sole/first one. Passwords are parsed into `sqlalchemy.URL` objects and only
149
154
  ever rendered redacted. Copy [`.env.example`](.env.example) to `.env` and
150
- populate only what you use.
155
+ populate only what the operator use.
151
156
 
152
157
  ## Installation
153
158
 
154
- Pick the extra that matches what you want to run. DB-driver extras
159
+ Pick the extra that matches what the operator want to run. DB-driver extras
155
160
  (`postgres` / `mysql` / `mssql` / `oracle`) are **additive** — combine them with
156
- `[mcp]` or `[agent]`, e.g. `sql-mcp[mcp,postgres]` (see [Dialects & extras](#dialects--extras)).
157
161
 
158
162
  | Extra | Installs | Use when |
159
163
  |-------|----------|----------|
160
- | `sql-mcp[mcp]` | Slim MCP server only (`agent-utilities[mcp]` — FastMCP/FastAPI) | You only run the **MCP server** (smallest install / image) |
161
- | `sql-mcp[agent]` | Full agent runtime (`agent-utilities[agent,logfire]` — Pydantic AI + the epistemic-graph engine) | You run the **integrated agent** |
164
+ | `sql-mcp[mcp]` | Connector-focused MCP server (`agent-connector-sdk` — FastMCP/FastAPI + `epistemic-graph[full]`) | The operator only run the **MCP server** (smallest install / image) |
162
165
  | `sql-mcp[all]` | Everything (`mcp` + `agent` + **every** DB driver + `logfire`) | Development / both surfaces |
163
166
 
164
167
  ```bash
165
168
  pip install sql-mcp # core (SQLite only, MCP server, API)
166
- pip install "sql-mcp[mcp]" # slim MCP server (add drivers: [mcp,postgres])
167
- pip install "sql-mcp[agent]" # full agent runtime (Pydantic AI + engine)
169
+ pip install "sql-mcp[mcp]" # connector-focused MCP server (add drivers: [mcp,postgres])
168
170
  pip install "sql-mcp[all]" # every driver + MCP + agent extras
169
171
  pip install -e . # from source
170
172
  ```
171
173
 
172
- ### Container images (`:mcp` vs `:agent`)
174
+ ### Container images (`:mcp`)
173
175
 
174
- One multi-stage `docker/Dockerfile` builds two right-sized images, selected by `--target`:
176
+ One multi-stage `docker/Dockerfile` builds the MCP-only image (`--target mcp`):
175
177
 
176
178
  | Image tag | Build target | Contents | Entrypoint |
177
179
  |-----------|--------------|----------|------------|
178
- | `knucklessg1/sql-mcp:mcp` | `--target mcp` | `sql-mcp[mcp]` — **slim**, no engine/`pydantic-ai`/`dspy`/`llama-index`/`tree-sitter` | `sql-mcp` |
179
- | `knucklessg1/sql-mcp:latest` | `--target agent` (default) | `sql-mcp[agent]` — **full** agent runtime + epistemic-graph engine | `sql-agent` |
180
+ | `example/sql-mcp:mcp` | `--target mcp` | `sql-mcp[mcp]` — **connector-focused**, includes `epistemic-graph[full]`; no model-orchestration stack | `sql-mcp` |
180
181
 
181
182
  ```bash
182
- docker pull knucklessg1/sql-mcp:mcp # slim MCP server
183
- docker build --target mcp -t knucklessg1/sql-mcp:mcp docker/ # build slim MCP server
184
- docker build --target agent -t knucklessg1/sql-mcp:latest docker/ # build full agent
183
+ docker pull example/sql-mcp:mcp # connector-focused MCP server
184
+ docker build --target mcp -t example/sql-mcp:mcp docker/ # build MCP server
185
185
  ```
186
186
 
187
- `docker/mcp.compose.yml` runs the slim `:mcp` server; `docker/agent.compose.yml` runs the
188
- agent (`:latest`) with a co-located `:mcp` sidecar.
187
+ agent (`immutable agent digest`) with a co-located `:mcp` sidecar.
189
188
 
190
189
  ### Knowledge-graph database (`epistemic-graph`)
191
190
 
192
- The **full agent** (`[agent]` / `:latest`) embeds the **epistemic-graph** engine (pulled in
193
- transitively via `agent-utilities[agent]`). For production — or to share one knowledge graph
194
- across multiple agents — run **epistemic-graph as its own database container** and point the
195
- agent at it instead of embedding it. Deployment recipes (single-node + Raft HA), connection
196
- config, and the full database architecture (with diagrams) are documented in the
191
+ Agent Connector SDK core dependency (`epistemic-graph[full]`). The `[mcp]` extra keeps
192
+ deployments can use the bundled engine. For production or shared state, run
193
+ **epistemic-graph as a dedicated database service** and configure the runtime to use it.
194
+ Deployment recipes (single-node + Raft HA), connection configuration, and architecture
195
+ diagrams are documented in the
197
196
  [epistemic-graph deployment guide](https://knuckles-team.github.io/epistemic-graph/deployment/).
198
- The slim `[mcp]` server does **not** require the database.
199
197
 
200
198
  ## Usage
201
199
 
@@ -211,7 +209,7 @@ export SQL_URL="postgresql+psycopg://svc:****@db.example.com:5432/app"
211
209
  sql-mcp
212
210
  ```
213
211
 
214
- Or several:
212
+ Or multiple:
215
213
 
216
214
  ```bash
217
215
  export SQL_CONNECTIONS='{
@@ -222,22 +220,12 @@ export SQL_CONNECTIONS='{
222
220
  sql-mcp
223
221
  ```
224
222
 
225
- Run the agent server against a live MCP server:
226
-
227
- ```bash
228
- sql-agent --mcp-url http://localhost:8000/mcp --host 0.0.0.0 --port 8080
229
- ```
230
-
231
223
  ## MCP config
232
224
 
233
- > **Install the slim `[mcp]` extra.** For MCP-server hosting install
234
- > `sql-mcp[mcp]` (add DB-driver extras as needed, e.g. `sql-mcp[mcp,postgres]`) —
235
- > the MCP-server extra pulls only the FastMCP / FastAPI tooling
236
- > (`agent-utilities[mcp]`). It deliberately **excludes** the heavy agent runtime
237
- > (the epistemic-graph engine, `pydantic-ai`, `dspy`, `llama-index`, `tree-sitter`),
238
- > so `uvx`/container installs are dramatically smaller and faster. Use the full
239
- > `[agent]` extra only when you need the integrated Pydantic AI agent (see
240
- > [Installation](#installation)).
225
+ > **Install the connector-focused `[mcp]` extra.** Examples use `sql-mcp[mcp]` to add
226
+ > FastMCP / FastAPI through `agent-connector-sdk`; the required Agent Connector SDK core
227
+ > enables model orchestration.
228
+ > Combine it with the database-driver extras needed by the deployment.
241
229
 
242
230
  ```json
243
231
  {
@@ -257,23 +245,22 @@ sql-agent --mcp-url http://localhost:8000/mcp --host 0.0.0.0 --port 8080
257
245
  <!-- BEGIN GENERATED: additional-deployment-options -->
258
246
  ### Additional Deployment Options
259
247
 
260
- `sql-mcp` can also run as a **local container** (Docker / Podman / `uv`) or be
261
- consumed from a **remote deployment**. The
262
- [Deployment guide](https://knuckles-team.github.io/sql-mcp/deployment/) has full, copy-paste
263
- `mcp_config.json` for all four transports — **stdio**, **streamable-http**,
264
- **local container / uv**, and **remote URL**:
248
+ `sql-mcp` can run as a local stdio process or container, or behind a remote
249
+ network boundary. The
250
+ [Deployment guide](https://knuckles-team.github.io/sql-mcp/deployment/) carries
251
+ the detailed transport contract.
265
252
 
266
- - **Local container / uv** — launch the server from `mcp_config.json` via `uvx`,
267
- `docker run`, or `podman run`, or point at a local streamable-http container by `url`.
268
- - **Remote URL** — connect to a server deployed behind Caddy at
269
- `http://sql-mcp.arpa/mcp` using the `"url"` key.
253
+ - **Local container** — launch a reviewed immutable image as a least-privilege
254
+ stdio child with no listener or published port.
255
+ - **Remote URL** — connect through an operator-supplied authenticated HTTPS
256
+ ingress. Keep its URL, outbound identity references, trust profile, and exact
257
+ `MCP_ALLOWED_HOSTS` in `AgentConfig`.
270
258
  <!-- END GENERATED: additional-deployment-options -->
271
259
 
272
260
  ## Docker deployment
273
261
 
274
262
  ```bash
275
263
  docker compose -f docker/mcp.compose.yml up -d # MCP server only
276
- docker compose -f docker/agent.compose.yml up -d # MCP + A2A agent
277
264
  curl -s http://localhost:8000/health # {"status":"OK"}
278
265
  ```
279
266
 
@@ -300,27 +287,26 @@ python -m pytest # full suite against in-memory SQLite (no live DBs)
300
287
  pre-commit run --all-files
301
288
  ```
302
289
 
290
+ <!-- BEGIN agent-connector-sdk-deployment (generated; do not edit between markers) -->
303
291
 
304
- <!-- BEGIN agent-os-genesis-deploy (generated; do not edit between markers) -->
292
+ ## Deploy with `agent-connector-sdk-deployment`
305
293
 
306
- ## Deploy with `agent-os-genesis`
307
-
308
- This package can be provisioned for you — skill-guided — by the **`agent-os-genesis`**
309
- universal skill (its *single-package deploy mode*): it picks your install method, seeds
310
- secrets to OpenBao/Vault (or `.env`), trusts your enterprise CA, registers the MCP
311
- server, and verifies it — the same machinery that stands up the whole Agent OS, narrowed
312
- to just this package. Ask your agent to **"deploy `sql-mcp` with agent-os-genesis"**.
294
+ Provision this package with the consolidated **`agent-connector-sdk-deployment`**
295
+ workflow. It selects an installed-package, editable-source, or immutable-container
296
+ path; records only runtime secret and TLS-profile references in `AgentConfig`; and
297
+ runs doctor, registration, policy, observability, and rollback gates. Ask your agent
298
+ to **"deploy `sql-mcp` with agent-connector-sdk-deployment"**.
313
299
 
314
300
  | Install mode | Command |
315
301
  |------|---------|
316
- | Bare-metal, prod (PyPI) | `uvx sql-mcp` · or `uv tool install sql-mcp` |
317
- | Bare-metal, dev (editable) | `uv pip install -e ".[all]"` · or `pip install -e ".[all]"` |
318
- | Container, prod | deploy `knucklessg1/sql-mcp:latest` via docker-compose / swarm / podman / podman-compose / kubernetes |
319
- | Container, dev (editable) | deploy `docker/compose.dev.yml` (source-mounted at `/src`; edits live on restart) |
302
+ | Installed package | `uv tool install "sql-mcp[mcp]"`, then run `sql-mcp` |
303
+ | Immutable container | deploy `registry.example.invalid/sql-mcp@sha256:<digest>` through the operator-selected orchestrator |
320
304
 
321
- Secrets are read-existing + seeded via `vault_sync` — you are only prompted for what's missing.
305
+ The repository embeds no deployment profile, credential value, certificate path, or
306
+ environment-specific endpoint. Supply those at runtime through `AgentConfig` and the
307
+ configured secret provider.
322
308
 
323
- <!-- END agent-os-genesis-deploy -->
309
+ <!-- END agent-connector-sdk-deployment -->
324
310
 
325
311
  ## Environment Variables
326
312
 
@@ -335,19 +321,19 @@ Secrets are read-existing + seeded via `vault_sync` — you are only prompted fo
335
321
  | `TRANSPORT` | `stdio` | options: stdio, streamable-http, sse |
336
322
  | `ENABLE_OTEL` | `True` | |
337
323
  | `OTEL_EXPORTER_OTLP_ENDPOINT` | `http://localhost:8080/api/public/otel` | |
338
- | `OTEL_EXPORTER_OTLP_PUBLIC_KEY` | `pk-...` | |
339
- | `OTEL_EXPORTER_OTLP_SECRET_KEY` | `sk-...` | |
324
+ | `OTEL_EXPORTER_OTLP_PUBLIC_KEY` | secret-injected | |
325
+ | `OTEL_EXPORTER_OTLP_SECRET_KEY` | secret-injected | |
340
326
  | `OTEL_EXPORTER_OTLP_PROTOCOL` | `http/protobuf` | |
341
327
  | `EUNOMIA_TYPE` | `none` | options: none, embedded, remote |
342
328
  | `EUNOMIA_POLICY_FILE` | `mcp_policies.json` | |
343
329
  | `EUNOMIA_REMOTE_URL` | `http://eunomia-server:8000` | |
344
- | `SQL_CONNECTIONS` | `{"warehouse": "postgresql+psycopg://svc:password@db:5432/dw"}` | password, database, options} objects. Takes priority over SQL_URL. |
330
+ | `SQL_CONNECTIONS` | `{"warehouse": "postgresql+psycopg://svc:password@db:5432/dw"}` | Named connections (JSON). DSN strings or {dialect, host, port, username, password, database, options} objects. Takes priority over SQL_URL. |
345
331
  | `SQL_URL` | `postgresql+psycopg://svc:password@db.example.com:5432/app` | Single connection (registered as "default") |
346
332
  | `SQL_DIALECT` | `postgres` | ... or discrete fields for a single "default" connection |
347
333
  | `SQL_HOST` | `db.example.com` | |
348
334
  | `SQL_PORT` | `5432` | |
349
335
  | `SQL_USERNAME` | `svc` | |
350
- | `SQL_PASSWORD` | — | |
336
+ | `SQL_PASSWORD` | secret-injected | |
351
337
  | `SQL_DATABASE` | `app` | |
352
338
  | `SQL_OPTIONS` | `{"sslmode": "require"}` | |
353
339
  | `SQL_ALLOW_WRITES` | `False` | Policy (read-only by default) |
@@ -355,24 +341,41 @@ Secrets are read-existing + seeded via `vault_sync` — you are only prompted fo
355
341
  | `SQL_TIMEOUT_SECONDS` | `30` | |
356
342
  | `SQLTOOL` | `True` | |
357
343
 
358
- #### Inherited agent-utilities variables (apply to every connector)
344
+ #### Inherited agent-connector-sdk variables (apply to every connector)
359
345
 
360
346
  | Variable | Example | Description |
361
347
  |----------|---------|-------------|
362
- | `MCP_TOOL_MODE` | `condensed` | Tool surface: `condensed` | `verbose` | `both` |
348
+ | `MCP_TOOL_MODE` | `intent` | Tool surface: `intent` \| `condensed` \| `verbose` \| `both` |
363
349
  | `MCP_ENABLED_TOOLS` | — | Comma-separated tool allow-list |
364
350
  | `MCP_DISABLED_TOOLS` | — | Comma-separated tool deny-list |
365
351
  | `MCP_ENABLED_TAGS` | — | Comma-separated tag allow-list |
366
352
  | `MCP_DISABLED_TAGS` | — | Comma-separated tag deny-list |
367
- | `MCP_CLIENT_AUTH` | — | Outbound MCP auth (`oidc-client-credentials` for fleet calls) |
353
+ | `MCP_CLIENT_AUTH` | — | Outbound MCP child auth: `oidc-client-credentials` \| `basic` \| `none` |
368
354
  | `OIDC_CLIENT_ID` | — | OIDC client id (service-account auth) |
369
- | `OIDC_CLIENT_SECRET` | — | OIDC client secret (service-account auth) |
355
+ | `OIDC_CLIENT_SECRET_REF` | `secret://identity/oidc-client-secret` | Runtime secret reference for the OIDC service account |
356
+ | `MCP_BASIC_AUTH_USERNAME` | — | HTTP Basic username (`MCP_CLIENT_AUTH=basic`) |
357
+ | `MCP_BASIC_AUTH_PASSWORD_REF` | `secret://identity/mcp-basic-password` | Runtime secret reference for HTTP Basic auth (`MCP_CLIENT_AUTH=basic`) |
370
358
  | `DEBUG` | `False` | Verbose logging |
371
359
  | `PYTHONUNBUFFERED` | `1` | Unbuffered stdout (recommended in containers) |
372
360
  | `MCP_URL` | `http://localhost:8000/mcp` | URL of the MCP server the agent connects to |
373
361
  | `PROVIDER` | `openai` | LLM provider for the agent |
374
362
  | `MODEL_ID` | `gpt-4o` | Model id for the agent |
375
- | `ENABLE_WEB_UI` | `True` | Serve the AG-UI web interface |
376
363
 
377
- _24 package + 14 inherited variable(s). Auto-generated from `.env.example` + the shared agent-utilities set — do not edit._
364
+ _24 package + 16 inherited variable(s). Auto-generated from `.env.example` + the shared agent-connector-sdk set — do not edit._
378
365
  <!-- ENV-VARS-TABLE:END -->
366
+
367
+ <!-- GOVERNED-CAPABILITY:START -->
368
+ ## Governed capability contract
369
+
370
+ This package ships a compact canonical skill surface with specialist procedures
371
+ kept as referenced workflows. The current MCP tools, skill metadata,
372
+ `connector_manifest.yml`, ontology, mappings, shapes, fixtures, migrations,
373
+ tool-schema fingerprints, and certification metadata form one versioned
374
+ capability contract. Validate them together; do not rely on stale tool names or
375
+ historical per-task skill wrappers.
376
+
377
+ Runtime endpoints, credentials, certificate trust, tenant identity, retention,
378
+ and observability policy are deployment inputs and are never packaged values.
379
+ See [Configuration, trust, and privacy](docs/configuration.md) before enabling a
380
+ network transport, connector ingestion, Arbora delegation, or trace export.
381
+ <!-- GOVERNED-CAPABILITY:END -->