implementing-mcp-prompts

implementing-mcp-prompts is a skill for Cursor from phughesmcr/deno-mcp-template. It costs 64 tokens per session (1,150 once invoked), scanned A, original, MIT.

A project-specific guide for adding MCP prompts to a Deno server. MCP prompts are reusable instruction templates that can accept fixed arguments or offer dynamic choices.

In plain words
What is it for?
Use it to create prompts with arguments, validate those arguments, provide dynamic completions, and register the prompts with the server.
Why use it?
It explains the required files, validation, registration, and callback shape so new prompts follow the project's conventions.

Skill for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to create prompts with arguments, validate those arguments, provide dynamic completions, and register the prompts with the server.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phughesmcr/deno-mcp-template/implementing-mcp-prompts
Install

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.

Any agent
npx skills add phughesmcr/deno-mcp-template --skill implementing-mcp-prompts
Clone the repo
git clone --depth 1 https://github.com/phughesmcr/deno-mcp-template

Made for: Cursor.

Wrote 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.

agentmods badge for implementing-mcp-prompts

README.md
[![agentmods](https://agentmods.dev/badge/skills/phughesmcr/deno-mcp-template/implementing-mcp-prompts/github.svg)](https://agentmods.dev/skills/phughesmcr/deno-mcp-template/implementing-mcp-prompts)
Your own site
<a href="https://agentmods.dev/skills/phughesmcr/deno-mcp-template/implementing-mcp-prompts"><img src="https://agentmods.dev/badge/skills/phughesmcr/deno-mcp-template/implementing-mcp-prompts/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.

agentmods 80×15 button for implementing-mcp-prompts

Your own site · 80×15
<a href="https://agentmods.dev/skills/phughesmcr/deno-mcp-template/implementing-mcp-prompts"><img src="https://agentmods.dev/badge/skills/phughesmcr/deno-mcp-template/implementing-mcp-prompts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,150 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.01150
Opus 5 $0.00032 $0.00575
Sonnet 5 $0.00013 $0.00230
Haiku 4.5 $0.00006 $0.00115

Measured 11d ago against content hash 391c57153ff7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

implementing-mcp-prompts 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 11d 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.

.cursor/skills/implementing-mcp-prompts/SKILL.md · 183 lines

How it starts

The opening of the file, as written. The whole thing — 183 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Implementing MCP Prompts

Workflow

Task Progress:
- [ ] Step 1: Create prompt file in src/mcp/prompts/
- [ ] Step 2: Define Zod schema, name, config, and callback
- [ ] Step 3: Export as default PromptPlugin
- [ ] Step 4: Register in src/mcp/prompts/mod.ts
- [ ] Step 5: Run `deno task ci` to verify

Prompt File Template

Every prompt follows this structure. Create a new file in src/mcp/prompts/.

import type { GetPromptResult } from "@modelcontextprotocol/sdk/types.js";
import { z } from "zod/v3";

import type { PromptPlugin } from "$/shared/types.ts";

// 1. Validation schema
const schema = z.object({
  myArg: z.string().min(1, "Required"),
});

// 2. Prompt name (kebab-case)
const name = "my-prompt-name";

// 3. Config — choose one of the two argument styles below
const config = {
  title: "Human-readable title",
  description: "What this prompt does — shown to the LLM",
  argsSchema: {
    myArg: schema.shape.myArg,
  },
};

// 4. Callback — returns GetPromptResult with messages array
async function callback(args: Record<string, unknown>): Promise<GetPromptResult> {
  const { success, data, error } = schema.safeParse(args);
  if (!success) throw new Error(error.message);

  return {
    messages: [{
      role: "user",
      content: {
        type: "text",
        text: `Do something with: ${data.myArg}`,
      },
    }],
  };
}

// 5. Export as PromptPlugin tuple
const prompt: PromptPlugin = [name, config, callback];

export default prompt;

Registration

In src/mcp/prompts/mod.ts:

  1. Import the prompt: import myPrompt from "./myPrompt.ts";
  2. Add it to the prompts array:
export const prompts: PromptPlugin[] = [
  // ... existing prompts
  myPrompt,
];

The server registers each prompt via server.registerPrompt(...prompt).

Key Type

From src/shared/types.ts:

export type PromptPlugin = Parameters<McpServer["registerPrompt"]>;

This is a tuple: [name, config, callback] matching McpServer.registerPrompt() parameters.

Read the full file on GitHub · 183 lines

Files

What ships with it

1 file 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.

Changes

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.

  1. 11d ago First seen · 183 lines · 64 tokens per session scan A 391c57153ff7

Subscribe to this mod's changes

implementing-mcp-prompts is a skill published in the GitHub repository phughesmcr/deno-mcp-template (33 stars, last pushed 5mo ago), licensed MIT. It adds 64 tokens to every session and 1,150 once invoked, about $0.0003 per session on Opus 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.

Related

Other skills, from other repositories