scaledockhq/scaledock-skills/mcp
Claude Code and agent skill by scaledockhq/scaledock-skills
- community
Checking that the SKILL.md file is still in the repository.
Model Context Protocol (MCP) 2026-07-28: build and review MCP servers and clients against the base protocol, transports and features. Use when implementing or reviewing an MCP server, client, host, gateway or proxy: JSON-RPC messages and error codes, per-request _meta, server/discover and version negotiation, stdio and Streamable HTTP with Mcp-Method, Mcp-Name and x-mcp-header headers, multi round-trip requests (InputRequiredResult), subscriptions/listen, cancellation, progress, tools, resources, prompts, completion, pagination, caching hints, elicitation, deprecated sampling, roots and logging, security best practices, the Tasks and Skills over MCP extensions, and MCP Registry server.json. Targets MCP 2026-07-28; supports MCP 2025-11-25 and MCP 2025-06-18, upgrades from 2025-03-26 and 2024-11-05, tracks the MCP draft, and covers the MCP Tasks extension 2026-07-28, the Skills over MCP extension (stable) and server.json 2025-12-11.
Install
npx vskill@latest install scaledockhq/scaledock-skills/mcpSKILL.md
The same SKILL.md was published earlier as scaledockhq/scaledock-skills/mcp.
Model Context Protocol (MCP)
The Model Context Protocol connects LLM applications (hosts and their clients) to servers that expose tools, resources and prompts, over JSON-RPC 2.0 on stdio or Streamable HTTP. This skill pins MCP revision 2026-07-28, the stateless revision with per-request metadata and no handshake, and produces a server, client or review that meets its MUST-level rules. Authorization is covered by the mcp-authorization skill; MCP Apps (interactive UI) by the mcp-apps skill.
Follow the workflow below step by step. Every rule here comes from a source in Sources, with the page and heading it cites. MCP pages have no stable section numbers, so rules cite the page and heading name. When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.
Inputs (fill in, or ask before starting)
- Role: MCP server, MCP client or host, or an intermediary (gateway, proxy, aggregator) that does both.
- Transport: stdio, Streamable HTTP, or a custom transport.
- Features: which of tools, resources, prompts, completion, subscriptions and elicitation are in scope, and whether deprecated sampling, roots or logging must be kept for existing peers.
- Extensions and registry: whether the Tasks extension, the Skills extension, or publishing a
server.jsonto the MCP Registry is in scope. - Target version: MCP 2026-07-28 (current, the default; the revision the MCP Versioning page marks Current). MCP 2025-11-25 and MCP 2025-06-18 are supported: keep their handshake behaviour only for a named peer on that revision (a dual-era implementation). MCP 2025-03-26 and MCP 2024-11-05 are legacy: read them and upgrade from them, never author them. The MCP draft is a preview (posture: track): never emit it. Families: MCP Tasks extension 2026-07-28, Skills over MCP extension (stable) and server.json 2025-12-11 are each the current line of their family. See `references/versions.md`.
- Sources: when refreshing this skill or when a rule looks out of date, re-read the MCP Versioning page for a newer Current revision, then that revision's Key Changes and Deprecated Features pages, the draft changelog, the extension repositories and the latest registry release, then every URL in Sources. Update the pins and bump the version.
Invariants
- JSON-RPC 2.0, UTF-8, fixed directions. Request IDs are strings or integers, never
null, never reused while in flight; notifications get no response. Clients send requests; servers MUST NOT initiate JSON-RPC requests (Base Protocol, Messages; Message Patterns, Overview). - Every result has `resultType`. It is
"complete","input_required"or an advertised extension value; unknown values are invalid and a missing value from an older server means"complete"(Base Protocol, Result Responses). - No connection state. Every request carries
io.modelcontextprotocol/protocolVersionandio.modelcontextprotocol/clientCapabilitiesin_meta; servers MUST NOT rely on earlier requests on the connection and MUST reference cross-request state by an explicit identifier (Base Protocol, Statelessness and General fields:_meta). - Unsupported version and missing capability have their own errors. Return
-32022withdata.supportedanddata.requestedfor an unsupported version, and-32021withdata.requiredCapabilitiesfor an undeclared client capability. Do not emit-32002or-32042, or undefined codes in-32020to-32099(Versioning and Compatibility; Base Protocol, Error Codes). - Servers implement `server/discover` and advertise every implemented feature and extension in its
capabilities(Discovery; Architecture, Capability Negotiation). - stdio carries only MCP on stdout and stdin. One message per line, no embedded newlines; logs go to
stderr(stdio, Sending Messages and Receiving Messages). - Streamable HTTP validates and mirrors. Servers MUST validate
Origin(403 on failure). Every POST sendsMCP-Protocol-VersionandMcp-Method, plusMcp-Namewhere required, and servers that read the body MUST reject headers that disagree with it with 400 and-32020. Closing a response stream is cancellation (Streamable HTTP, Security & Endpoint, Standard Request Headers, Server Validation and Cancellation). - Only three methods may ask for input.
tools/call,prompts/getandresources/readMAY returnInputRequiredResult; the client retries withinputResponses, echoesrequestStateunchanged and uses a new request ID. Servers MUST treatrequestStateas attacker-controlled (Multi Round-Trip Requests). - Lists do not vary per connection.
tools/list,resources/listandprompts/listMUST NOT vary per connection or as a side effect of other requests; they MAY vary by authorization. Cursors are opaque (Tools, Resources and Prompts, Capabilities; Pagination). - Cacheable results carry hints. Complete results of
server/discover, the list methods andresources/readMUST includettlMsandcacheScope;"private"results MUST NOT be shared across authorization contexts, and servers MUST NOT rely oncacheScopefor access control (Caching). - Tool results separate protocol errors from execution errors. Unknown tools and malformed requests are JSON-RPC errors; execution failures are
isError: trueresults. WithoutputSchema,structuredContentMUST conform. Annotations from untrusted servers MUST be treated as untrusted (Tools, Error Handling and Data Types). - Secrets never go through form elicitation. Passwords, API keys, tokens and payment credentials MUST use URL mode; clients MUST NOT pre-fetch or open the URL without consent and MUST show it in full (Elicitation, Capabilities, URL Mode Elicitation for Sensitive Data and Safe URL Handling).
- Deprecated features stay opt-in. Sampling, roots and logging are Deprecated in 2026-07-28; new implementations SHOULD NOT adopt them, and the earliest removal is the first revision on or after 2027-07-28 (Deprecated Features; Sampling, Roots and Logging).
- Extensions are negotiated. Use an extension only when both sides advertise it; if only one side does, that side MUST fall back to core behaviour or reject (Versioning and Compatibility, Extension Negotiation).
- No token passthrough. Servers MUST NOT accept tokens not issued for them, and MCP proxy servers MUST obtain per-client consent (Security Best Practices, Token Passthrough and Confused Deputy Problem).
Workflow
- Scope the work and pick the version. Confirm role, transport and features from Inputs. Target MCP 2026-07-28; list any peers that still speak a supported older revision and decide whether to be dual-era.
-> `references/versions.md` ✓ The design names the role, transport, target revision and any legacy peers, and it is not a legacy or draft revision.
- Build the message layer. Implement JSON-RPC framing,
resultType, the error codes, the_metakeys andserver/discover.
-> `references/lifecycle-and-transports.md` ✓ A request without protocolVersion in _meta gets -32602, and an unsupported version gets -32022 with data.supported.
- Implement the transport. For stdio, framing, shutdown and the discover probe; for Streamable HTTP,
Originchecks, theAcceptrule, JSON or SSE responses, standard headers andx-mcp-header.
-> `references/lifecycle-and-transports.md` ✓ A tools/call whose Mcp-Name differs from params.name gets 400 with -32020.
- Add the server features. Tools, resources, prompts, completion, pagination and caching hints, with the per-connection list rule and error codes.
-> `references/server-features.md` ✓ An unknown resource returns -32602, never empty contents; a failing tool returns isError: true.
- Add input requests and subscriptions. Return
InputRequiredResultwhere needed with protectedrequestState; servesubscriptions/listenwith the acknowledgement first; honour cancellation and progress.
-> `references/server-features.md`, `references/lifecycle-and-transports.md` ✓ A tampered requestState is rejected, and the first message on a listen stream is notifications/subscriptions/acknowledged.
- Build the client side. Declare capabilities per request, answer input requests, implement elicitation (form and URL), and cache by method and parameters.
-> `references/client-features.md` ✓ The retry carries the original parameters, inputResponses, the unchanged requestState and a new ID, and is not cached.
- Add extensions or a registry entry if in scope. Negotiate the Tasks or Skills extension; write a
server.jsonfor the registry.
-> `references/extensions-and-registry.md` ✓ No CreateTaskResult is sent to a request that did not declare the Tasks extension, and server.json validates against the 2025-12-11 schema.
- Review security. Go through transport, tokens and proxies, SSRF and URLs, local servers and the per-feature rules.
-> `references/security.md` ✓ Each review question in the security reference has an answer or a reason it does not apply.
- Upgrade. When the code targets an older revision or extension version, apply the checklist for each adjacent pair, oldest first.
-> `references/versions.md` ✓ No initialize, session ID, batch or server-initiated request remains outside an explicit dual-era code path.
Verify before done
- [ ] Target is MCP 2026-07-28; 2025-11-25 and 2025-06-18 behaviour appears only on a dual-era path; nothing is authored for 2025-03-26, 2024-11-05 or the draft.
- [ ] Every request carries
protocolVersionandclientCapabilitiesin_meta; every result carriesresultType. - [ ]
server/discoverlists the supported versions, capabilities and extensions, with caching hints. - [ ] stdio writes only MCP to stdout; Streamable HTTP validates
Originand the standard andMcp-Paramheaders. - [ ] Lists are identical across connections for the same authorization, paginate with opaque cursors and carry
ttlMsandcacheScope. - [ ] Only
tools/call,prompts/getandresources/readreturnInputRequiredResult, andrequestStateis integrity-protected where it matters. - [ ] Tool execution errors use
isError: true;structuredContentmatchesoutputSchema. - [ ] No secrets go through form elicitation; URL elicitation follows the consent and display rules.
- [ ] Deprecated sampling, roots and logging are absent, or kept deliberately for existing peers.
- [ ] Extensions are used only when both sides advertise them.
- [ ] Authorization, if any, was checked with the
mcp-authorizationskill.
Reference index
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/mcp/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/scaledockhq/scaledock-skills/mcp)