08-mono-repo-mcp

08-mono-repo-mcp is a cursor rule for Cursor from sfc-gh-cconner/support-rules-mcp. It costs 3,234 tokens per session, scanned A, original, Apache-2.0.

A set of patterns for searching Snowflake's monorepo, a single repository containing many related projects and millions of lines of code, through GitHub. It uses GitHub API tools to search code and retrieve files without downloading the repository.

In plain words
What is it for?
Use it to search Snowflake source code, retrieve files, find repositories, and investigate areas such as Snowsight and other web applications.
Why use it?
It avoids keeping a very large local copy while helping an assistant find current source code in targeted searches.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python utils/github_mcp_helper.py api-usage.

Good fit Use it to search Snowflake source code, retrieve files, find repositories, and investigate areas such as Snowsight and other web applications.

Compare 6 cursor rules from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

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

Made for: Cursor.

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 08-mono-repo-mcp

README.md
[![agentmods](https://agentmods.dev/badge/rules/sfc-gh-cconner/support-rules-mcp/08-mono-repo-mcp/github.svg)](https://agentmods.dev/rules/sfc-gh-cconner/support-rules-mcp/08-mono-repo-mcp)
Your own site
<a href="https://agentmods.dev/rules/sfc-gh-cconner/support-rules-mcp/08-mono-repo-mcp"><img src="https://agentmods.dev/badge/rules/sfc-gh-cconner/support-rules-mcp/08-mono-repo-mcp/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 08-mono-repo-mcp

Your own site · 80×15
<a href="https://agentmods.dev/rules/sfc-gh-cconner/support-rules-mcp/08-mono-repo-mcp"><img src="https://agentmods.dev/badge/rules/sfc-gh-cconner/support-rules-mcp/08-mono-repo-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,234 This file is loaded in full into every session.
When invoked 3,234 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.03234 $0.03234
Opus 5 $0.01617 $0.01617
Sonnet 5 $0.00647 $0.00647
Haiku 4.5 $0.00323 $0.00323

Measured 10d ago against content hash 87dd4025c926, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

08-mono-repo-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 10d 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/08-mono-repo-mcp.mdc · 486 lines

How it starts

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

GitHub MCP Patterns for Mono Repo Navigation

PURPOSE: Practical patterns for navigating Snowflake mono repo using GitHub MCP API tools.

🎯 Core Concept

The Snowflake mono repo contains millions of lines of code. GitHub MCP provides API-based access to search and retrieve source code without requiring a local clone (50GB+).

Key Benefits:

  • No local repository required
  • Always up-to-date code
  • 5,000 API calls/hour limit
  • Fast, precise code search

📍 Repository Access

GitHub Repository: snowflakedb/snowflake
Access Method: GitHub MCP API tools

See also: Snowsight and Snowflake web applications in snowflakedb/snapps repository.

🔍 Essential MCP Tools

1. Code Search

mcp_github_search_code(
    query='search terms repo:snowflakedb/snowflake',
    perPage=30,  # Optional: results per page (default 30, max 100)
    page=1       # Optional: page number
)

2. File Retrieval

mcp_github_get_file_contents(
    owner="snowflakedb",
    repo="snowflake",
    path="path/to/file.java",
    ref="main"  # Optional: branch/tag/commit
)

3. Repository Search

mcp_github_search_repositories(
    query='snowflake in:name org:snowflakedb'
)

🎯 Search Strategies

Strategy 1: Error Message Investigation

Step 1 - Broad Search:

mcp_github_search_code(
    query='"exact error message from logs" repo:snowflakedb/snowflake'
)

Step 2 - Narrow by Component:

# If too many results, narrow down
mcp_github_search_code(
    query='"error message" path:GlobalServices/Auth repo:snowflakedb/snowflake'
)

Step 3 - Get Full Context:

mcp_github_get_file_contents(
    owner="snowflakedb",
    repo="snowflake",
    path="path/from/search/results.java"
)

Strategy 2: Component Investigation

Find Component Definition:

mcp_github_search_code(
    query='class NetworkPolicyDPO repo:snowflakedb/snowflake language:java'
)

Find Component Usage:

mcp_github_search_code(
    query='NetworkPolicyManager repo:snowflakedb/snowflake'
)

Read the full file on GitHub · 486 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. 10d ago First seen · 486 lines · 3,234 tokens per session scan A 87dd4025c926

Subscribe to this mod's changes

08-mono-repo-mcp is a cursor rule published in the GitHub repository sfc-gh-cconner/support-rules-mcp (0 stars, last pushed 11mo ago), licensed Apache-2.0. It adds 3,234 tokens to every session, about $0.0162 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.