Borrowing it
Nothing to install: this file belongs to XingCheng3/Connect_MSSQL_MCP. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/XingCheng3/Connect_MSSQL_MCP/main/AGENTS.mdgit clone --depth 1 https://github.com/XingCheng3/Connect_MSSQL_MCPWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/xingcheng3/connect_mssql_mcp/agents-md)<a href="https://agentmods.dev/instructions/xingcheng3/connect_mssql_mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/xingcheng3/connect_mssql_mcp/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/xingcheng3/connect_mssql_mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/xingcheng3/connect_mssql_mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00673 | $0.00673 |
| Opus 5 | $0.00336 | $0.00336 |
| Sonnet 5 | $0.00135 | $0.00135 |
| Haiku 4.5 | $0.00067 | $0.00067 |
Grade A, and why
Connect_MSSQL_MCP AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Repository Guidelines(仓库贡献指南)
项目结构与模块
src/index.ts:MCP 服务器入口与工具处理器(query、get_table_structure、get_procedure_content、get_view_definition)。dist/:TypeScript 编译输出目录(由npm run build生成)。package.json:脚本与依赖;tsconfig.json:ES2022、ESM(NodeNext)、严格类型。- 不使用
.env作为运行配置;所有连接参数必须由调用方在每次请求中显式传入(ip、user、password必填,port、database可选)。
构建、运行与开发
npm run dev:使用tsx在开发模式下通过 stdio 启动,供 MCP 客户端连接。npm run build:使用tsc编译到dist/。npm start:从dist/index.js运行已编译服务器。
示例(调用 query 工具):
{
"name": "query",
"arguments": {"ip":"127.0.0.1","user":"sa","password":"***","database":"master","query":"SELECT 1 AS x"}
}
代码风格与命名
- 使用 TypeScript + ESM(NodeNext),启用
strict;统一 2 空格缩进。 - 命名:变量/函数用
camelCase,类/类型用PascalCase;src/下文件名建议小写(如tools.ts)。 - 结构:保留
index.ts为入口;新增工具逻辑请拆分为小型模块置于src/并在入口集中注册。
测试指南
- 暂未配置测试框架;请运行
npm run dev并通过 MCP 客户端手动验证各工具。 - 优先使用参数化查询,避免对标识符或值进行字符串拼接。
提交与 PR 规范
- 提交信息建议遵循 Conventional Commits,使用祈使语与作用域。
- 例:
feat(server): 添加 get_view_definition 工具,fix(sql): 优化错误映射。
- 例:
- PR 请包含:变更摘要、关联 issue、复现与验证步骤、已脱敏的 SQL 示例;确认未提交任何敏感信息。
安全与配置提示
- 每次调用需传入连接参数:
ip、user、password(必填),port/database(可选)。本项目不依赖.env。 - 目前默认
encrypt: false、trustServerCertificate: true便于开发;生产环境请启用 TLS(encrypt: true)并校验证书。 - 处理中文字符串时请使用
N'…'字面量前缀(如N'中文')。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 40 lines · 673 tokens per session scan A 1100870a61e0
Connect_MSSQL_MCP AGENTS.md is an instructions file published in the GitHub repository XingCheng3/Connect_MSSQL_MCP (2 stars, last pushed 6mo ago), licensed ISC. It adds 673 tokens to every session, about $0.0034 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.