agentsclimarketplace

Mcp knowledge

Skill 46ki75/yaarr/skills/mcp-knowledge

Expert guidance for the Model Context Protocol (MCP), the JSON-RPC 2.0 protocol connecting LLM apps to tools and data. Covers official versions 2024-11-05 through 2026-07-28, including modern stateless request metadata, `server/discover`, MRTR, subscriptions, extension negotiation, transports, Resources, Prompts, Tools, and Elicitation, plus legacy initialization, sessions, Sampling, Roots, and Tasks. Also covers the Rust SDK `rmcp` 2.2 and the TypeScript SDK `@modelcontextprotocol/sdk`, including the `pkce-challenge` bundler failure. Use when building or debugging MCP clients, servers, transports, authorization, or SDK integrations. Always invoke for questions mentioning MCP, modelcontextprotocol, `rmcp`, tools/list, tools/call, server/discover, subscriptions/listen, MRTR, resultType, Streamable HTTP, Mcp-Session-Id, or `@modelcontextprotocol/sdk`.From its SKILL.md

Install
npx -y skills add 46ki75/yaarr --skill mcp-knowledge

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

24.4 KB, as published. Nobody here has run it

MCP Skill

You are an expert in the Model Context Protocol (MCP) — an open, JSON-RPC 2.0 based protocol that standardizes how LLM applications (hosts) connect to external data sources and tools (servers). MCP revisions through 2025-11-25 use stateful sessions established by initialize; 2026-07-28 removes protocol sessions and makes each request self-contained. Always distinguish these eras before giving implementation guidance.

What MCP Is

MCP follows a client-host-server architecture. A host (e.g., an IDE or chat app) runs clients that communicate with servers exposing Resources, Prompts, and Tools. In 2026-07-28, clients send protocol version and capabilities on every request; servers return client-input needs through Multi Round-Trip Requests (MRTR), rather than initiating JSON-RPC requests. The protocol supports stdio, Streamable HTTP, and custom transports.

Versions

There are five public versions:

VersionStatusKey additions
2024-11-05First releasestdio + HTTP/SSE transports; Resources, Prompts, Tools, Sampling, Roots; Pagination, Logging, Cancellation, Ping, Progress, Completion
2025-03-26StableOAuth 2.1 authorization; Streamable HTTP transport; JSON-RPC batching; tool annotations; audio content type; completions capability
2025-06-18StableElicitation; structured tool output; resource links in tool results; OAuth Resource Server classification; RFC 8707 Resource Indicators; MCP-Protocol-Version header; removed batching; title field; _meta expansion
2025-11-25StableTasks utility; OpenID Connect discovery; tool/resource/prompt icons; incremental scope consent; URL-mode elicitation; tool calling in sampling; OAuth Client ID Metadata Documents
2026-07-28Latest stableStateless requests; discovery; MRTR; subscriptions; caching; extensions; deprecations

Use 2026-07-28 for new protocol designs, but verify that the selected SDK and peer implementations support it. Use 2025-11-25 when interoperability requires the legacy initialization/session model. Never mix wire semantics from the two eras.

Core Concepts

  • Host — the LLM application; manages client lifecycle and user consent
  • Client — created by the host; sends requests to a server
  • Server — exposes Resources, Prompts, or Tools; may request Sampling
  • Capability declaration — sent during initialize through 2025-11-25; sent in _meta.io.modelcontextprotocol/clientCapabilities on every 2026-07-28 request
  • Discovery — server/discover advertises modern server versions, capabilities, and identity; clients may also negotiate by handling UnsupportedProtocolVersionError
  • Resources — application-driven context: files, DB schemas, live data (URI-addressed)
  • Prompts — user-triggered prompt templates with optional arguments
  • Tools — model-controlled functions that call external systems
  • MRTR — 2026-07-28 server input requests are embedded in InputRequiredResult, then answered by retrying the original request with inputResponses and new JSON-RPC ID
  • Subscriptions — subscriptions/listen carries opted-in change notifications
  • Sampling — client-provided LLM completions; deprecated in 2026-07-28
  • Roots — client-declared filesystem boundaries; deprecated in 2026-07-28
  • Elicitation — server requests structured input from the user via the client (2025-06-18+)
  • Tasks — experimental core feature in 2025-11-25; redesigned as the negotiated io.modelcontextprotocol/tasks extension in 2026-07-28

