Copilot SQL POC
БесплатноНе проверенEnables answering business questions over local SQL Server WideWorldImporters data through MCP, with support for both STDIO and Streamable HTTP endpoints.
Описание
Enables answering business questions over local SQL Server WideWorldImporters data through MCP, with support for both STDIO and Streamable HTTP endpoints.
README
Proof of concept for answering business questions over local SQL Server WideWorldImporters data through MCP.
Current Milestone
Milestone 9: Copilot Studio integration documentation.
Status:
- Legacy Cursor implementation preserved in
legacy/. - Shared app package created.
- STDIO entry point added as
server_stdio.py. - Existing MCP tool names preserved.
- Existing Cursor MCP App resource URI preserved.
- Data dictionary copied from the legacy implementation.
- Cursor renderer copied from the legacy implementation.
- Unit tests added for SQL validation and result handling.
- Shared
VisualResponsemodel added. - Cursor visual results now pass through the neutral model.
- Cursor renderer can normalize
visual_responsepayloads. - SQL remains excluded from public visual response payloads.
- Adaptive Card renderer added for KPI, bar, horizontal bar, line, pie, doughnut, table, and fallback outputs.
- Copilot-facing output helper added with business result, Adaptive Card, and fallback text.
- Streamable HTTP entry point added as
server_http.py. -
/healthendpoint added. - MCP HTTP endpoint defaults to
/mcp. - Windows and SQL authentication modes configured through environment variables.
- Query timeout, max rows, encryption, trust certificate, and approved schemas are configurable.
- Cross-database, system object, unapproved schema, unqualified table, and
SELECT INTOqueries are rejected. -
.env.exampleadded without secrets. - Dockerfile added for the HTTP MCP server.
-
.dockerignoreadded. - Container build/run guide added.
- Azure App Service / ACR deployment guide added.
- Hybrid Connection and SQL Server Express preparation steps documented.
- Copilot Studio MCP onboarding guide added.
- Copilot Studio testing and publish steps documented.
- Manual Cursor acceptance questions verified against live SQL Server.
Local STDIO Server
Run the refactored Cursor-compatible MCP server with:
python server_stdio.py
Local Streamable HTTP Server
Run the local HTTP MCP server with:
python server_http.py
Defaults:
- host:
0.0.0.0 - port:
8000, orPORTif set - MCP endpoint:
/mcp, orMCP_HTTP_PATHif set - health endpoint:
/health
Example health URL:
http://localhost:8000/health
The original working implementation remains available at:
legacy/sqlserver_mcp_wwi_cursor_apps_business.py
Configuration
The refactored server keeps the legacy local defaults:
SQLSERVER_HOST, default050027346-3SQLSERVER_PORT, optionalSQLSERVER_DB, defaultWideWorldImportersSQLSERVER_AUTH_MODE,windowsorsqlSQLSERVER_USER, optionalSQLSERVER_PASS, optional legacy password variableSQLSERVER_PASSWORD, optional preferred password variableSQLSERVER_DRIVER, defaultODBC Driver 17 for SQL ServerSQLSERVER_ENCRYPT, defaultnoSQLSERVER_TRUST_CERT, defaultyesQUERY_TIMEOUT_SECONDS, default15MAX_QUERY_ROWS, default500SQLSERVER_APPROVED_SCHEMAS, defaultApplication,Sales,Purchasing,Warehouse
If no SQL user/password is provided, the connection uses Windows trusted authentication, matching the legacy Cursor setup.
Local state files default to the legacy/ directory for compatibility:
mcp_memory.txtmcp_pending_suggestions.txtmcp_queries.log
Override that directory with MCP_STATE_DIR if needed.
Tests
The current tests use the Python standard library and do not require a live SQL Server:
python -m unittest discover -s tests -p "test_*.py" -v
Manual Cursor and SQL Server acceptance checks are listed in
docs/acceptance_tests.md.
The shared visual contract is summarized in docs/visual_contract.md.
Adaptive Card rendering notes are in docs/adaptive_card_examples.md.
Local HTTP setup notes are in docs/local_http.md.
Database configuration notes are in docs/database_configuration.md.
Containerisation notes are in docs/containerization.md.
Azure deployment notes are in AZURE_DEPLOYMENT.md.
Copilot Studio integration notes are in COPILOT_STUDIO_INTEGRATION.md.
Установка Copilot SQL POC
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/PhilFer1973/copilot-sql-mcp-pocFAQ
Copilot SQL POC MCP бесплатный?
Да, Copilot SQL POC MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Copilot SQL POC?
Нет, Copilot SQL POC работает без API-ключей и переменных окружения.
Copilot SQL POC — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Copilot SQL POC в Claude Desktop, Claude Code или Cursor?
Открой Copilot SQL POC на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
автор: wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
автор: madhurprashPostgres
Query your database in natural language
автор: AnthropicPostgreSQL
Read-only database access with schema inspection.
автор: modelcontextprotocolCompare Copilot SQL POC with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
