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.
npx agentmods add instructions/streamnative/streamnative-mcp-server/copilot-instructionsgit clone --depth 1 https://github.com/streamnative/streamnative-mcp-serverWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.01165 | $0.01165 |
| Opus 5 | $0.00583 | $0.00583 |
| Sonnet 5 | $0.00233 | $0.00233 |
| Haiku 4.5 | $0.00117 | $0.00117 |
Grade A, and why
streamnative-mcp-server copilot-instructions.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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Copilot instructions
Use the repo's concrete workflow and architecture, not generic Go defaults. The codebase targets Go 1.25.12 from go.mod.
Build, test, and lint
go mod verify
go mod download
go fmt ./...
go mod tidy
golangci-lint run --timeout=3m
go test -race ./...
go test -race ./pkg/mcp/builders/...
go test -v -run TestName ./pkg/...
make build
- CI expects
go fmt ./...andgo mod tidyto leave no diff behind. make buildwritesbin/snmcpfromcmd/streamnative-mcp-server/main.go.- If you add files or touch license headers, run
make license-checkandmake license-fix. - If you touch
charts/**,cmd/snmcp-e2e/**, orscripts/e2e-test.sh, also run./scripts/e2e-test.sh all. - If you change release or packaging flow, also run
go generate ./...andgoreleaser release --snapshot --clean.
High-level architecture
cmd/streamnative-mcp-server/main.godefines thesnmcpCobra CLI, adds shared config flags, and attaches thestdioandssesubcommands.pkg/cmd/mcp/mcp.goresolves config and selects one runtime mode:--key-fileenables StreamNative Cloud mode, defaults toallfeatures, and ensuresstreamnative-cloudis present if features were set explicitly.--use-external-kafkaenables Kafka-only mode, rejects extra feature flags, and infers Kafka admin, client, and schema registry features.--use-external-pulsarenables Pulsar-only mode, rejects extra feature flags, and infersall-pulsar.
pkg/cmd/mcp/server.gois the server bootstrap and tool-registration hub. It creates backend sessions and wires every Kafka, Pulsar, and StreamNative tool family into one MCP server.pkg/mcp/server.gois the thin wrapper aroundmark3labs/mcp-go; it applies default resource capabilities, recovery, and logging.- Request-scoped sessions are passed through
pkg/mcp/internal/context/ctx.go. Tool handlers are expected to retrieve Kafka, Pulsar, and StreamNative Cloud sessions from there. pkg/mcp/*_tools.gofiles are mostly registration wrappers. The actual Kafka and Pulsar tool schemas and handler logic belong inpkg/mcp/builders/{kafka,pulsar}.- StreamNative Cloud context, resource, and log tools still register from
pkg/mcp/streamnative_*_tools.go;pkg/mcp/builders/streamnative/is not the primary implementation path today. pkg/cmd/mcp/sse.goowns SSE transport, auth middleware, and health endpoints at<httpPath>/sse,<httpPath>/message,<httpPath>/healthz, and<httpPath>/readyz.- Multi-session Pulsar exists only in SSE plus external Pulsar mode.
pkg/mcp/session/caches per-token sessions, and requests must sendAuthorization: Bearer <token>. pkg/mcp/pftools/pluspkg/mcp/pulsar_functions_as_tools.godynamically expose deployed Pulsar Functions as MCP tools, so changes there alter the runtime tool surface.docs/tools/content is surfaced to MCP clients at runtime, so docs changes can be behavior-visible.
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.
- 2d ago First seen · 57 lines · 1,165 tokens per session scan A f2af9ee0d853
streamnative-mcp-server copilot-instructions.md is an instructions file published in the GitHub repository streamnative/streamnative-mcp-server (24 stars, last pushed 19d ago), licensed Apache-2.0. It adds 1,165 tokens to every session, about $0.0058 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-30.
Other instructions, from other repositories
agentic-engineering-for-apache-kafka AGENTS.md
Instructions for lensesio/agentic-engineering-for-apache-kafka, covering agents.md, project overview, project structure, skill structure conventions and kafka skills.
kafka-schema-reg-mcp AGENTS.md
Instructions for aywengo/kafka-schema-reg-mcp, covering development guidelines, prerequisites, quick setup, install dependencies and install dev dependencies (optional but recommended).
kafka-schema-reg-mcp CLAUDE.md
Instructions for aywengo/kafka-schema-reg-mcp, a project described as: A comprehensive Message Control Protocol (MCP) server for Kafka Schema Registry.
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.
buildNext
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).
next.js AGENTS.md
Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.