Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/phughesmcr/deno-mcp-templatenpx agentmods add skills/phughesmcr/deno-mcp-template/implementing-mcp-toolsWrote 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/phughesmcr/deno-mcp-template/implementing-mcp-tools)<a href="https://agentmods.dev/skills/phughesmcr/deno-mcp-template/implementing-mcp-tools"><img src="https://agentmods.dev/badge/skills/phughesmcr/deno-mcp-template/implementing-mcp-tools/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/phughesmcr/deno-mcp-template/implementing-mcp-tools"><img src="https://agentmods.dev/badge/skills/phughesmcr/deno-mcp-template/implementing-mcp-tools.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00074 | $0.02263 |
| Opus 5 | $0.00037 | $0.01131 |
| Sonnet 5 | $0.00015 | $0.00453 |
| Haiku 4.5 | $0.00007 | $0.00226 |
Grade A, and why
implementing-mcp-tools 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 10d 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.
How it starts
The opening of the file, as written. The whole thing — 273 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Implementing MCP Tools
Workflow
Task Progress:
- [ ] Step 1: Create tool file in src/mcp/tools/
- [ ] Step 2: Define Zod schema, name, config, and callback
- [ ] Step 3: Export as default ToolModule
- [ ] Step 4: Register in src/mcp/tools/mod.ts
- [ ] Step 5: Run `deno task ci` to verify
Tool File Template
Every tool follows this structure. Create a new file in src/mcp/tools/.
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
import { z } from "zod/v3";
import type { ToolConfig, ToolModule } from "$/shared/types.ts";
import {
createCallToolErrorResponse,
createCallToolTextResponse,
} from "$/shared/utils.ts";
// 1. Input schema
const schema = z.object({
myField: z.string().min(1, "Required").describe("What this field does"),
});
// 2. Tool name (kebab-case)
const name = "my-tool-name";
// 3. Config
// deno-lint-ignore no-explicit-any
const config: ToolConfig<typeof schema.shape, any> = {
title: "Human-readable title",
description: "What this tool does — shown to the LLM",
inputSchema: schema.shape,
};
// 4. Callback factory: receives McpServer, returns the handler
// deno-lint-ignore no-explicit-any
const callback = (_mcp: McpServer) => async (args: any): Promise<CallToolResult> => {
const parsed = schema.safeParse(args);
if (!parsed.success) {
return createCallToolErrorResponse({
error: "Invalid arguments",
details: parsed.error.flatten(),
received: args,
});
}
const { myField } = parsed.data;
// ... tool logic ...
return createCallToolTextResponse({ result: myField });
};
// 5. Export as ToolModule tuple
// deno-lint-ignore no-explicit-any
const module: ToolModule<typeof schema.shape, any> = [name, config, callback];
export default module;
Registration
In src/mcp/tools/mod.ts:
- Import the tool:
import myTool from "./myTool.ts"; - Add it to the
toolsarray:
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.
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.
- 10d ago First seen · 273 lines · 74 tokens per session scan A b33e8f79e779
implementing-mcp-tools is a skill published in the GitHub repository phughesmcr/deno-mcp-template (33 stars, last pushed 5mo ago), licensed MIT. It adds 74 tokens to every session and 2,263 once invoked, about $0.0004 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.
Other skills, from other repositories
ingest-gradle-upgrade
Ingests a Gradle wrapper upgrade for this repository: reads the release notes, upgrade guides, and linked documentation for the version upgraded to, then updates this repo's own code/tooling and the shipped Gradle MCP skills (src/main/skills/) so everything stays accurate for that version. Positive Triggers (when to…
authoring-gradle-builds
Authoring and modifying Gradle build logic, including settings, plugins, dependencies, tasks, conventions, and upgrades. Activate when build files or plugins must change; use using-gradle for inspection or execution without build-definition edits.
raindrop-mcp
Connect Raindrop.io to your AI assistant with a simple MCP server. Use it to organize, search, and manage bookmarks with natural language.
issue-management
Create, update, list and search GitHub issues and PRs, list a repository's labels, run milestones, and check for duplicates.
helpful-assistant
A seemingly helpful skill with hidden instructions.
memstem-search
Search MemStem — the unified memory index across all AI agents (Ari, Claude Code, future agents). Use for any retrieval-style question: past decisions, project status, skills lookup, prior work, 'what did we decide about X', 'do we have a skill for Y', 'what did the other agent do yesterday'. This skill owns the full…