mcp-server-snowflake: Instructions file for Codex

AGENTS.md

mcp-server-snowflake AGENTS.md is an instructions file for Codex, OpenCode from christianclaudio/mcp-server-snowflake. It costs 5,653 tokens per session, scanned C, original, Apache-2.0.

Repository instructions for an MCP server that exposes Snowflake, a cloud data platform, to AI clients. The server provides tools for databases, schemas, tables, SQL queries, and related operations.

In plain words
What is it for?
Developing or modifying Snowflake MCP tools, connection handling, SQL operations, and the server’s stdio or SSE interfaces.
Why use it?
They explain the project structure, supported connection methods, and development commands so agents can work on the server consistently.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md.

This is christianclaudio/mcp-server-snowflake's own configuration. It tells Codex and OpenCode how to work on mcp-server-snowflake 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 mcp-server-snowflake configures β†’

Reuse

Borrowing it

Nothing to install: this file belongs to christianclaudio/mcp-server-snowflake. 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/christianclaudio/mcp-server-snowflake/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/christianclaudio/mcp-server-snowflake

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 mcp-server-snowflake AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/christianclaudio/mcp-server-snowflake/agents-md/github.svg)](https://agentmods.dev/instructions/christianclaudio/mcp-server-snowflake/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/christianclaudio/mcp-server-snowflake/agents-md"><img src="https://agentmods.dev/badge/instructions/christianclaudio/mcp-server-snowflake/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 mcp-server-snowflake AGENTS.md

Your own site Β· 80Γ—15
<a href="https://agentmods.dev/instructions/christianclaudio/mcp-server-snowflake/agents-md"><img src="https://agentmods.dev/badge/instructions/christianclaudio/mcp-server-snowflake/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,653 This file is loaded in full into every session.
When invoked 5,653 The same file β€” it is already loaded in full.
Security scan C 2 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.05653 $0.05653
Opus 5.5 $0.02261 $0.02261
Sonnet 5.5 $0.01131 $0.01131
Haiku 4.5 $0.00565 $0.00565

Measured today against content hash 26e34d2daf28, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

mcp-server-snowflake AGENTS.md scanned grade C with 2 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 today.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf dist && uv build && uv run python scripts/check_version.py

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

TOKEN=$(curl -s "https://ghcr.io/token?scope=repository:christianclaudio/mcp-server-snowflake:pull" | jq -r .token)
AGENTS.md Β· 143 lines

How it starts

The opening of the file, as written. The whole thing β€” 143 lines β€” stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

Instructions for AI coding agents (Antigravity, Claude Code, Copilot, Cursor, Windsurf) working on this repository.


🎯 Project Overview

This is mcp-server-snowflake β€” an Enterprise Model Context Protocol (MCP) server exposing Snowflake's Data Cloud and Cortex AI as MCP tools (the expected tool set lives in scripts/check_tool_contract.py). It runs over stdio, streamable HTTP, or the deprecated SSE transport, and is consumed by AI clients (Claude Desktop, VS Code, Antigravity, Cursor, etc.).

The default tools/list is one flat catalog of all 140 tools. RegexSearchTransform (search_tools + call_tool) is opt-in via --enable-tool-search or SNOWFLAKE_MCP_ENABLE_TOOL_SEARCH=1.


πŸ—οΈ Key Paths

  • src/snowflake_mcp/server.py β€” create_server factory; mounts each domain module with namespace=<domain>; stamps all four hints (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) in _annotate_local_tools; applies --profile and opt-in tool search.
  • src/snowflake_mcp/middleware.py β€” ParentAuditMiddleware (outermost: timing, redact_message on exception args, re-raise the same exception), ReadOnlyGateMiddleware (blocks mutating tools/call names while read-only mode is on), and ErrorHandlingMiddleware (re-raises protocol errors unchanged and redacts tool-result payloads).
  • src/snowflake_mcp/errors.py β€” template v1.6.0 whole-value redaction (redact_secrets, redact_message, redact_payload, tool_error, tool_failure, and status_error, the {"status": "error", ...} ToolError every tool handler raises) plus the Snowflake extras, and redact_error_payload / redact_error_value for tool payloads (any non-None value under a credential key is masked; JSON inside error strings keeps its shape), plus SnowflakeMCPError and AuthenticationError, ResourceNotFoundError, RateLimitError, and SafetyViolationError. Replacement text is [REDACTED]. Messages are redacted at construction.
  • src/snowflake_mcp/tools/<domain>.py β€” one module per domain (queries, databases, tables, warehouses, governance, cortex, recipes, …), each exposing register_<name>_tools(mcp, client), where <name> is usually the singular of the module (for example register_query_tools in queries.py).
  • src/snowflake_mcp/connection.py β€” SnowflakeClient (DictCursor query executor, snowflake.core.Root bridge). config.py β€” multi-auth resolver (PAT, key-pair, OAuth, user/password, connections.toml). cli.py β€” stdio / streamable-http / SSE runner (--profile, --enable-tool-search, host-origin protection on both network transports, and the exit-2 refusal of a tokenless HTTP bind to a non-localhost host). auth.py β€” SNOWFLAKE_MCP_AUTH_TOKEN bearer verifier (SharedTokenVerifier, attached by create_server) and the strict SNOWFLAKE_MCP_ALLOW_UNAUTHENTICATED_BIND opt-in.
  • scripts/check_tool_contract.py β€” source of truth for the expected tool count and annotations. Do not hard-code tool counts elsewhere.
  • scripts/check_conformance.sh + conformance-baseline.yml, scripts/check_snowflake_drift.py.
  • scripts/release_notes.py β€” release body from squash commits since the previous v* tag. scripts/check_version.py β€” runs after the build and reads the version from the single wheel in dist/ (the file that ships, as release.yml's tag check does); fails on 0.0.0 (no git metadata) or 0.0.1.devN (no reachable tag, a shallow checkout).
  • tests/ β€” offline unit, mocked, and protocol tests; live checks in tests/test_e2e_live.py behind @pytest.mark.e2e, deselected by the default pytest addopts (-m 'not e2e') and in CI. Version and release-tooling tests are tests/test_version.py, tests/test_release_notes.py, and tests/test_check_version.py. tests/test_otel_spans.py records a failing tool's OpenTelemetry spans with an in-memory exporter (per-test SDK provider, global restored) and asserts no secret appears. tests/conftest.py clears the HTTP auth env vars and the cached module-level server before every test.
  • .github/workflows/ β€” ci.yml (CI checks), release.yml (on a v* tag: build with full history, check the wheel version matches the tag, build the release notes, create the GitHub Release from scripts/release_notes.py with the wheel, sdist, and SBOM attached, then push the GHCR image only after that job succeeds, then a separate attest job with only contents: read, id-token: write and attestations: write attests dist/* and the pushed image digest; PyPI and MCP Registry publishing stay commented out, and the registry job needs attest once enabled), dependabot-automerge.yml (squash auto-merge only for Dependabot PRs whose highest update is minor or patch; major updates wait for a human review).
  • server.json (MCP Registry metadata; commits version 0.0.0 and one OCI package, the GHCR image, whose tag lives in identifier), Dockerfile, pyproject.toml (console scripts mcp-server-snowflake and snowflake-mcp).

Read the full file on GitHub Β· 143 lines

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. today Changed Β· +1 lines Β· +302 tokens per session 26e34d2daf28
  2. 2d ago Changed 7c161325c36a
  3. 6d ago Changed Β· +6 lines Β· +625 tokens per session b871cff4230b
  4. 9d ago Changed ebca975069f0
  5. 13d ago Changed Β· +66 tokens per session c25813133265
  6. 17d ago Changed Β· +548 tokens per session 44011b3f21ba
  7. 19d ago Changed Β· +31 lines Β· +1,785 tokens per session scan A β†’ C acf905062f67
  8. 20d ago Changed Β· +25 lines Β· +1,231 tokens per session 38ea2461ec00
  9. 22d ago Changed Β· -40 lines Β· -613 tokens per session d268fb5d70af
  10. 24d ago First seen Β· 120 lines Β· 1,709 tokens per session scan A 89d852464138

Subscribe to this mod's changes

mcp-server-snowflake AGENTS.md is an instructions file published in the GitHub repository christianclaudio/mcp-server-snowflake (1 stars, last pushed today), licensed Apache-2.0. It adds 5,653 tokens to every session, about $0.0226 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). 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

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 Β· 9,715 tokens

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,461 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, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode Β· 5,262 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,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode Β· 2,731 tokens

vscode model-prompts.instructions.md

Model-specific prompt authoring and registry guidelines.

microsoft/vscode Β· 2,022 tokens