Repository navigation
Add schemagate-sql skill: text-to-SQL with ~91% fewer schema tokens and per-user scope (#1 BIRD Mini-Dev) - #6162
ashishsinha1602 wants to merge 3 commits into
Conversation
…t-to-SQL over MCP
🚦 Submission status: 👀 Ready for reviewRisk tier: Why this tier
Automated checks
Review
Commands
Updated for |
🔒 PR Risk Scan ResultsScanned 1 changed file(s).
|
|
🔴 Contributor Reputation Check: HIGH risk
Maintainers: please review this contributor before merging. |
🔍 Vally Lint Results✅ All checks passed
Summary
Full linter output |
|
/request-review |
|
🙋 Added |
… add-schemagate-sql-skill
Pull Request Checklist
npm startand verified thatREADME.mdis up to date.mainbranch for this pull request.Description
Adds
skills/schemagate-sql: a skill for answering questions about data in a large SQL database through the schemagate MCP server (Apache-2.0, open source, no paid service).This is not another database connector. The existing PostgreSQL / MySQL / SQL Server / Data API builder servers give the model the whole schema, or let it browse table by table, and leave the hard part to the model: choosing the few tables that matter out of hundreds, and never touching the ones this user must not see. schemagate is the selection layer that does that part, and this skill teaches Copilot to use it: select the schema for the question, write one SELECT against only that DDL, run it through the checked query path, and report out-of-scope refusals as refusals.
What that gets you, with the proof:
run_queryrefuses writes, multiple statements and any object outside the caller's scope. Every selection and query can go to a signed audit log.langchain-schemagate, works from LangChain and LangGraph), a LlamaIndex retriever on PyPI, the official MCP Registry (io.github.ashishsinha1602/schemagate), Glama and awesome-duckdb. 34.5k PyPI downloads (pepy.tech); releases carry SLSA provenance.The skill's setup block pins
schemagate[mcp]==1.15.4and points atdemo, a bundled sample schema, so it connects to nothing and needs no credentials until the user configures a real database in their own MCP config.Type of Contribution
Additional Notes
plugins/external.json.npm startlocally, so I added thedocs/README.skills.mdrow by hand in the generated format (alphabetical, afterscaffolding-...). Happy to regenerate if CI wants different output.skill:validatelimits (description 423 of 1,024 characters); the folder name matches the skill name.By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.