mcp-server-packaging

mcp-server-packaging is a skill for Claude Code from phazurlabs/install-labs. It costs 117 tokens per session (5,335 once invoked), scanned A, original, Apache-2.0.

A guide to packaging an AI agent as an MCP server. MCP, or Model Context Protocol, is a common interface that lets compatible AI applications use external tools and data.

In plain words
What is it for?
Packaging tools, readable data sources, and reusable prompts as an MCP server, including setup for local or web-based connections.
Why use it?
It explains how to make one agent integration usable across hosts such as Claude Desktop, Claude Code, Cursor, Windsurf, Cline, and Zed.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code; built for cline.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is "inspect": "npx @modelcontextprotocol/inspector node dist/index.js",.

Part of the install-labs plugin — 12 skills, 10 commands shipped together

Install

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.

Clone the repo
git clone --depth 1 https://github.com/phazurlabs/install-labs
agentmods
npx agentmods add skills/phazurlabs/install-labs/mcp-server-packaging

Made for: Claude Code.

Or install install-labs, the plugin that ships this one along with the rest of its 12 skills, 10 commands.

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 mcp-server-packaging

README.md
[![agentmods](https://agentmods.dev/badge/skills/phazurlabs/install-labs/mcp-server-packaging.svg)](https://agentmods.dev/skills/phazurlabs/install-labs/mcp-server-packaging)
Your own site
<a href="https://agentmods.dev/skills/phazurlabs/install-labs/mcp-server-packaging"><img src="https://agentmods.dev/badge/skills/phazurlabs/install-labs/mcp-server-packaging.svg" alt="Measured on agentmods" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,335 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00117 $0.05335
Opus 5 $0.00059 $0.02668
Sonnet 5 $0.00023 $0.01067
Haiku 4.5 $0.00012 $0.00534

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

Security

Grade A, and why

mcp-server-packaging 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 6d 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.

skills/mcp-server-packaging/SKILL.md · 654 lines

How it starts

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

MCP Server Packaging

What Is MCP

Model Context Protocol (MCP) is the open standard for connecting AI systems to external tools, data sources, and services. Developed by Anthropic and adopted across the AI ecosystem, MCP defines a structured interface between an AI host (Claude Desktop, Claude Code, Cursor, Windsurf) and external capabilities.

MCP servers expose three primitive types:

Primitive Purpose Example
Tools Functions the AI can call search_database, create_ticket
Resources Data the AI can read file://config.yaml, db://users/123
Prompts Reusable prompt templates summarize-code, review-pr

MCP is to AI agents what USB is to peripherals: a universal plug that lets any compliant host talk to any compliant server without custom integration code.

Why MCP Is the #1 Distribution Target

  • Claude Desktop, Claude Code, Cursor, Windsurf, Cline, and Zed all support MCP natively.
  • A single MCP server works across every compatible host with zero code changes.
  • The protocol handles capability negotiation, lifecycle management, and error propagation.
  • Registry infrastructure (official registry, Smithery, mcp.so) is maturing rapidly.

MCP Server Architecture

Transport Layers

MCP supports two transport mechanisms. Choosing the right one is the most consequential architectural decision.

stdio (Local Servers)

The host spawns the MCP server as a child process. Communication happens over stdin/stdout using JSON-RPC 2.0 messages, one per line.

  • Zero network configuration. No ports, no firewall rules.
  • Server lifecycle is managed by the host (started on demand, killed on exit).
  • Best for: CLI tools, filesystem access, local development utilities.
  • The server MUST NOT write anything to stdout except valid JSON-RPC messages. Use stderr for logging.

Read the full file on GitHub · 654 lines

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. 6d ago First seen · 654 lines · 117 tokens per session scan A 6a9498bea304

Subscribe to this mod's changes

mcp-server-packaging is a skill published in the GitHub repository phazurlabs/install-labs (3 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 117 tokens to every session and 5,335 once invoked, about $0.0006 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-31.