Reference Files

Each reference file is the full official MDX document for that topic, converted from submodules/modelcontextprotocol/docs/specification/ or the official extensions docs.

2024-11-05

FileContent
references/2024-11-05/architecture.mdClient-host-server architecture, design principles, message types, capability negotiation
references/2024-11-05/lifecycle.mdConnection lifecycle: initialization, operation, shutdown; version negotiation
references/2024-11-05/transports.mdstdio transport; HTTP+SSE transport; custom transports
references/2024-11-05/resources.mdResources: list, read, templates, subscriptions, URI schemes
references/2024-11-05/prompts.mdPrompts: list, get, listChanged; message content types
references/2024-11-05/tools.mdTools: list, call, listChanged; inputSchema; error handling
references/2024-11-05/sampling.mdSampling: createMessage, modelPreferences, hints, human-in-the-loop
references/2024-11-05/roots.mdRoots: list, listChanged; file:// URI constraint
references/2024-11-05/logging.mdLogging: setLevel, notifications/message; syslog severity levels
references/2024-11-05/pagination.mdCursor-based pagination for list operations
references/2024-11-05/completion.mdArgument autocompletion: completion/complete, ref/prompt, ref/resource
references/2024-11-05/cancellation.mdRequest cancellation via notifications/cancelled
references/2024-11-05/ping.mdPing/pong for connection health
references/2024-11-05/progress.mdProgress tracking via progressToken and notifications/progress

2025-03-26

FileContent
references/2025-03-26/changelog.mdDelta from 2024-11-05: OAuth 2.1, Streamable HTTP, tool annotations, audio, completions capability
references/2025-03-26/architecture.mdArchitecture (unchanged)
references/2025-03-26/lifecycle.mdLifecycle (unchanged)
references/2025-03-26/transports.mdStreamable HTTP (POST/GET/SSE, session management, resumability, backwards compatibility)
references/2025-03-26/authorization.mdOAuth 2.1: authorization code, PKCE, dynamic client registration, metadata discovery
references/2025-03-26/resources.mdResources (unchanged)
references/2025-03-26/prompts.mdPrompts (unchanged)
references/2025-03-26/tools.mdTools: adds annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); audio content
references/2025-03-26/sampling.mdSampling: adds audio content type
references/2025-03-26/roots.mdRoots (unchanged)
references/2025-03-26/logging.mdLogging (unchanged)
references/2025-03-26/pagination.mdPagination (unchanged)
references/2025-03-26/completion.mdCompletion (unchanged; server must declare completions capability)
references/2025-03-26/cancellation.mdCancellation (unchanged)
references/2025-03-26/ping.mdPing (unchanged)
references/2025-03-26/progress.mdProgress: adds optional message field

2025-06-18

FileContent
references/2025-06-18/changelog.mdDelta from 2025-03-26: elicitation, structured output, resource links, OAuth RS, RFC 8707, MCP-Protocol-Version, batching removed
references/2025-06-18/architecture.mdArchitecture (unchanged)
references/2025-06-18/lifecycle.mdLifecycle: initialized notification is now MUST
references/2025-06-18/transports.mdTransports: MCP-Protocol-Version header required; batching removed
references/2025-06-18/authorization.mdAuthorization: OAuth Resource Server classification; RFC 8707 resource indicators
references/2025-06-18/resources.mdResources: adds title field
references/2025-06-18/prompts.mdPrompts: adds title field
references/2025-06-18/tools.mdTools: structured output (outputSchema, structuredContent); resource links; title field
references/2025-06-18/sampling.mdSampling (unchanged)
references/2025-06-18/roots.mdRoots (unchanged)
references/2025-06-18/elicitation.mdElicitation: elicitation/create, requestedSchema, accept/decline/cancel
references/2025-06-18/logging.mdLogging (unchanged)
references/2025-06-18/pagination.mdPagination (unchanged)
references/2025-06-18/completion.mdCompletion: adds context field for dependent completions
references/2025-06-18/cancellation.mdCancellation (unchanged)
references/2025-06-18/ping.mdPing (unchanged)
references/2025-06-18/progress.mdProgress (unchanged)

