01-github-mcp

01-github-mcp is a cursor rule for coding agents from sfc-gh-cconner/support-rules-mcp. It costs 2,028 tokens per session, scanned A, original, Apache-2.0.

A rule requiring Snowflake source code to be accessed through GitHub’s code-search interface rather than assumed to exist locally. It maps Snowflake repositories to their purposes, including drivers, documentation, and cluster tools.

In plain words
What is it for?
Use it when locating Snowflake implementation details in repositories for connectors, the user interface, documentation, support tools, cluster runtime, or infrastructure.
Why use it?
It helps agents search the authoritative source repositories and avoid relying on missing or outdated local copies.

Cursor rule

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/sfc-gh-cconner/support-rules-mcp/01-github-mcp
Clone the repo
git clone --depth 1 https://github.com/sfc-gh-cconner/support-rules-mcp

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 01-github-mcp

README.md
[![agentmods](https://agentmods.dev/badge/rules/sfc-gh-cconner/support-rules-mcp/01-github-mcp.svg)](https://agentmods.dev/rules/sfc-gh-cconner/support-rules-mcp/01-github-mcp)
Your own site
<a href="https://agentmods.dev/rules/sfc-gh-cconner/support-rules-mcp/01-github-mcp"><img src="https://agentmods.dev/badge/rules/sfc-gh-cconner/support-rules-mcp/01-github-mcp.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,028 This file is loaded in full into every session.
When invoked 2,028 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.02028 $0.02028
Opus 5 $0.01014 $0.01014
Sonnet 5 $0.00406 $0.00406
Haiku 4.5 $0.00203 $0.00203

Measured 3d ago against content hash 0328d4f6c784, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

01-github-mcp 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 3d 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.

rules/core/01-github-mcp.mdc · 261 lines

How it starts

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

Source Code Access via GitHub MCP

PURPOSE: All Snowflake source code access must use GitHub MCP API.

🎯 Core Principle

ALWAYS use GitHub MCP for source access. NEVER assume local repositories.

📚 Repository Mapping

Core Repositories

  • Mono Repo: snowflakedb/snowflake - Core platform code
  • Python Connector: snowflakedb/snowflake-connector-python
  • Snowsight UI: snowflakedb/snapps
  • Documentation: snowflakedb/snowflake-prod-docs
  • Support Procedures: snowflakedb/support-snowhouse

Driver Repositories

  • snowflakedb/snowflake-jdbc - JDBC driver
  • snowflakedb/gosnowflake - Go driver
  • snowflakedb/snowflake-connector-nodejs - Node.js connector
  • snowflakedb/snowflake-connector-net - .NET connector
  • snowflakedb/snowpark-python - Snowpark Python
  • snowflakedb/spark-snowflake - Spark connector
  • snowflakedb/terraform-provider-snowflake - Terraform provider

SPCS Repositories

  • snowflakedb/snowctl - Cluster runtime
  • snowflakedb/k8sc-platform - Cluster add-ons
  • snowflakedb/snowflake-image-registry - Image registry
  • snowflakedb/container-images - Container tooling
  • snowflakedb/k8s-pulumi-aws - AWS provisioning
  • snowflakedb/k8s-pulumi-azure - Azure provisioning
  • snowflakedb/k8s-pulumi-gcp - GCP provisioning
  • snowflakedb/snowservices-ingress-configs - Ingress configs

Other Repositories

  • snowflakedb/snowflake-ingest-java - Snowpipe SDK
  • snowflakedb/snowflake-kafka-connector - Kafka connector
  • snowflakedb/snowflake-ml-python - ML libraries
  • snowflakedb/snowflake-cli - Snow CLI
  • snowflakedb/snowflake-vscode-extension - VS Code extension

🔍 GitHub MCP Tools

Search Code

mcp_github_search_code(
    query='"exact error message" repo:snowflakedb/snowflake',
    page=1,
    perPage=10
)

Search Query Syntax:

  • Use quotes for exact phrases: "exact error"
  • Specify repository: repo:snowflakedb/snowflake
  • Filter by language: language:java
  • Filter by path: path:GlobalServices/
  • Combine filters: "error" language:java path:Auth/
  • Boolean operators: (error OR warning OR failed)

Read the full file on GitHub · 261 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. 3d ago First seen · 261 lines · 2,028 tokens per session scan A 0328d4f6c784

Subscribe to this mod's changes

01-github-mcp is a cursor rule published in the GitHub repository sfc-gh-cconner/support-rules-mcp (0 stars, last pushed 10mo ago), licensed Apache-2.0. It adds 2,028 tokens to every session, about $0.0101 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.