model-context-protocol-in-practice
/model-context-protocol-in-practice
Use when designing, building, securing, testing or running Model Context Protocol (MCP) servers and clients with the Python SDK, or when moving a 2025-era MCP server to the pinned revision. Covers wrapping an existing HTTP API as tools, resources and prompts; choosing which primitive each capability uses; asking the user mid-call; serving over Streamable HTTP; long-running tasks; OAuth authorization; security controls; building a host that works through a ticket queue; testing and tracing; and migration.
- Author
- rollingedition ↗
- Repository
- agent-skills ↗
- Licence
- CC-BY-4.0
- Last repository change
- 13.11.2026
Assessment and security
- Files in this package
- 157
- Scripts
- 70
- HTML comments
- 0
- URLs in SKILL.md
- 7
No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.
CC-BY-4.0, otwarta.
- 70 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/annotate-the-refund-tool.py, scripts/api-call-versus-tool-call.py, scripts/attach-a-policy-resource.py, scripts/cache-the-tool-list.py, scripts/call-order-status.py, scripts/cancel-the-stock-recount.py, scripts/complete-order-ids.py, scripts/confused-deputy-refund.py, scripts/connect-two-servers.py, scripts/consent-gate.py, scripts/declare-the-tasks-extension.py, scripts/deprecate-a-tool.p
What it does and when to use it
Use when designing, building, securing, testing or running Model Context Protocol (MCP) servers and clients with the Python SDK, or when moving a 2025-era MCP server to the pinned revision. Covers wrapping an existing HTTP API as tools, resources and prompts; choosing which primitive each capability uses; asking the user mid-call; serving over Streamable HTTP; long-running tasks; OAuth authorization; security controls; building a host that works through a ticket queue; testing and tracing; and migration.
Original author description
Use when designing, building, securing, testing or running Model Context Protocol (MCP) servers and clients with the Python SDK, or when moving a 2025-era MCP server to the pinned revision. Covers wrapping an existing HTTP API as tools, resources and prompts; choosing which primitive each capability uses; asking the user mid-call; serving over Streamable HTTP; long-running tasks; OAuth authorization; security controls; building a host that works through a ticket queue; testing and tracing; and migration.
How it works
- How to use this skill
- Wrap an existing API as an MCP server
- Choose a primitive for each capability
- Design a tool the model can use
- Serve documents as resources and workflows as prompts
- Ask the user mid-call without holding the connection
- Serve over Streamable HTTP
- Run long work as a task
- Authorize clients with OAuth
- Secure tools against misuse
SKILL.md preview
--- name: model-context-protocol-in-practice description: "Use when designing, building, securing, testing or running Model Context Protocol (MCP) servers and clients with the Python SDK, or when moving a 2025-era MCP server to the pinned revision. Covers wrapping an existing HTTP API as tools, resources and prompts; choosing which primitive each capability uses; asking the user mid-call; serving over Streamable HTTP; long-running tasks; OAuth authorization; security controls; building a host that works through a ticket queue; testing and tracing; and migration." license: CC-BY-4.0 compatibility: "Python 3.12.15 and the pinned packages in scripts/requirements.txt; the scripts run offline." metadata: publisher: "Rolling Edition" book: "Model Context Protocol in Practice" edition: "2026.11.10" verified: "2026-11-10" examples: "70 of 70 examples pass" edition-code: "H239-A01C" source: "https://rollingedition.com/model-context-protocol-in-practice" --- # Model Context Protocol in Practice This agent skill is *Model Context Protocol in Practice*, Edition 2026.11.10, from Rolling Edition. Examples passed Nov 10, 2026: 70 of 70 examples pass. It's built from that edition, never written separately: the procedures below come from the book's sections, `references/` holds each chapter, and `scripts/` holds the examples as the edition ran them. ## How to use this skill - **Pick the procedure that fits the task,** and follow its steps in order. Each step links the section it comes from: read that section in `references/` before you act on it, and adapt it to the project in front of you. - **Check against the book.** Each example in `scripts/` has its expected output beside it (`.out`), at the versions in `scripts/requirements.txt`. If the project uses other versions, say so before relying on a step. - **Is this copy current?** Call `check_code` with `H239-A01C` on the Rolling Edition MCP server (https://rollingedition.ai/mcp), or compare the edition with the book's page: https://rollingedition.com/model-context-protocol-in-practice - **Credit the book** when you quote it or reuse its code: Model Context Protocol in Practice, Edition 2026.11.10, examples passed Nov 10, 2026. By Rolling Edition, https://rollingedition.com/model-context-protocol-in-practice. Text CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Code MIT, copyright Rolling Edition and contributors. Written with AI. Verified by people. To run an example as the book does, with [uv](https://docs.astral.sh/uv/): ```sh uv venv --python 3.12.15 uv pip install -r scripts/requirements.txt cd scripts && ../.venv/bin/python start-the-shop-api.py ``` ## Wrap an existing API as an MCP server **When:** A model or host needs part of an existing HTTP API. 1. Keep the API as the system of record, and make the server a thin adapter that calls it ([Meet the shop and its API](references/mcp-end-to-end.md#the-shop)). 2. Start with one read-only tool for one endpoint, with a docstring for the model. Once you wrap more than a handful of endpoints, shape tools around tasks instead. Raise `ToolError` with a message that says what to do differently ([Wrap one endpoint as a tool](references/mcp-end-to-end.md#wrap-an-endpoint-as-a-tool)). 3. Launch stdio servers with `sys.executable` and an explicit `env=`, and connect with `mcp.Client`. When a tool fails with only the generic message, read the server's standard error before changing the client ([Call the tool from a client](references/mcp-end-to-end.md#call-a-tool-from-a-client)). 4. When a call misbehaves, trace the wire with a relay that logs each line ([Read the messages on the wire](references/mcp-end-to-end.md#read-the-messages)). **Check:** Run [the example](scripts/call-order-status.py); its `wrong ID says` line should read Error executing tool get_order_status: The shop has no order O-7144. Order IDs look like O-1873.. **Pitfalls:** - Anything written to standard output breaks a stdio server. Log to standard error. - A stdio client passes only a short allowlist of variables. Pass each one the server needs. ## Choose a primitive for each capability **When:** Deciding whether each capability is a tool, a resource or a prompt. 1. Make a capability a tool when the model should decide from the conversation whether to use it, including every action that changes something. Make data a resource when the host's code can tell when it's needed, such as a policy for a known kind of ticket. Make a workflow a prompt only when a person starts it and every run follows the same steps. If no person starts it, make it a tool or put the steps in the host's instructions ([Put each capability in the right primitive](references/what-mcp-adds.md#choose-a-primitive)). 2. Keep a plain HTTP API for callers whose code knows which endpoint to call, such as other services and batch jobs ([Keep an HTTP API where MCP adds nothing](references/what-mcp-adds.md#when-mcp-is-wrong)). 3. Decide nothing on `clientInfo`, which the client chooses to send ([Carry the version and capabilities on every request](references/what-mcp-adds.md#request-meta)). **Check:** Run [the example](scripts/three-primitives-side-by-side.py); its `tool says order status` line should read shipped. **Pitfalls:** - A policy served as a tool gets skipped when the model doesn't ask for it. A refund served as a resource gives the host no point to request consent. ## Design a tool the model can use **When:** A model must choose and call a tool to finish a task. 1. Shape each tool around one task from the tickets, not one per endpoint, and move decisions such as amounts into the server ([Shape tools around tasks, not endpoints](references/design-tools.md#tasks-not-endpoints)). 2. Write each description in two to four sentences: what the tool does, when to use it instead of its most-confused neighbour, what its inputs look like and what it returns. Pass it as `description=` ([Write descriptions the model reads](references/design-tools.md#write-tool-descriptions)). 3. Type every argument as narrowly as the API allows: a pattern for IDs, an enum for fixed values, bounds and a date format ([Type inputs with JSON Schema](references/design-tools.md#type-tool-inputs)). 4. Give each tool a pydantic return model, so the SDK publishes an output schema ([Return structured content with an output schema](references/design-tools.md#structured-output)). 5. Raise `ToolError` for every failure the model could correct, and never return an error as a plain string ([Report failures as tool results](references/design-tools.md#tool-errors)). 6. Annotate every tool. Mark it idempotent only when the server enforces that ([Mark what a tool changes with annotations](references/design-tools.md#tool-annotations)). **Check:** Run [the example](scripts/refund-quote-structured.py); its `within limit` line should read False. **Pitfalls:** - Two tools the model can't tell apart get confused. Watch how often each is called per ticket. ## Serve documents as resources and workflows as prompts **When:** A host needs policies or records in front of a model, or a person starts a fixed procedure by name. 1. Publish documents as static resources, under a scheme that names your system, with a MIME type and a description. Mark results `public` only when every caller gets the same result ([Expose the policies as resources](references/resources-and-prompts.md#policies-as-resources)). 2. For records that share one shape and an ID, use a resource template. Raise `ResourceNotFoundError` for a miss, and keep user data `private` ([Address records with resource templates](references/resources-and-prompts.md#resource-templates)). 3. Complete arguments only from what the caller may read. Filter by the typed prefix yourself, and give an inaccessible record the same answer as a missing one ([Complete arguments for the user](references/resources-and-prompts.md#argument-completion)). 4. Watch only resources the host has put in front of a model. Treat each event as "read this again", and re-read after every new stream and every drop ([Tell clients when a resource changes](references/resources-and-prompts.md#resource-change-notifications)). 5. Validate each prompt argument, and raise `MCPError` with `INVALID_PARAMS` for a bad one ([Package a workflow as a prompt](references/resources-and-prompts.md#workflows-as-prompts)). **Check:** Run [the example](scripts/list-policy-resources.py); its `list cache scope` line should read public. **Pitfalls:** - A read of a user's data with a `public` scope can reach another user's cache. - A client can watch a resource it isn't allowed to read. Gate the watch filter. - The SDK answers a bad prompt argument with an internal error unless you raise `INVALID_PARAMS`. ## Ask the user mid-call without holding the connection **When:** A tool can't finish without an answer only the person at the host can give, such as a refund reason or a confirmation. 1. Never wait inside a tool call for something only the client can give you ([See why a stateless server can't wait for an answer](references/multi-round-trip-requests.md#why-calls-cannot-wait)). Return an `InputRequiredResult` with one input request per question. Check the client's declared capabilities first. Put only what the retry needs in `requestState`, and make every side effect before the question idempotent or harmless when no one answers ([Return an input request instead of a result](references/multi-round-trip-requests.md#return-an-input-request)). 2. In the host, let `Client.call_tool` run the rounds with an elicitation callback. On the server, read the answer and the state together ([Resume the call with the answer](references/multi-round-trip-requests.md#resume-with-the-answer)). 3. Use form mode only for answers the person alone can give. Send secrets and sign-ins through URL mode ([Ask for structured input with elicitation](references/multi-round-trip-requests.md#elicitation-forms)). 4. For any step that must happen once, record answered states on the server, and check that record before the side effect ([Keep round-trip state tamper-proof](references/multi-round-trip-requests.md#round-trip-state)). **Check:** Run [the example](scripts/refund-confirmed-round-trip.py); its `by Client.call_tool` line should read R-0112 requested. **Pitfalls:** - The SDK seals state with a key made at process start. A restart or another replica can't open it, and the answer fails with -32602. - A URL-mode flow the user abandons can loop. Count the rounds and stop after a few. ## Serve over Streamable HTTP **When:** A server serves several hosts, guards systems hosts can't reach, or must scale. Keep stdio for one user on their own machine. 1. Serve with `MCPServer.run(transport="streamable-http")` on loopback while developing, and give clients the endpoint's URL ([Move the server from stdio to HTTP](references/streamable-http.md#stdio-to-http)). 2. When a call fails, read the exchange first: the three routing headers, `_meta` in the body, the status and the content type ([Read one HTTP exchange](references/streamable-http.md#http-on-the-wire)). 3. Report progress from any tool that runs longer than a few seconds. Keep the default response mode, since `json_response=True` drops progress and cancellation ([Stream progress on a long call](references/streamable-http.md#stream-progress)). 4. Write long tools as `async def`, re-raise cancellation, and make them safe to retry ([Cancel a call the client no longer needs](references/streamable-http.md#cancel-a-call)). 5. Pass `transport_security` with the names the server answers to; keep the loopback default for development only ([Reject requests from other origins](references/streamable-http.md#validate-origin)). 6. Run replicas with no sticky sessions. Move each in-memory store into shared storage before adding a replica ([Run replicas without sticky sessions](references/streamable-http.md#scale-without-sessions)). **Check:** Run [the example](scripts/reject-a-foreign-origin.py); its `0.0.0.0 app, foreign Origin` line should read 200 tools listed. The 200 shows what a 0.0.0.0 deployment without `transport_security` does; send the same probe to yours and expect 403. **Pitfalls:** - A server bound to `0.0.0.0` accepts every host and origin, and nothing fails. ## Run long work as a task **When:** A tool's work can outlast the connection, so the caller comes back for the result. 1. Turn the extension on only through the SDK's extension classes, never by writing its identifier into capabilities by hand. Return a task only to a request that declared the extension. Otherwise return a result, or error -32021 when the work can't finish in a plain call ([Negotiate an extension](references/tasks-and-extensions.md#negotiate-an-extension)). 2. Store the task before returning its handle, and generate the ID from a random source with at least 128 bits ([Start a task instead of waiting](references/tasks-and-extensions.md#start-a-task)). 3. Poll at the server's `pollIntervalMs`, and stop at the first terminal status. Treat `completed` as the original call's result ([Poll a task and fetch its result](references/tasks-and-extensions.md#poll-a-task)). 4. Give each task a TTL that covers the wait before the client fetches it, and purge after it. Check for cancellation at each natural step ([Expire and cancel tasks](references/tasks-and-extensions.md#task-lifetime)). 5. Use a plain call when the result arrives within every timeout, progress when the caller waits on a stable connection, and a task otherwise ([Choose a task, progress or a plain call](references/tasks-and-extensions.md#task-or-call)). **Check:** Run [the example](scripts/poll-the-restock-report.py); its `statuses` line should read working then completed. **Pitfalls:** - Tasks kept in one replica's memory answer -32602 on another replica. - Task IDs can be the only check on a result. Check the owner on every task request. ## Authorize clients with OAuth **When:** A server must accept only tokens issued for it, and hosts sign users in through an authorization server. 1. Give each protected server `AuthSettings` with its endpoint URL as `resource_server_url`, and the smallest `required_scopes` every request needs. Test the chain with one request that has no token. Expect 401 and a `resource_metadata` URL ([Find the authorization server from the resource](references/authorization.md#protected-resource-metadata)). 2. Give each host one Client ID Metadata Document at a stable `https://` URL, with no secret, passed as `client_metadata_url` ([Identify the client with a metadata document](references/authorization.md#client-id-metadata-documents)). 3. Let `OAuthClientProvider` run the flow, and refuse an authorization server whose metadata doesn't list `S256` ([Get a token with PKCE](references/authorization.md#authorization-code-with-pkce)). 4. Set `validate_token_resource=True`, fill `AccessToken.resource` from the token's `aud`, and treat an `MCPDeprecationWarning` from `AuthSettings` as a failed deployment ([Bind each token to one server](references/authorization.md#token-audience)). 5. Send `iss` from every authorization server you run, and advertise it. Keep the SDK's issuer check in the host ([Validate the issuer of each response](references/authorization.md#validate-the-issuer)). 6. Map each tool to its scopes, and answer a missing scope with a 403 `insufficient_scope` challenge ([Scope tools by what the token allows](references/authorization.md#scopes-per-tool)). **Check:** Run [the example](scripts/wrong-audience-rejected.py); its `verifier checks aud, partner's token` line should read 401. **Pitfalls:** - Without `validate_token_resource`, a server accepts tokens issued for other servers. - An authorization server that omits `iss` leaves the host without its mix-up defence. ## Secure tools against misuse **When:** Before shipping a server that acts for users, or a host that connects to servers you don't operate. 1. Write the boundary table: one row for each pair of parties that exchange data or authority, with what crosses and who checks it. Close any row whose checker is the model ([Draw the trust boundaries](references/mcp-security.md#trust-boundaries)). 2. Accept only tokens whose audience is your server. Call upstream services with the server's own credential, never the bearer token you received ([Never pass a client's token through](references/mcp-security.md#no-token-passthrough)). 3. Take the acting user from the verified token's subject, never from a tool argument. Bind each handle to the user it was issued to ([Keep the server from acting as a confused deputy](references/mcp-security.md#confused-deputy)). 4. Treat every definition from a server you don't operate as untrusted. Pin each approved definition by hash, and show the user any change before enabling it ([Catch poisoned tool descriptions](references/mcp-security.md#tool-poisoning)). 5. Take amounts, owners and limits from server records, never from text a model fills in from a ticket. Log arguments a tool ignores ([Treat ticket text as untrusted data](references/mcp-security.md#untrusted-tool-output)). 6. Ask the user before each call not on the host's list of side-effect-free calls. Build that list per server, never from annotations ([Ask for consent before side effects](references/mcp-security.md#consent-before-side-effects)). **Check:** Run [the example](scripts/consent-gate.py); its `decisions logged` line should read get_order_status allowed by the host's list; issue_refund approved by the user; track_parcel declined by the user. **Pitfalls:** - Tests in memory or over stdio never reach the HTTP authorization layer. - Consent turns into a reflex when nearly every question gets "yes" within a second. ## Build a host that works through tickets **When:** A host lets a model work through a ticket queue across several MCP servers. 1. Give each server its own auto-mode `Client`, under a key from the host's configuration ([Connect one client per server](references/build-a-host.md#one-client-per-server)). 2. Prefix every tool name with its server's configuration key, and route each call through your own map. Send an unknown name back to the model as an error ([Name tools across servers](references/build-a-host.md#namespace-tools)). 3. Keep the loop bounded: route, consent, timeout, and send every outcome back, errors included. Cap model calls per ticket ([Run the host loop](references/build-a-host.md#run-the-host-loop)). 4. Give each client its own elicitation callback that names its server. Return a decline to the model as an error ([Answer input requests for the user](references/build-a-host.md#answer-input-requests)). 5. Decide which resources reach the model by stated rules, with a size cap ([Put resources in the model's context](references/build-a-host.md#resources-in-context)). 6. Before a reply reaches a customer, compare its promises with the calls that returned results. Send any mismatch to a person, and strip handles such as `quote_id` ([Work through the ticket queue](references/build-a-host.md#work-the-queue)). **Check:** Run [the example](scripts/work-one-ticket.py); its `turn 1 outcome` line should read tool error. **Pitfalls:** - A long tool list outgrows the context, since every definition goes into every call. - Annotations and outputs from servers you don't trust are claims, not facts. ## Test a server and watch it run **When:** Before releasing a change to a server's tools, or when reading traces. 1. Test each tool in memory with `Client(server, raise_exceptions=True)`, asserting on `structured_content` and `is_error`, and keep one loopback test per shipped transport ([Test tools in memory](references/test-and-observe.md#in-memory-tests)). 2. Keep the last release's `tools/list` in the repository, and validate each structured result against it and the new schema in CI. Treat a removed or retyped output field as breaking ([Check schemas as a contract](references/test-and-observe.md#schema-contract-tests)). 3. Replay a recorded run of the whole queue in CI, and assert on each ticket's tool sequence ([Replay recorded host runs](references/test-and-observe.md#replay-host-runs)). 4. Install an OpenTelemetry SDK and exporter in every server and host. Build dashboards on `mcp.method.name`, `gen_ai.tool.name` and `error.type`, which follow a Development-status convention ([Trace calls with OpenTelemetry](references/test-and-observe.md#trace-with-opentelemetry)). 5. Score tool choice on the first tool per tag, and score arguments separately. State the model, prompt and ticket set beside every score ([Measure how often the right tool is chosen](references/test-and-observe.md#tool-selection-accuracy)). 6. Retire a tool in three releases: add the replacement, deprecate the old tool, keep both through an announced window, then answer the old name with an error naming the replacement ([Change tools without breaking clients](references/test-and-observe.md#change-tools-safely)). **Check:** Run [the example](scripts/test-tools-in-memory.py); its `tests passed` line should read 4 of 4. **Pitfalls:** - A span name that holds an order ID or customer ID makes one name per value, past what a backend can index. - A recording keeps passing after the model changes. Record again at each model change. ## Migrate a 2025-era server **When:** A server built on a 2025 revision must move to the pinned revision and keep old clients working through a window. 1. Inventory the removed and deprecated features, sorted by status. Fix every removed dependency before a client at the pinned revision connects ([Inventory what the old server depends on](references/migrate-from-2025.md#inventory-2025-features)). 2. Replace each session with an opaque handle that one tool returns and the next takes as an argument. Check the caller on every use, and store it where every replica can read it ([Remove initialize and session IDs](references/migrate-from-2025.md#remove-sessions)). 3. Delete the HTTP+SSE transport rather than porting it, unless your logs show hosts that still use it ([Move from HTTP+SSE to Streamable HTTP](references/migrate-from-2025.md#move-off-http-sse)). 4. Move each pushed elicitation into a resolver, delete sampling, turn roots into a checked parameter, and send logs to standard error ([Replace sampling, roots and logging](references/migrate-from-2025.md#replace-deprecated-features)). 5. Publish a Client ID Metadata Document for each host, and keep dynamic registration only until those hosts move ([Replace dynamic client registration](references/migrate-from-2025.md#replace-dynamic-registration)). 6. Keep the server on the SDK release it was built with until its port passes its tests, then port in one change and pin the new release exactly ([Port the code from SDK 1.x to 2.x](references/migrate-from-2025.md#sdk-1-to-2)). 7. Serve both eras from one `streamable_http_app()` through the window. Count requests by era, and drop the 2025 path only when that count stays at zero for as long as your slowest host takes to upgrade ([Serve old and new clients through the window](references/migrate-from-2025.md#serve-both-revisions)). **Check:** Run [the example](scripts/scan-a-2025-server.py); its `removed dependencies` line should read 2. **Pitfalls:** - A 2025 session lands on another replica and gets 404 "Session not found". - A proxy that strips unknown headers drops `MCP-Protocol-Version`, and the server picks the wrong era. - The earliest removal date is not a deadline: the first revision released on or after it may remove the feature. Move before it, and plan by what your logs show.
Files in this package (157)
- LICENSE.md 1 KB
- SKILL.md 23 KB
- references/authorization.md 64 KB
- references/build-a-host.md 53 KB
- references/design-tools.md 61 KB
- references/mcp-end-to-end.md 38 KB
- references/mcp-security.md 53 KB
- references/migrate-from-2025.md 54 KB
- references/multi-round-trip-requests.md 54 KB
- references/resources-and-prompts.md 49 KB
- references/streamable-http.md 52 KB
- references/tasks-and-extensions.md 43 KB
- references/test-and-observe.md 55 KB
- references/what-mcp-adds.md 49 KB
- scripts/.python-version 1 KB
- scripts/annotate-the-refund-tool.out 1 KB
- scripts/annotate-the-refund-tool.py 2 KB
- scripts/api-call-versus-tool-call.out 1 KB
- scripts/api-call-versus-tool-call.py 3 KB
- scripts/attach-a-policy-resource.out 1 KB
- scripts/attach-a-policy-resource.py 2 KB
- scripts/cache-the-tool-list.out 1 KB
- scripts/cache-the-tool-list.py 2 KB
- scripts/call-order-status.out 1 KB
- scripts/call-order-status.py 2 KB
- scripts/cancel-the-stock-recount.out 1 KB
- scripts/cancel-the-stock-recount.py 2 KB
- scripts/complete-order-ids.out 1 KB
- scripts/complete-order-ids.py 3 KB
- scripts/confused-deputy-refund.out 1 KB
- scripts/confused-deputy-refund.py 2 KB
- scripts/connect-two-servers.out 1 KB
- scripts/connect-two-servers.py 2 KB
- scripts/consent-gate.out 1 KB
- scripts/consent-gate.py 3 KB
- scripts/declare-the-tasks-extension.out 1 KB
- scripts/declare-the-tasks-extension.py 2 KB
- scripts/deprecate-a-tool.out 1 KB
- scripts/deprecate-a-tool.py 3 KB
- scripts/discover-the-authorization-server.out 1 KB
- scripts/discover-the-authorization-server.py 2 KB
- scripts/elicit-a-refund-reason.out 1 KB
- scripts/elicit-a-refund-reason.py 3 KB
- scripts/elicit-by-url.out 1 KB
- scripts/elicit-by-url.py 3 KB
- scripts/expire-a-task.out 1 KB
- scripts/expire-a-task.py 3 KB
- scripts/host-answers-elicitation.out 1 KB
- scripts/host-answers-elicitation.py 2 KB
- scripts/host-picks-a-tool.out 1 KB
- scripts/host-picks-a-tool.py 2 KB
- scripts/list-policy-resources.out 1 KB
- scripts/list-policy-resources.py 2 KB
- scripts/list-what-the-server-offers.out 1 KB
- scripts/list-what-the-server-offers.py 2 KB
- scripts/mix-up-attack-blocked.out 1 KB
- scripts/mix-up-attack-blocked.py 2 KB
- scripts/order-resource-template.out 1 KB
- scripts/order-resource-template.py 2 KB
- scripts/order-status-server.out 1 KB
- scripts/order-status-server.py 2 KB
- scripts/poisoned-description.out 1 KB
- scripts/poisoned-description.py 2 KB
- scripts/poll-the-restock-report.out 1 KB
- scripts/poll-the-restock-report.py 1 KB
- scripts/port-to-sdk-2.out 1 KB
- scripts/port-to-sdk-2.py 1 KB
- scripts/progress-on-stock-recount.out 1 KB
- scripts/progress-on-stock-recount.py 2 KB
- scripts/publish-client-metadata.out 1 KB
- scripts/publish-client-metadata.py 2 KB
- scripts/refund-asks-to-confirm.out 1 KB
- scripts/refund-asks-to-confirm.py 3 KB
- scripts/refund-confirmed-round-trip.out 1 KB
- scripts/refund-confirmed-round-trip.py 3 KB
- scripts/refund-needs-a-scope.out 1 KB
- scripts/refund-needs-a-scope.py 3 KB
- scripts/refund-needs-confirmation.out 1 KB
- scripts/refund-needs-confirmation.py 2 KB
- scripts/refund-quote-structured.out 1 KB
- scripts/refund-quote-structured.py 2 KB
- scripts/refund-review-prompt.out 1 KB
- scripts/refund-review-prompt.py 3 KB
- scripts/reject-a-foreign-origin.out 1 KB
- scripts/reject-a-foreign-origin.py 1 KB
- scripts/reject-bad-arguments.out 1 KB
- scripts/reject-bad-arguments.py 2 KB
- scripts/replace-pushed-requests.out 1 KB
- scripts/replace-pushed-requests.py 2 KB
- scripts/replay-ticket-runs.out 1 KB
- scripts/replay-ticket-runs.py 2 KB
- scripts/request-meta-on-the-wire.out 1 KB
- scripts/request-meta-on-the-wire.py 2 KB
- scripts/requirements.txt 1 KB
- scripts/roots-to-a-parameter.out 1 KB
- scripts/roots-to-a-parameter.py 2 KB
- scripts/scan-a-2025-server.out 1 KB
- scripts/scan-a-2025-server.py 1 KB
- scripts/schema-change-breaks-a-client.out 1 KB
- scripts/schema-change-breaks-a-client.py 2 KB
- scripts/serve-on-loopback.out 1 KB
- scripts/serve-on-loopback.py 1 KB
- scripts/serve-two-revisions.out 1 KB
- scripts/serve-two-revisions.py 3 KB
- scripts/start-a-restock-report.out 1 KB
- scripts/start-a-restock-report.py 1 KB
- scripts/start-the-shop-api.out 1 KB
- scripts/start-the-shop-api.py 1 KB
- scripts/stateless-after-migration.out 1 KB
- scripts/stateless-after-migration.py 2 KB
- scripts/step-up-for-refunds.out 1 KB
- scripts/step-up-for-refunds.py 2 KB
- scripts/stock-resource-changes.out 1 KB
- scripts/stock-resource-changes.py 3 KB
- scripts/tampered-round-trip-state.out 1 KB
- scripts/tampered-round-trip-state.py 2 KB
- scripts/test-tools-in-memory.out 1 KB
- scripts/test-tools-in-memory.py 2 KB
- scripts/three-primitives-side-by-side.out 1 KB
- scripts/three-primitives-side-by-side.py 2 KB
- scripts/ticket-injection.out 1 KB
- scripts/ticket-injection.py 3 KB
- scripts/token-passthrough-rejected.out 1 KB
- scripts/token-passthrough-rejected.py 2 KB
- scripts/token-with-pkce.out 1 KB
- scripts/token-with-pkce.py 3 KB
- scripts/tool-choice-accuracy.out 1 KB
- scripts/tool-choice-accuracy.py 3 KB
- scripts/tool-definition-changed.out 1 KB
- scripts/tool-definition-changed.py 2 KB
- scripts/tool-error-versus-protocol-error.out 1 KB
- scripts/tool-error-versus-protocol-error.py 2 KB
- scripts/tool-list-size.out 1 KB
- scripts/tool-list-size.py 2 KB
- scripts/tool-name-collision.out 1 KB
- scripts/tool-name-collision.py 2 KB
- scripts/tools-from-endpoints.out 1 KB
- scripts/tools-from-endpoints.py 2 KB
- scripts/trace-a-tool-call.out 1 KB
- scripts/trace-a-tool-call.py 3 KB
- scripts/trace-an-http-exchange.out 1 KB
- scripts/trace-an-http-exchange.py 2 KB
- scripts/trace-first-call.out 2 KB
- scripts/trace-first-call.py 1 KB
- scripts/two-replicas-one-client.out 1 KB
- scripts/two-replicas-one-client.py 3 KB
- scripts/unsupported-version-error.out 1 KB
- scripts/unsupported-version-error.py 1 KB
- scripts/vague-description-wrong-tool.out 1 KB
- scripts/vague-description-wrong-tool.py 2 KB
- scripts/work-one-ticket.out 1 KB
- scripts/work-one-ticket.py 2 KB
- scripts/work-the-ticket-queue.out 1 KB
- scripts/work-the-ticket-queue.py 3 KB
- scripts/wrong-audience-rejected.out 1 KB
- scripts/wrong-audience-rejected.py 2 KB
- scripts/data/shop/README.md 4 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · rollingedition/agent-skills | 100 | CC-BY-4.0 |
| rollingedition/agent-skills | 100 | CC-BY-4.0 |
Database snapshot: 13.11.2026 · package version 45d733a6259f (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 87mcp
Model Context Protocol expert: spec revisions (2025-11-25 stable, 2026-07-28 draft), client-host-server architecture, stdio and Streamable HTTP transports and message flow, server primitives (tools/resources/prompts), client capabilities (elicitation, deprecated sampling/roots),… - 100mcp-builder
Design and build Model Context Protocol servers that models use correctly - choosing stdio vs stateless Streamable HTTP while still serving 2025-era clients, shaping a few task-level tools with clear descriptions, JSON Schema inputs and honest annotations, bounding and… - 100python-mcp-server
Instructions for building Model Context Protocol (MCP) servers using the Python SDK Triggers on: **/*.py, **/pyproject.toml, **/requirements.txt - 100mcp-server-patterns
Build MCP servers with Node/TypeScript SDK — tools, resources, prompts, Zod validation, stdio vs Streamable HTTP. Use Context7 or official MCP docs for latest API. Use when building or debugging an MCP server — tools, resources, prompts, validation, or transport choice. - 100mcp-server-patterns
Build MCP servers with Node/TypeScript SDK — tools, resources, prompts, Zod validation, stdio vs Streamable HTTP. Use Context7 or official MCP docs for latest API. Use when building or debugging an MCP server — tools, resources, prompts, validation, or transport choice. - 100mcp
MCP (Model Context Protocol) servers and clients: tools, resources, prompts, stdio/HTTP transport, OAuth, tool poisoning. Use for writing a server or fixing a client.