2025-11-25

FileContent
references/2025-11-25/changelog.mdDelta from 2025-06-18: Tasks, OIDC discovery, icons, URL elicitation, tool calling in sampling, Client ID Metadata Documents
references/2025-11-25/architecture.mdArchitecture (unchanged)
references/2025-11-25/lifecycle.mdLifecycle (unchanged)
references/2025-11-25/transports.mdTransports: OIDC discovery; Client ID Metadata Documents; incremental scope consent; SSE polling
references/2025-11-25/authorization.mdAuthorization: OIDC discovery; OAuth Client ID Metadata Documents; incremental scope consent
references/2025-11-25/resources.mdResources: adds icon field
references/2025-11-25/prompts.mdPrompts: adds icon field
references/2025-11-25/tools.mdTools: adds icon field; tool name guidance; input validation as tool execution errors
references/2025-11-25/sampling.mdSampling: tool calling in sampling (tools, toolChoice); sampling.tools capability
references/2025-11-25/roots.mdRoots (unchanged)
references/2025-11-25/elicitation.mdElicitation: URL mode; updated ElicitResult and EnumSchema
references/2025-11-25/logging.mdLogging: stdio servers may use stderr for all log levels
references/2025-11-25/pagination.mdPagination (unchanged)
references/2025-11-25/completion.mdCompletion (unchanged)
references/2025-11-25/cancellation.mdCancellation (unchanged)
references/2025-11-25/ping.mdPing (unchanged)
references/2025-11-25/progress.mdProgress (unchanged)
references/2025-11-25/tasks.mdTasks (experimental): durable state machines, polling, deferred results, tasks/get, tasks/cancel

2026-07-28

This revision is a breaking transition from legacy session semantics to modern, stateless request semantics. Start with the changelog and versioning references before reading an individual feature file.

  • Start with changelog.md, protocol.md, and versioning.md for migration, stateless request metadata, result types, extension negotiation, and dual-era fallback.
  • Read discovery.md for server/discover; architecture.md for modern request flows; and deprecated.md for feature status and migration paths.
  • Read transports.md, stdio.md, or streamable-http.md for transport rules.
  • Read mrtr.md for InputRequiredResult and secure requestState handling; read subscriptions.md for opted-in change notification streams.
  • Read authorization.md, authorization-discovery.md, client-registration.md, and authorization-security.md for OAuth.
  • Read tools.md, resources.md, prompts.md, or elicitation.md for the corresponding core feature and its MRTR behavior.
  • Read caching.md for ttlMs and cacheScope; read tasks-extension.md for the redesigned io.modelcontextprotocol/tasks extension.
  • Read extensions.md for extension identifiers, negotiation, lifecycle, and graceful degradation. Read schema.ts for authoritative wire types.
  • Read sampling.md, roots.md, or logging.md only for retained deprecated behavior. The remaining utilities are in completion.md, pagination.md, cancellation.md, and progress.md.

The release's Tasks overview preserves references to its experimental incubator, but also links the current official repository: https://github.com/modelcontextprotocol/ext-tasks. Prefer the official repository for current extension implementation details.

When to Read Which Files

For 2026-07-28 questions, use the modern routing list above. In particular, read protocol.md plus versioning.md before advising on sessions or initialization; mrtr.md before advising on elicitation, sampling, or roots; and tasks-extension.md instead of the legacy core tasks.md.

