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 skills add tenequm/skills --skill mcp-best-practicesgit clone --depth 1 https://github.com/tenequm/skillsWrote 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/skills/tenequm/skills/mcp-best-practices)<a href="https://agentmods.dev/skills/tenequm/skills/mcp-best-practices"><img src="https://agentmods.dev/badge/skills/tenequm/skills/mcp-best-practices/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/skills/tenequm/skills/mcp-best-practices"><img src="https://agentmods.dev/badge/skills/tenequm/skills/mcp-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00060 | $0.09737 |
| Opus 5.5 | $0.00024 | $0.03895 |
| Sonnet 5.5 | $0.00012 | $0.01947 |
| Haiku 4.5 | $0.00006 | $0.00974 |
Grade B, and why
mcp-best-practices scanned grade B with 2 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 24d 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.
Unrestricted tool accessmediumExcessive agency
A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.
- **v1 stamps every tool schema `"$schema": "http://json-schema.org/draft-07/schema#"`** (still true on 1.32.1), and a strict 2020-12 client rejects the whole tool: *"JSON Schema declares an unsupported dialect ... The d Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
async fetch(request: Request): Promise<Response> { How it starts
The opening of the file, as written. The whole thing — 414 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MCP Best Practices
Decision reference for building production MCP servers with the TypeScript SDK. Not a tutorial - assumes you already have a working server and need to make it correct, fast, and secure.
Quick Reference
| Component | Current | Notes |
|---|---|---|
| Spec (released) | 2026-07-28 (specification) | Stateless/sessionless overhaul - see "Spec 2026-07-28" below and references/spec-2026-07-28.md |
| Spec (still deployed) | 2025-11-25 | Still the bulk of deployed software and the TS client default - but Claude Code now negotiates 2026-07-28 with HTTP servers that offer it |
| TS SDK (current) | v2.3.1 (2026-10-05): /server, /client, /core 2.3.1; /node 2.1.1, /express + /hono 2.0.2, /fastify 2.0.1 (no longer lockstep) |
createMcpHandler serves both eras by default; the client speaks 2025-era unless told otherwise |
| TS SDK (legacy) | v1.32.1 (@modelcontextprotocol/sdk) |
Bug + security fixes for >=6 months after v2 GA, never a revision past 2025-11-25; source on the v1.x branch |
| JSON Schema | 2020-12 default (2019-09 / draft-07 accepted since v2.0.0) | - |
| Transport | Streamable HTTP (remote), stdio (local) | SSE + WebSocket removed in v2 |
| Extensions | MCP Apps (Stable, SEP-1865), Auth Extensions (official), Tasks (ext-tasks) | Domain-specific WGs |
| Registry | Preview with v0.1 API freeze since 2025-10-24 (registry) | GA pending |
v2 imports (current):
import { McpServer } from "@modelcontextprotocol/server";
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/server";
import { ProtocolError, ProtocolErrorCode } from "@modelcontextprotocol/core";
v1 imports (legacy line, still widely deployed):
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
What ships with it
10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- CHANGELOG.md 34 KB
- references/error-handling.md 13 KB
- references/extensions-registry.md 19 KB
- references/mcp-apps.md 13 KB
- references/sdk-bugs.md 9.9 KB
- references/security-auth.md 30 KB
- references/spec-2026-07-28.md 32 KB
- references/tool-schema-guide.md 31 KB
- references/transport-patterns.md 21 KB
- references/v2-migration.md 28 KB
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.
- 24d ago Changed 1a808e44841e
- 1mo ago Changed · +15 lines b80d127fd43e
- 2mo ago Changed · +15 lines · -27 tokens per session scan A → B f74376d01d2e
- 3mo ago First seen · 384 lines · 87 tokens per session scan A 6c3d17d90a2d
mcp-best-practices is a skill published in the GitHub repository tenequm/skills (39 stars, last pushed 2d ago), licensed MIT. It adds 60 tokens to every session and 9,737 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 2 findings (unrestricted tool access, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
mcp-best-practices compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mcp-best-practicestenequm/skills | Skill | 39 | 2d ago | MIT | B | 60 | Claude Code, Codex |
| build-mcp-serveranthropics/claude-plugins-official | Skill | 49k | yesterday | Apache-2.0 | A | 111 | Claude Code |
| data-manager-api-troubleshootinggoogle/skills | Skill | 25k | today | Apache-2.0 | A | 179 | Claude Code, Codex |
| data-manager-api-setupgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 118 | Claude Code, Codex |
| vss-manage-video-io-storageNVIDIA-AI-Blueprints/video-search-and-summarization | Skill | 2.0k | yesterday | Apache-2.0 | A | 143 | Claude Code, Codex |
| workers-best-practicescloudflare/skills | Skill | 3.5k | 4d ago | Apache-2.0 | A | 25 | Claude Code |
| vss-search-archiveNVIDIA-AI-Blueprints/video-search-and-summarization | Skill | 2.0k | yesterday | Apache-2.0 | A | 67 | Claude Code, Codex |