sql-mcp 2.3.9__tar.gz → 2.3.10__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 (63) hide show
  1. {sql_mcp-2.3.9/sql_mcp.egg-info → sql_mcp-2.3.10}/PKG-INFO +190 -131
  2. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/README.md +188 -129
  3. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/pyproject.toml +2 -2
  4. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/auth.py +1 -1
  5. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/kg_ingest.py +12 -3
  6. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/mcp/mcp_sql.py +1 -1
  7. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/ontology/__init__.py +1 -1
  8. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/ontology/certification.json +3 -3
  9. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/ontology/database.ttl +8 -32
  10. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/ontology/shapes/connector.shacl.ttl +2 -2
  11. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/skills/sql-mcp-development/SKILL.md +16 -0
  12. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/skills/sql-mcp-knowledge-graph-ingestion/SKILL.md +19 -8
  13. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/skills/sql-mcp-operations/SKILL.md +16 -0
  14. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/skills/sql-mcp-query-execution/SKILL.md +19 -8
  15. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/skills/sql-mcp-schema-inspection/SKILL.md +18 -7
  16. {sql_mcp-2.3.9 → sql_mcp-2.3.10/sql_mcp.egg-info}/PKG-INFO +190 -131
  17. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp.egg-info/SOURCES.txt +2 -0
  18. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp.egg-info/requires.txt +1 -1
  19. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/tests/test_kg_ingest.py +6 -3
  20. sql_mcp-2.3.10/tests/test_ontology_extends_core.py +24 -0
  21. sql_mcp-2.3.10/tests/test_scion_sdk_0_10_imports.py +59 -0
  22. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/tests/test_startup.py +1 -1
  23. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/LICENSE +0 -0
  24. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/setup.cfg +0 -0
  25. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/__init__.py +0 -0
  26. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/__main__.py +0 -0
  27. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/api/__init__.py +0 -0
  28. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/api/api_client_sql.py +0 -0
  29. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/api_client.py +0 -0
  30. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/connector_contracts.py +0 -0
  31. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/connector_sources.py +0 -0
  32. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/dialects.py +0 -0
  33. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/kg_pgwire.py +0 -0
  34. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/mcp/__init__.py +0 -0
  35. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/mcp_config.json +0 -0
  36. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/mcp_server.py +0 -0
  37. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/ontology/fixtures/records.json +0 -0
  38. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/ontology/mappings/source.yaml +0 -0
  39. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/ontology/migrations/manifest.json +0 -0
  40. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/prompts/sql-mcp-data-analyst.json +0 -0
  41. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/prompts/sql-mcp-data-steward.json +0 -0
  42. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/prompts/sql-mcp-database-administrator.json +0 -0
  43. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/prompts/sql-mcp-operator.json +0 -0
  44. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/safety.py +0 -0
  45. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/skills/sql-mcp-knowledge-graph-ingestion/WORKFLOW.md +0 -0
  46. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/skills/sql-mcp-operations/agents/openai.yaml +0 -0
  47. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/skills/sql-mcp-operations/references/catalog.md +0 -0
  48. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/skills/sql-mcp-query-execution/WORKFLOW.md +0 -0
  49. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/skills/sql-mcp-schema-inspection/WORKFLOW.md +0 -0
  50. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp/sql_response_models.py +0 -0
  51. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp.egg-info/dependency_links.txt +0 -0
  52. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp.egg-info/entry_points.txt +0 -0
  53. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/sql_mcp.egg-info/top_level.txt +0 -0
  54. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/tests/test_api_wrapper.py +0 -0
  55. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/tests/test_auth.py +0 -0
  56. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/tests/test_dialect_paths.py +0 -0
  57. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/tests/test_dialects.py +0 -0
  58. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/tests/test_identity_context_scoping.py +0 -0
  59. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/tests/test_init_dynamics.py +0 -0
  60. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/tests/test_kg_pgwire.py +0 -0
  61. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/tests/test_package_getattr.py +0 -0
  62. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/tests/test_safety.py +0 -0
  63. {sql_mcp-2.3.9 → sql_mcp-2.3.10}/tests/test_sql_mcp_validation.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.3.10
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.15,>=0.14.1
16
16
  Requires-Dist: python-dotenv>=1.2.4
17
17
  Requires-Dist: sqlalchemy>=2.1.5
18
18
  Provides-Extra: postgres
@@ -33,19 +33,32 @@ Requires-Dist: pytest-cov>=7.1.0; extra == "test"
33
33
  Dynamic: license-file
34
34
 
35
35
  # Sql Mcp
36
- ## Table of Contents
37
-
38
- - [Overview](#overview)
39
- - [What it provides](#what-it-provides)
40
- - [MCP tools](#mcp-tools)
41
- - [Dialects & extras](#dialects--extras)
42
- - [Configuration (environment)](#configuration-environment)
43
- - [Installation](#installation)
44
- - [Usage](#usage)
45
- - [MCP config](#mcp-config)
46
- - [Docker deployment](#docker-deployment)
47
- - [Safety model](#safety-model)
48
- - [Tests](#tests)
36
+ ## MCP
37
+
38
+ ![PyPI - Version](https://img.shields.io/pypi/v/sql-mcp)
39
+ ![MCP Server](https://badge.mcpx.dev?type=server 'MCP Server')
40
+ ![PyPI - Downloads](https://img.shields.io/pypi/dd/sql-mcp)
41
+ ![GitHub Repo stars](https://img.shields.io/github/stars/Knuckles-Team/sql-mcp)
42
+ ![GitHub forks](https://img.shields.io/github/forks/Knuckles-Team/sql-mcp)
43
+ ![GitHub contributors](https://img.shields.io/github/contributors/Knuckles-Team/sql-mcp)
44
+ ![PyPI - License](https://img.shields.io/pypi/l/sql-mcp)
45
+ ![GitHub](https://img.shields.io/github/license/Knuckles-Team/sql-mcp)
46
+ ![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/Knuckles-Team/sql-mcp)
47
+ ![GitHub pull requests](https://img.shields.io/github/issues-pr/Knuckles-Team/sql-mcp)
48
+ ![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/Knuckles-Team/sql-mcp)
49
+ ![GitHub issues](https://img.shields.io/github/issues/Knuckles-Team/sql-mcp)
50
+ ![GitHub top language](https://img.shields.io/github/languages/top/Knuckles-Team/sql-mcp)
51
+ ![GitHub language count](https://img.shields.io/github/languages/count/Knuckles-Team/sql-mcp)
52
+ ![GitHub repo size](https://img.shields.io/github/repo-size/Knuckles-Team/sql-mcp)
53
+ ![GitHub repo file count (file type)](https://img.shields.io/github/directory-file-count/Knuckles-Team/sql-mcp)
54
+ ![PyPI - Wheel](https://img.shields.io/pypi/wheel/sql-mcp)
55
+ ![PyPI - Implementation](https://img.shields.io/pypi/implementation/sql-mcp)
56
+
57
+ > **Documentation** — Installation, deployment, and usage across the API, CLI, MCP,
58
+ > and A2A agent interfaces are maintained in the
59
+ > [official documentation](https://knuckles-team.github.io/sql-mcp/).
60
+
61
+ ---
49
62
 
50
63
  ## Overview
51
64
 
@@ -54,7 +67,9 @@ connection administration as typed, deterministic MCP tools, and ships an option
54
67
  statement-type allowlist, every result is bounded by a row cap and a timeout, and
55
68
  all values travel as bound parameters — never interpolated into SQL strings.
56
69
 
57
- ## What it provides
70
+ ---
71
+
72
+ ## Key Features
58
73
 
59
74
  - **`SqlApi`** (`sql_mcp.api.api_client_sql`) — a SQLAlchemy 2.x Core facade with
60
75
  named multi-connection support, lazy engine creation, the read-only statement
@@ -70,7 +85,11 @@ all values travel as bound parameters — never interpolated into SQL strings.
70
85
  install via extras.
71
86
  wired to the MCP server via `MCP_URL`.
72
87
 
73
- ## MCP tools
88
+ ---
89
+
90
+ ## MCP
91
+
92
+ ### MCP tools
74
93
 
75
94
  The table below is auto-generated from the MCP server — do not edit by hand.
76
95
 
@@ -121,6 +140,45 @@ _2 action-routed tool(s) (default) · 22 verbose 1:1 tool(s). Each is enabled un
121
140
  Every tool takes `action`, `params_json`, and an optional `connection` naming one
122
141
  of the configured connections. The whole set is toggled with `SQLTOOL`.
123
142
 
143
+ ### MCP config
144
+
145
+ > **Install the connector-focused `[mcp]` extra.** Examples use `sql-mcp[mcp]` to add
146
+ > FastMCP / FastAPI through `scion-sdk`; the required Scion SDK core
147
+ > enables model orchestration.
148
+ > Combine it with the database-driver extras needed by the deployment.
149
+
150
+ ```json
151
+ {
152
+ "mcpServers": {
153
+ "sql-mcp": {
154
+ "command": "uv",
155
+ "args": ["run", "sql-mcp"],
156
+ "env": {
157
+ "SQL_URL": "postgresql+psycopg://svc:****@db.example.com:5432/app",
158
+ "SQL_ALLOW_WRITES": "False"
159
+ }
160
+ }
161
+ }
162
+ }
163
+ ```
164
+
165
+ <!-- BEGIN GENERATED: additional-deployment-options -->
166
+ ### Additional Deployment Options
167
+
168
+ `sql-mcp` can run as a local stdio process or container, or behind a remote
169
+ network boundary. The
170
+ [Deployment guide](https://knuckles-team.github.io/sql-mcp/deployment/) carries
171
+ the detailed transport contract.
172
+
173
+ - **Local container** — launch a reviewed immutable image as a least-privilege
174
+ stdio child with no listener or published port.
175
+ - **Remote URL** — connect through an operator-supplied authenticated HTTPS
176
+ ingress. Keep its URL, outbound identity references, trust profile, and exact
177
+ `MCP_ALLOWED_HOSTS` in `AgentConfig`.
178
+ <!-- END GENERATED: additional-deployment-options -->
179
+
180
+ ---
181
+
124
182
  ## Dialects & extras
125
183
 
126
184
  | Dialect | SQLAlchemy scheme | Driver | Install |
@@ -133,7 +191,45 @@ of the configured connections. The whole set is toggled with `SQLTOOL`.
133
191
 
134
192
  `pip install sql-mcp[all]` pulls every driver plus the MCP and agent extras.
135
193
 
136
- ## Configuration (environment)
194
+ ---
195
+
196
+ ## Docker deployment
197
+
198
+ ```bash
199
+ docker compose -f docker/mcp.compose.yml up -d # MCP server only
200
+ curl -s http://localhost:8000/health # {"status":"OK"}
201
+ ```
202
+
203
+ Both services read configuration from `../.env` (copy
204
+ [`.env.example`](.env.example)); see [`docs/deployment.md`](docs/deployment.md).
205
+
206
+ ---
207
+
208
+ ## Safety model
209
+
210
+ - **Read-only by default** — `sql_execute` refuses to run unless the *server* was
211
+ started with `SQL_ALLOW_WRITES=True`; agents cannot flip the flag per call.
212
+ - **Statement allowlist** — `sql_query` accepts only `SELECT`/`WITH`/`EXPLAIN`/
213
+ `SHOW`/`DESCRIBE`/`PRAGMA`/`VALUES`; CTEs are inspected at paren depth zero so
214
+ `WITH ... INSERT` cannot smuggle a write, `SELECT INTO` is rejected, and
215
+ multi-statement payloads are refused.
216
+ - **Bounded results** — per-call row caps clamp to `SQL_MAX_ROWS`; statements run
217
+ under `SQL_TIMEOUT_SECONDS` on a worker thread.
218
+ - **Parameterized only** — values bind via `:name` parameters; identifiers are
219
+ quoted by SQLAlchemy reflection, never hand-interpolated.
220
+
221
+ ---
222
+
223
+ ## Tests
224
+
225
+ ```bash
226
+ python -m pytest # full suite against in-memory SQLite (no live DBs)
227
+ pre-commit run --all-files
228
+ ```
229
+
230
+ ---
231
+
232
+ ## Environment Variables
137
233
 
138
234
  | Var | Default | Meaning |
139
235
  |---|---|---|
@@ -152,6 +248,63 @@ the sole/first one. Passwords are parsed into `sqlalchemy.URL` objects and only
152
248
  ever rendered redacted. Copy [`.env.example`](.env.example) to `.env` and
153
249
  populate only what the operator use.
154
250
 
251
+
252
+ <!-- ENV-VARS-TABLE:START -->
253
+
254
+ #### Package environment variables
255
+
256
+ | Variable | Example | Description |
257
+ |----------|---------|-------------|
258
+ | `HOST` | `0.0.0.0` | |
259
+ | `PORT` | `8000` | |
260
+ | `TRANSPORT` | `stdio` | options: stdio, streamable-http, sse |
261
+ | `ENABLE_OTEL` | `True` | |
262
+ | `OTEL_EXPORTER_OTLP_ENDPOINT` | `http://localhost:8080/api/public/otel` | |
263
+ | `OTEL_EXPORTER_OTLP_PUBLIC_KEY` | secret-injected | |
264
+ | `OTEL_EXPORTER_OTLP_SECRET_KEY` | secret-injected | |
265
+ | `OTEL_EXPORTER_OTLP_PROTOCOL` | `http/protobuf` | |
266
+ | `EUNOMIA_TYPE` | `none` | options: none, embedded, remote |
267
+ | `EUNOMIA_POLICY_FILE` | `mcp_policies.json` | |
268
+ | `EUNOMIA_REMOTE_URL` | `http://eunomia-server:8000` | |
269
+ | `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. |
270
+ | `SQL_URL` | `postgresql+psycopg://svc:password@db.example.com:5432/app` | Single connection (registered as "default") |
271
+ | `SQL_DIALECT` | `postgres` | ... or discrete fields for a single "default" connection |
272
+ | `SQL_HOST` | `db.example.com` | |
273
+ | `SQL_PORT` | `5432` | |
274
+ | `SQL_USERNAME` | `svc` | |
275
+ | `SQL_PASSWORD` | secret-injected | |
276
+ | `SQL_DATABASE` | `app` | |
277
+ | `SQL_OPTIONS` | `{"sslmode": "require"}` | |
278
+ | `SQL_ALLOW_WRITES` | `False` | Policy (read-only by default) |
279
+ | `SQL_MAX_ROWS` | `500` | |
280
+ | `SQL_TIMEOUT_SECONDS` | `30` | |
281
+ | `SQLTOOL` | `True` | |
282
+
283
+ #### Inherited scion-sdk variables (apply to every connector)
284
+
285
+ | Variable | Example | Description |
286
+ |----------|---------|-------------|
287
+ | `MCP_TOOL_MODE` | `intent` | Tool surface: `intent` \| `condensed` \| `verbose` \| `both` |
288
+ | `MCP_ENABLED_TOOLS` | — | Comma-separated tool allow-list |
289
+ | `MCP_DISABLED_TOOLS` | — | Comma-separated tool deny-list |
290
+ | `MCP_ENABLED_TAGS` | — | Comma-separated tag allow-list |
291
+ | `MCP_DISABLED_TAGS` | — | Comma-separated tag deny-list |
292
+ | `MCP_CLIENT_AUTH` | — | Outbound MCP child auth: `oidc-client-credentials` \| `basic` \| `none` |
293
+ | `OIDC_CLIENT_ID` | — | OIDC client id (service-account auth) |
294
+ | `OIDC_CLIENT_SECRET_REF` | `secret://identity/oidc-client-secret` | Runtime secret reference for the OIDC service account |
295
+ | `MCP_BASIC_AUTH_USERNAME` | — | HTTP Basic username (`MCP_CLIENT_AUTH=basic`) |
296
+ | `MCP_BASIC_AUTH_PASSWORD_REF` | `secret://identity/mcp-basic-password` | Runtime secret reference for HTTP Basic auth (`MCP_CLIENT_AUTH=basic`) |
297
+ | `DEBUG` | `False` | Verbose logging |
298
+ | `PYTHONUNBUFFERED` | `1` | Unbuffered stdout (recommended in containers) |
299
+ | `MCP_URL` | `http://localhost:8000/mcp` | URL of the MCP server the agent connects to |
300
+ | `PROVIDER` | `openai` | LLM provider for the agent |
301
+ | `MODEL_ID` | `gpt-4o` | Model id for the agent |
302
+
303
+ _24 package + 16 inherited variable(s). Auto-generated from `.env.example` + the shared scion-sdk set — do not edit._
304
+ <!-- ENV-VARS-TABLE:END -->
305
+
306
+ ---
307
+
155
308
  ## Installation
156
309
 
157
310
  Pick the extra that matches what the operator want to run. DB-driver extras
@@ -193,6 +346,8 @@ Deployment recipes (single-node + Raft HA), connection configuration, and archit
193
346
  diagrams are documented in the
194
347
  [medulla deployment guide](https://knuckles-team.github.io/medulla/deployment/).
195
348
 
349
+ ---
350
+
196
351
  ## Usage
197
352
 
198
353
  ```bash
@@ -218,72 +373,32 @@ export SQL_CONNECTIONS='{
218
373
  sql-mcp
219
374
  ```
220
375
 
221
- ## MCP config
376
+ ---
222
377
 
223
- > **Install the connector-focused `[mcp]` extra.** Examples use `sql-mcp[mcp]` to add
224
- > FastMCP / FastAPI through `scion-sdk`; the required Scion SDK core
225
- > enables model orchestration.
226
- > Combine it with the database-driver extras needed by the deployment.
378
+ ## Documentation
227
379
 
228
- ```json
229
- {
230
- "mcpServers": {
231
- "sql-mcp": {
232
- "command": "uv",
233
- "args": ["run", "sql-mcp"],
234
- "env": {
235
- "SQL_URL": "postgresql+psycopg://svc:****@db.example.com:5432/app",
236
- "SQL_ALLOW_WRITES": "False"
237
- }
238
- }
239
- }
240
- }
241
- ```
380
+ The complete documentation is published as the
381
+ [official documentation site](https://knuckles-team.github.io/sql-mcp/) and is
382
+ the recommended reference for installation, deployment, and day-to-day operation.
242
383
 
243
- <!-- BEGIN GENERATED: additional-deployment-options -->
244
- ### Additional Deployment Options
384
+ ---
245
385
 
246
- `sql-mcp` can run as a local stdio process or container, or behind a remote
247
- network boundary. The
248
- [Deployment guide](https://knuckles-team.github.io/sql-mcp/deployment/) carries
249
- the detailed transport contract.
250
-
251
- - **Local container** — launch a reviewed immutable image as a least-privilege
252
- stdio child with no listener or published port.
253
- - **Remote URL** — connect through an operator-supplied authenticated HTTPS
254
- ingress. Keep its URL, outbound identity references, trust profile, and exact
255
- `MCP_ALLOWED_HOSTS` in `AgentConfig`.
256
- <!-- END GENERATED: additional-deployment-options -->
257
-
258
- ## Docker deployment
259
-
260
- ```bash
261
- docker compose -f docker/mcp.compose.yml up -d # MCP server only
262
- curl -s http://localhost:8000/health # {"status":"OK"}
263
- ```
386
+ ## Repository Owners
264
387
 
265
- Both services read configuration from `../.env` (copy
266
- [`.env.example`](.env.example)); see [`docs/deployment.md`](docs/deployment.md).
388
+ <img width="100%" height="180em" src="https://github-readme-stats.vercel.app/api?username=example&show_icons=true&hide_border=true&&count_private=true&include_all_commits=true" />
267
389
 
268
- ## Safety model
390
+ ![GitHub followers](https://img.shields.io/github/followers/example)
391
+ ![GitHub User's stars](https://img.shields.io/github/stars/example)
269
392
 
270
- - **Read-only by default** — `sql_execute` refuses to run unless the *server* was
271
- started with `SQL_ALLOW_WRITES=True`; agents cannot flip the flag per call.
272
- - **Statement allowlist** — `sql_query` accepts only `SELECT`/`WITH`/`EXPLAIN`/
273
- `SHOW`/`DESCRIBE`/`PRAGMA`/`VALUES`; CTEs are inspected at paren depth zero so
274
- `WITH ... INSERT` cannot smuggle a write, `SELECT INTO` is rejected, and
275
- multi-statement payloads are refused.
276
- - **Bounded results** — per-call row caps clamp to `SQL_MAX_ROWS`; statements run
277
- under `SQL_TIMEOUT_SECONDS` on a worker thread.
278
- - **Parameterized only** — values bind via `:name` parameters; identifiers are
279
- quoted by SQLAlchemy reflection, never hand-interpolated.
393
+ ---
280
394
 
281
- ## Tests
395
+ ## Contribute
282
396
 
283
- ```bash
284
- python -m pytest # full suite against in-memory SQLite (no live DBs)
285
- pre-commit run --all-files
286
- ```
397
+ Contributions are welcome! Please ensure code quality by running local checks before submitting pull requests:
398
+ - Format code using `ruff format .`
399
+ - Lint code using `ruff check .`
400
+ - Validate type-safety with `mypy .`
401
+ - Run test suites using `pytest`
287
402
 
288
403
  <!-- BEGIN scion-sdk-deployment (generated; do not edit between markers) -->
289
404
 
@@ -306,62 +421,6 @@ configured secret provider.
306
421
 
307
422
  <!-- END scion-sdk-deployment -->
308
423
 
309
- ## Environment Variables
310
-
311
- <!-- ENV-VARS-TABLE:START -->
312
-
313
- #### Package environment variables
314
-
315
- | Variable | Example | Description |
316
- |----------|---------|-------------|
317
- | `HOST` | `0.0.0.0` | |
318
- | `PORT` | `8000` | |
319
- | `TRANSPORT` | `stdio` | options: stdio, streamable-http, sse |
320
- | `ENABLE_OTEL` | `True` | |
321
- | `OTEL_EXPORTER_OTLP_ENDPOINT` | `http://localhost:8080/api/public/otel` | |
322
- | `OTEL_EXPORTER_OTLP_PUBLIC_KEY` | secret-injected | |
323
- | `OTEL_EXPORTER_OTLP_SECRET_KEY` | secret-injected | |
324
- | `OTEL_EXPORTER_OTLP_PROTOCOL` | `http/protobuf` | |
325
- | `EUNOMIA_TYPE` | `none` | options: none, embedded, remote |
326
- | `EUNOMIA_POLICY_FILE` | `mcp_policies.json` | |
327
- | `EUNOMIA_REMOTE_URL` | `http://eunomia-server:8000` | |
328
- | `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. |
329
- | `SQL_URL` | `postgresql+psycopg://svc:password@db.example.com:5432/app` | Single connection (registered as "default") |
330
- | `SQL_DIALECT` | `postgres` | ... or discrete fields for a single "default" connection |
331
- | `SQL_HOST` | `db.example.com` | |
332
- | `SQL_PORT` | `5432` | |
333
- | `SQL_USERNAME` | `svc` | |
334
- | `SQL_PASSWORD` | secret-injected | |
335
- | `SQL_DATABASE` | `app` | |
336
- | `SQL_OPTIONS` | `{"sslmode": "require"}` | |
337
- | `SQL_ALLOW_WRITES` | `False` | Policy (read-only by default) |
338
- | `SQL_MAX_ROWS` | `500` | |
339
- | `SQL_TIMEOUT_SECONDS` | `30` | |
340
- | `SQLTOOL` | `True` | |
341
-
342
- #### Inherited scion-sdk variables (apply to every connector)
343
-
344
- | Variable | Example | Description |
345
- |----------|---------|-------------|
346
- | `MCP_TOOL_MODE` | `intent` | Tool surface: `intent` \| `condensed` \| `verbose` \| `both` |
347
- | `MCP_ENABLED_TOOLS` | — | Comma-separated tool allow-list |
348
- | `MCP_DISABLED_TOOLS` | — | Comma-separated tool deny-list |
349
- | `MCP_ENABLED_TAGS` | — | Comma-separated tag allow-list |
350
- | `MCP_DISABLED_TAGS` | — | Comma-separated tag deny-list |
351
- | `MCP_CLIENT_AUTH` | — | Outbound MCP child auth: `oidc-client-credentials` \| `basic` \| `none` |
352
- | `OIDC_CLIENT_ID` | — | OIDC client id (service-account auth) |
353
- | `OIDC_CLIENT_SECRET_REF` | `secret://identity/oidc-client-secret` | Runtime secret reference for the OIDC service account |
354
- | `MCP_BASIC_AUTH_USERNAME` | — | HTTP Basic username (`MCP_CLIENT_AUTH=basic`) |
355
- | `MCP_BASIC_AUTH_PASSWORD_REF` | `secret://identity/mcp-basic-password` | Runtime secret reference for HTTP Basic auth (`MCP_CLIENT_AUTH=basic`) |
356
- | `DEBUG` | `False` | Verbose logging |
357
- | `PYTHONUNBUFFERED` | `1` | Unbuffered stdout (recommended in containers) |
358
- | `MCP_URL` | `http://localhost:8000/mcp` | URL of the MCP server the agent connects to |
359
- | `PROVIDER` | `openai` | LLM provider for the agent |
360
- | `MODEL_ID` | `gpt-4o` | Model id for the agent |
361
-
362
- _24 package + 16 inherited variable(s). Auto-generated from `.env.example` + the shared scion-sdk set — do not edit._
363
- <!-- ENV-VARS-TABLE:END -->
364
-
365
424
  <!-- GOVERNED-CAPABILITY:START -->
366
425
  ## Governed capability contract
367
426