User is asking about...Read
Migrating protocol versionsreferences/{target-version}/changelog.md
MCP architecture / design principlesreferences/{version}/architecture.md
Legacy initialization / sessionsreferences/2025-11-25/lifecycle.md (or earlier)
stdio transportreferences/{version}/transports.md
HTTP+SSE transportreferences/2024-11-05/transports.md
Legacy Streamable HTTP / Mcp-Session-Idreferences/2025-11-25/transports.md (or earlier)
OAuth 2.1 authorizationreferences/2025-03-26/authorization.md (or later)
OAuth Resource Server / RFC 8707references/2025-06-18/authorization.md (or later)
Legacy OIDC / Client ID Metadatareferences/2025-11-25/authorization.md
Resources (list/read/subscribe)references/{version}/resources.md
Prompts (list/get)references/{version}/prompts.md
Tools (list/call/annotations)references/{version}/tools.md
Structured tool outputreferences/2025-06-18/tools.md (or later)
Resource links in tool resultsreferences/2025-06-18/tools.md (or later)
Icons on tools/resources/promptsreferences/2025-11-25/tools.md (or resources/prompts)
Sampling (createMessage, modelPreferences)references/{version}/sampling.md
Legacy tool calling inside samplingreferences/2025-11-25/sampling.md
Roots (filesystem boundaries)references/{version}/roots.md
Elicitation (server→user input)references/2025-06-18/elicitation.md (or later)
Legacy URL-mode elicitationreferences/2025-11-25/elicitation.md
Loggingreferences/{version}/logging.md
Paginationreferences/{version}/pagination.md
Argument autocompletionreferences/{version}/completion.md
Cancellationreferences/{version}/cancellation.md
Ping / connection healthreferences/{legacy-version}/ping.md
Progress notificationsreferences/{version}/progress.md
Legacy core Tasksreferences/2025-11-25/tasks.md
Rust SDK (rmcp) — anything Rust-specificreferences/rust-sdk/overview.md (indexes the rest)
Upgrading rmcp 2.0 through 2.2references/rust-sdk/migration-2.2.md
TypeScript SDK build/bundler errorsreferences/typescript-sdk/pkce-challenge.md

Language SDK Guides

Beyond the spec itself, this skill ships reference material for the official MCP SDKs. The depth differs by language: the Rust SDK has a full user guide; the TypeScript SDK currently only documents one well-known build-time quirk. These materials are language-specific — Rust guidance does not apply to TypeScript and vice versa. They are pinned to their documented SDK versions and legacy protocol behavior; do not infer 2026-07-28 support from the SDK guides. Check the SDK's declared protocol support before translating the latest specification into SDK code.

SDKStart here
Rust — rmcp crate (comprehensive guide)references/rust-sdk/overview.md, then drill via references/rust-sdk/doc-index.md
TypeScript — @modelcontextprotocol/sdkreferences/typescript-sdk/pkce-challenge.md (Vite/bundler pkce-challenge resolver fix)

Rust SDK (rmcp) at a glance

references/rust-sdk/overview.md covers workspace orientation, version / stability notes (Tier 2 conformance — some 2025-11-25 features are still in motion), Cargo feature flags, and the smallest viable server and client. From there, references/rust-sdk/doc-index.md indexes every per-feature file: server primitives (tools, prompts, resources, tasks, sampling, elicitation, roots, transports), client features (handler, requests, sampling, elicitation, roots, transports, testing), and the shared Cargo feature-flags.md. The canonical local example is crates/mcp-server/; the pinned upstream source of truth is submodules/mcp-rust-sdk/.

TypeScript SDK (@modelcontextprotocol/sdk)

Currently scoped to one entry — the Vite/Rollup/Webpack resolver error for pkce-challenge in browser/SSR builds, with a stub-alias workaround. See references/typescript-sdk/pkce-challenge.md. New TypeScript-SDK quirks should be added as sibling files under references/typescript-sdk/.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.