Connect_MSSQL_MCP: Instructions file for Codex

AGENTS.md

Connect_MSSQL_MCP AGENTS.md is an instructions file for Codex, OpenCode from XingCheng3/Connect_MSSQL_MCP. It costs 673 tokens per session, scanned A, original, ISC.

Project instructions for Connect MSSQL MCP, a server that lets AI assistants query Microsoft SQL Server and inspect tables, procedures, and views. MCP is a standard way for AI assistants to use external tools.

In plain words
What is it for?
Use them when developing or checking the TypeScript server, building it, running it, or manually testing database queries and metadata tools.
Why use it?
They document the available database operations and require connection details to be supplied for each request, helping avoid hidden or unsafe configuration.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is XingCheng3/Connect_MSSQL_MCP's own configuration. It tells Codex and OpenCode how to work on Connect_MSSQL_MCP itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Connect_MSSQL_MCP configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/XingCheng3/Connect_MSSQL_MCP/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/XingCheng3/Connect_MSSQL_MCP

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for Connect_MSSQL_MCP AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/xingcheng3/connect_mssql_mcp/agents-md/github.svg)](https://agentmods.dev/instructions/xingcheng3/connect_mssql_mcp/agents-md)
Your own site
<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.

agentmods 80×15 button for Connect_MSSQL_MCP AGENTS.md

Your own site · 80×15
<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>
Per session 673 This file is loaded in full into every session.
When invoked 673 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 8d ago against content hash 1100870a61e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

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.

AGENTS.md · 40 lines

What it actually says

Repository Guidelines(仓库贡献指南)

项目结构与模块

  • src/index.ts:MCP 服务器入口与工具处理器(queryget_table_structureget_procedure_contentget_view_definition)。
  • dist/:TypeScript 编译输出目录(由 npm run build 生成)。
  • package.json:脚本与依赖;tsconfig.json:ES2022、ESM(NodeNext)、严格类型。
  • 不使用 .env 作为运行配置;所有连接参数必须由调用方在每次请求中显式传入(ipuserpassword 必填,portdatabase 可选)。

构建、运行与开发

  • 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,类/类型用 PascalCasesrc/ 下文件名建议小写(如 tools.ts)。
  • 结构:保留 index.ts 为入口;新增工具逻辑请拆分为小型模块置于 src/ 并在入口集中注册。

测试指南

  • 暂未配置测试框架;请运行 npm run dev 并通过 MCP 客户端手动验证各工具。
  • 优先使用参数化查询,避免对标识符或值进行字符串拼接。

提交与 PR 规范

  • 提交信息建议遵循 Conventional Commits,使用祈使语与作用域。
    • 例:feat(server): 添加 get_view_definition 工具fix(sql): 优化错误映射
  • PR 请包含:变更摘要、关联 issue、复现与验证步骤、已脱敏的 SQL 示例;确认未提交任何敏感信息。

安全与配置提示

  • 每次调用需传入连接参数:ipuserpassword(必填),port/database(可选)。本项目不依赖 .env
  • 目前默认 encrypt: falsetrustServerCertificate: true 便于开发;生产环境请启用 TLS(encrypt: true)并校验证书。
  • 处理中文字符串时请使用 N'…' 字面量前缀(如 N'中文')。
Changes

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.

  1. 8d ago First seen · 40 lines · 673 tokens per session scan A 1100870a61e0

Subscribe to this mod's changes

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.

Related

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.

vercel/next.js · 7,296 tokens

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.

openai/codex · 5,153 tokens

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).

microsoft/vscode · 6,785 tokens

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).

microsoft/vscode · 5,001 tokens

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.

langchain-ai/langchain · 4,469 tokens

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.

github/spec-kit · 7,104 tokens