ingest-java

A set of investigation rules for Snowflake's Java data-ingestion software. Data ingestion means moving rows or files into Snowflake, either continuously or in batches.

In plain words
What is it for?
Use it to investigate streaming row insertion, channel management, file loading with Snowpipe, load history, REST calls, and key-pair authentication.
Why use it?
It helps developers find the relevant client, channel, authentication, and reporting code without knowing the SDK's structure.

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/ingest-java
Clone the repo
git clone --depth 1 https://github.com/sfc-gh-cconner/support-rules-mcp
Per session 671 This file is loaded in full into every session.
When invoked 671 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.00671 $0.00671
Opus 5 $0.00336 $0.00336
Sonnet 5 $0.00134 $0.00134
Haiku 4.5 $0.00067 $0.00067

Measured yesterday against content hash bf7edb72a921, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ingest-java 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 yesterday.

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/connectors/ingest-java.mdc · 102 lines

How it starts

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

Snowflake Ingest Java SDK Investigation Guide

PURPOSE: Snowflake Ingest SDK for Java patterns for high-throughput data ingestion.

Access Method: GitHub MCP API tools
Repository: snowflakedb/snowflake-ingest-java

🔍 Quick Investigation Patterns

Streaming Ingest

# Streaming client
mcp_github_search_code(
    query='SnowflakeStreamingIngestClient repo:snowflakedb/snowflake-ingest-java'
)

# Channel management
mcp_github_search_code(
    query='SnowflakeStreamingIngestChannel OR openChannel repo:snowflakedb/snowflake-ingest-java'
)

# Row insertion
mcp_github_search_code(
    query='insertRow OR insertRows repo:snowflakedb/snowflake-ingest-java'
)

Snowpipe SDK

# Snowpipe client
mcp_github_search_code(
    query='SimpleIngestManager OR ingestFile repo:snowflakedb/snowflake-ingest-java'
)

# File ingestion
mcp_github_search_code(
    query='loadHistoryScan OR getHistory repo:snowflakedb/snowflake-ingest-java'
)

# REST API calls
mcp_github_search_code(
    query='insertReport OR loadReport repo:snowflakedb/snowflake-ingest-java'
)

Authentication

# Key pair auth
mcp_github_search_code(
    query='KeyPairAuth OR PrivateKey repo:snowflakedb/snowflake-ingest-java'
)

# OAuth
mcp_github_search_code(
    query='OAuth OR bearerToken repo:snowflakedb/snowflake-ingest-java'
)

🎯 Key Components

Core Classes

# Streaming client
mcp_github_get_file_contents(
    owner="snowflakedb", repo="snowflake-ingest-java",
    path="src/main/java/net/snowflake/ingest/streaming/SnowflakeStreamingIngestClient.java"
)

# Snowpipe manager
mcp_github_get_file_contents(
    owner="snowflakedb", repo="snowflake-ingest-java",
    path="src/main/java/net/snowflake/ingest/SimpleIngestManager.java"
)

🗺️ Directory Structure

src/main/java/net/snowflake/ingest/
├── streaming/          # Streaming ingest
│   ├── SnowflakeStreamingIngestClient.java
│   └── SnowflakeStreamingIngestChannel.java
├── SimpleIngestManager.java  # Snowpipe
├── connection/         # Connection management
└── utils/             # Utilities

Read the full file on GitHub · 102 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. yesterday First seen · 102 lines · 671 tokens per session scan A bf7edb72a921

Subscribe to this mod's changes

ingest-java 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 671 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.