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.
- sql_mcp-1.0.1/README.md → sql_mcp-2.3.3/PKG-INFO +108 -105
- sql_mcp-1.0.1/PKG-INFO → sql_mcp-2.3.3/README.md +72 -143
- sql_mcp-2.3.3/pyproject.toml +87 -0
- {sql_mcp-1.0.1 → sql_mcp-2.3.3}/requirements.txt +1 -1
- {sql_mcp-1.0.1 → sql_mcp-2.3.3}/sql_mcp/__init__.py +23 -16
- sql_mcp-2.3.3/sql_mcp/__main__.py +4 -0
- sql_mcp-2.3.3/sql_mcp/api/api_client_sql.py +1680 -0
- sql_mcp-2.3.3/sql_mcp/auth.py +316 -0
- sql_mcp-2.3.3/sql_mcp/connectors/mcp_source_presets.json +3 -0
- sql_mcp-2.3.3/sql_mcp/connectors/tool_schema_fingerprints.json +6 -0
- {sql_mcp-1.0.1 → sql_mcp-2.3.3}/sql_mcp/dialects.py +13 -3
- sql_mcp-2.3.3/sql_mcp/kg_ingest.py +306 -0
- sql_mcp-2.3.3/sql_mcp/kg_pgwire.py +125 -0
- sql_mcp-2.3.3/sql_mcp/mcp/mcp_sql.py +625 -0
- {sql_mcp-1.0.1 → sql_mcp-2.3.3}/sql_mcp/mcp_config.json +1 -2
- {sql_mcp-1.0.1 → sql_mcp-2.3.3}/sql_mcp/mcp_server.py +11 -9
- sql_mcp-2.3.3/sql_mcp/ontology/__init__.py +8 -0
- sql_mcp-2.3.3/sql_mcp/ontology/certification.json +36 -0
- sql_mcp-2.3.3/sql_mcp/ontology/database.ttl +122 -0
- sql_mcp-2.3.3/sql_mcp/ontology/fixtures/records.json +17 -0
- sql_mcp-2.3.3/sql_mcp/ontology/mappings/source.yaml +20 -0
- sql_mcp-2.3.3/sql_mcp/ontology/migrations/manifest.json +6 -0
- sql_mcp-2.3.3/sql_mcp/ontology/shapes/connector.shacl.ttl +104 -0
- sql_mcp-2.3.3/sql_mcp/prompts/database_specialist.json +44 -0
- sql_mcp-2.3.3/sql_mcp/safety.py +372 -0
- sql_mcp-2.3.3/sql_mcp/skills/__init__.py +0 -0
- sql_mcp-2.3.3/sql_mcp/skills/sql-mcp-knowledge-graph-ingestion/SKILL.md +89 -0
- sql_mcp-2.3.3/sql_mcp/skills/sql-mcp-knowledge-graph-ingestion/WORKFLOW.md +78 -0
- sql_mcp-2.3.3/sql_mcp/skills/sql-mcp-operations/SKILL.md +33 -0
- sql_mcp-2.3.3/sql_mcp/skills/sql-mcp-operations/agents/openai.yaml +4 -0
- sql_mcp-2.3.3/sql_mcp/skills/sql-mcp-operations/references/catalog.md +7 -0
- sql_mcp-2.3.3/sql_mcp/skills/sql-mcp-query-execution/SKILL.md +93 -0
- sql_mcp-2.3.3/sql_mcp/skills/sql-mcp-query-execution/WORKFLOW.md +79 -0
- sql_mcp-2.3.3/sql_mcp/skills/sql-mcp-schema-inspection/SKILL.md +88 -0
- sql_mcp-2.3.3/sql_mcp/skills/sql-mcp-schema-inspection/WORKFLOW.md +75 -0
- sql_mcp-2.3.3/sql_mcp/sql_input_models.py +129 -0
- sql_mcp-2.3.3/sql_mcp/sql_response_models.py +49 -0
- {sql_mcp-1.0.1 → sql_mcp-2.3.3}/sql_mcp.egg-info/PKG-INFO +89 -124
- sql_mcp-2.3.3/sql_mcp.egg-info/SOURCES.txt +63 -0
- sql_mcp-2.3.3/sql_mcp.egg-info/entry_points.txt +17 -0
- sql_mcp-2.3.3/sql_mcp.egg-info/requires.txt +27 -0
- sql_mcp-2.3.3/tests/test_api_wrapper.py +746 -0
- sql_mcp-2.3.3/tests/test_auth.py +379 -0
- sql_mcp-2.3.3/tests/test_default_content_surfaces.py +43 -0
- {sql_mcp-1.0.1 → sql_mcp-2.3.3}/tests/test_dialect_paths.py +67 -1
- {sql_mcp-1.0.1 → sql_mcp-2.3.3}/tests/test_dialects.py +4 -3
- sql_mcp-2.3.3/tests/test_identity_context_scoping.py +84 -0
- sql_mcp-2.3.3/tests/test_kg_ingest.py +287 -0
- sql_mcp-2.3.3/tests/test_kg_pgwire.py +59 -0
- sql_mcp-2.3.3/tests/test_package_getattr.py +76 -0
- sql_mcp-2.3.3/tests/test_safety.py +207 -0
- sql_mcp-2.3.3/tests/test_sql_mcp_validation.py +406 -0
- sql_mcp-2.3.3/tests/test_startup.py +72 -0
- sql_mcp-2.3.3/tests/test_verify_api_integration.py +266 -0
- sql_mcp-1.0.1/pyproject.toml +0 -67
- sql_mcp-1.0.1/sql_mcp/__main__.py +0 -4
- sql_mcp-1.0.1/sql_mcp/agent_server.py +0 -71
- sql_mcp-1.0.1/sql_mcp/api/api_client_sql.py +0 -469
- sql_mcp-1.0.1/sql_mcp/auth.py +0 -142
- sql_mcp-1.0.1/sql_mcp/main_agent.json +0 -18
- sql_mcp-1.0.1/sql_mcp/mcp/mcp_sql.py +0 -224
- sql_mcp-1.0.1/sql_mcp/prompts/main_agent.json +0 -18
- sql_mcp-1.0.1/sql_mcp/safety.py +0 -173
- sql_mcp-1.0.1/sql_mcp/skills/sql-starter/SKILL.md +0 -19
- sql_mcp-1.0.1/sql_mcp/sql_input_models.py +0 -63
- sql_mcp-1.0.1/sql_mcp/sql_response_models.py +0 -51
- sql_mcp-1.0.1/sql_mcp.egg-info/SOURCES.txt +0 -40
- sql_mcp-1.0.1/sql_mcp.egg-info/entry_points.txt +0 -9
- sql_mcp-1.0.1/sql_mcp.egg-info/requires.txt +0 -30
- sql_mcp-1.0.1/tests/test_api_wrapper.py +0 -272
- sql_mcp-1.0.1/tests/test_auth.py +0 -160
- sql_mcp-1.0.1/tests/test_concept_parity.py +0 -28
- sql_mcp-1.0.1/tests/test_safety.py +0 -98
- sql_mcp-1.0.1/tests/test_sql_mcp_validation.py +0 -187
- sql_mcp-1.0.1/tests/test_startup.py +0 -30
- {sql_mcp-1.0.1 → sql_mcp-2.3.3}/LICENSE +0 -0
- {sql_mcp-1.0.1 → sql_mcp-2.3.3}/MANIFEST.in +0 -0
- {sql_mcp-1.0.1 → sql_mcp-2.3.3}/setup.cfg +0 -0
- {sql_mcp-1.0.1 → sql_mcp-2.3.3}/sql_mcp/api/__init__.py +0 -0
- {sql_mcp-1.0.1 → sql_mcp-2.3.3}/sql_mcp/api_client.py +0 -0
- {sql_mcp-1.0.1/sql_mcp/prompts → sql_mcp-2.3.3/sql_mcp/connectors}/__init__.py +0 -0
- {sql_mcp-1.0.1 → sql_mcp-2.3.3}/sql_mcp/mcp/__init__.py +0 -0
- {sql_mcp-1.0.1/sql_mcp/skills → sql_mcp-2.3.3/sql_mcp/prompts}/__init__.py +0 -0
- {sql_mcp-1.0.1 → sql_mcp-2.3.3}/sql_mcp.egg-info/dependency_links.txt +0 -0
- {sql_mcp-1.0.1 → sql_mcp-2.3.3}/sql_mcp.egg-info/top_level.txt +0 -0
- {sql_mcp-1.0.1 → sql_mcp-2.3.3}/tests/test_init_dynamics.py +0 -0
|
@@ -1,33 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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` (
|
|
60
|
-
`sql_execute` (
|
|
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
|
|
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
|
|
155
|
+
populate only what the operator use.
|
|
151
156
|
|
|
152
157
|
## Installation
|
|
153
158
|
|
|
154
|
-
Pick the extra that matches what
|
|
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]` |
|
|
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]" #
|
|
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`
|
|
174
|
+
### Container images (`:mcp`)
|
|
173
175
|
|
|
174
|
-
One multi-stage `docker/Dockerfile` builds
|
|
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
|
-
| `
|
|
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
|
|
183
|
-
docker build --target mcp -t
|
|
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
|
-
`
|
|
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
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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
|
|
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
|
|
234
|
-
>
|
|
235
|
-
>
|
|
236
|
-
>
|
|
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
|
|
261
|
-
|
|
262
|
-
[Deployment guide](https://knuckles-team.github.io/sql-mcp/deployment/)
|
|
263
|
-
|
|
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
|
|
267
|
-
|
|
268
|
-
- **Remote URL** — connect
|
|
269
|
-
|
|
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
|
-
|
|
292
|
+
## Deploy with `agent-connector-sdk-deployment`
|
|
305
293
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
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
|
-
|
|
|
317
|
-
|
|
|
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
|
-
|
|
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-
|
|
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` |
|
|
339
|
-
| `OTEL_EXPORTER_OTLP_SECRET_KEY` |
|
|
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-
|
|
344
|
+
#### Inherited agent-connector-sdk variables (apply to every connector)
|
|
359
345
|
|
|
360
346
|
| Variable | Example | Description |
|
|
361
347
|
|----------|---------|-------------|
|
|
362
|
-
| `MCP_TOOL_MODE` | `
|
|
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
|
|
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
|
-
| `
|
|
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 +
|
|
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 -->
|