Borrowing it
Nothing to install: this file belongs to streamnative/streamnative-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/streamnative/streamnative-mcp-server/main/.github/copilot-instructions.mdgit clone --depth 1 https://github.com/streamnative/streamnative-mcp-serverWrote 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.
[](https://agentmods.dev/instructions/streamnative/streamnative-mcp-server/copilot-instructions)<a href="https://agentmods.dev/instructions/streamnative/streamnative-mcp-server/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/streamnative/streamnative-mcp-server/copilot-instructions/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.
<a href="https://agentmods.dev/instructions/streamnative/streamnative-mcp-server/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/streamnative/streamnative-mcp-server/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01165 | $0.01165 |
| Opus 5.5 | $0.00466 | $0.00466 |
| Sonnet 5.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 2mo 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.
- 2mo 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 3d ago), licensed Apache-2.0. It adds 1,165 tokens to every session, about $0.0047 per session on Opus 5.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.
streamnative-mcp-server copilot-instructions.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| streamnative-mcp-server copilot-instructions.mdstreamnative/streamnative-mcp-server | Instructions file | 24 | 3d ago | Apache-2.0 | A | 1,165 | GitHub Copilot |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |