harn-mcp

harn-mcp is a skill for Claude Code from burin-labs/harn. It costs 27 tokens per session (1,990 once invoked), scanned A, original, Apache-2.0.

A guide for building Harn programs that connect to or provide MCP servers. MCP is a standard way for AI applications to exchange tools and context.

In plain words
What is it for?
Use it to create MCP clients or servers, connect to tools such as filesystem services, and build deterministic test fixtures.
Why use it?
It explains how to manage server connections, lifecycle messages, permissions, and tool access without reimplementing the protocol.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Good fit Use it to create MCP clients or servers, connect to tools such as filesystem services, and build deterministic test fixtures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/burin-labs/harn/harn-mcp
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 burin-labs/harn --skill harn-mcp
Clone the repo
git clone --depth 1 https://github.com/burin-labs/harn

Made for: Claude Code.

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 harn-mcp

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/burin-labs/harn/harn-mcp"><img src="https://agentmods.dev/badge/skills/burin-labs/harn/harn-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,990 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 71
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00027 $0.01990
Opus 5.5 $0.00011 $0.00796
Sonnet 5.5 $0.00005 $0.00398
Haiku 4.5 $0.00003 $0.00199

Measured 14d ago against content hash 2ad3744b306d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

harn-mcp 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 14d 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.

crates/harn-skills/src/corpus/harn-mcp/SKILL.md · 187 lines

How it starts

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

Build MCP clients and servers in Harn

Use this skill when a Harn program talks to an MCP server or serves one. Pair it with [[harn-testing]] for deterministic fixtures, [[harn-agent]] for tool exposure inside an agent loop, and [[harn-providers]] when sampling routes back to a model.

Maintainers changing Harn's own MCP implementation should read docs/src/dev/mcp-maintenance.md instead. This skill covers writing MCP clients and servers in Harn, not editing the runtime that carries them.

Start here

  • docs/src/mcp-and-acp.md is the public client and server reference.
  • docs/src/mcp-server.md covers the orchestrator server, harn mcp serve.
  • Harn's stdio servers accept the released initialize lifecycle and the 2026-07-28 request-metadata lifecycle. Streamable HTTP uses 2026-07-28.
  • The official Rust SDK owns protocol mechanics; Harn owns product policy.
  • Route every capability through harness.tools.*.

Connect as a client

Connect explicitly when the server is chosen at runtime:

const client = harness.tools.mcp_connect("npx", ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"])
const info = harness.tools.mcp_server_info(client)
const tools = harness.tools.mcp_list_tools(client)
const content = harness.tools.mcp_call(client, "read_file", {path: "/tmp/data.txt"})
harness.tools.mcp_disconnect(client)

Resources and prompts use mcp_list_resources, mcp_read_resource, mcp_list_resource_templates, mcp_list_prompts, and mcp_get_prompt.

  • mcp_call returns a string for a single text result, a list of content dicts for multiple blocks, or nil when empty.
  • mcp_call throws when the tool reports an error. Catch it where the pipeline can recover; do not let a remote failure read as an empty result.
  • Disconnect what you connect. Prefer declared servers when the set is fixed.

Declare servers instead of connecting by hand

Put a fixed server set in harn.toml as repeated mcp array-of-tables entries. Each entry carries name, plus either command and args for stdio, or transport = "http" and url. Declared servers connect before the pipeline runs and appear in the global mcp dict.

Read the full file on GitHub · 187 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. 14d ago Changed · +48 lines 2ad3744b306d
  2. 3mo ago First seen · 139 lines · 27 tokens per session scan A d60565d9ea21

Subscribe to this mod's changes

harn-mcp is a skill published in the GitHub repository burin-labs/harn (34 stars, last pushed yesterday), licensed Apache-2.0. It adds 27 tokens to every session and 1,990 once invoked, about $0.0001 per session on Opus 5.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

harn-mcp compared with skills from other repositories

harn-mcp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
harn-mcpburin-labs/harnSkill34yesterdayApache-2.0A27Claude Code
archestra-dev-interactions-migrationsarchestra-ai/archestraSkill4.5ktodaynoneA118Claude Code, Codex
archestra-dev-llm-providersarchestra-ai/archestraSkill4.5ktodaynoneA49Claude Code, Codex
archestra-dev-backendarchestra-ai/archestraSkill4.5ktodaynoneA40Claude Code, Codex
translateRTGS2017/NagaAgentSkill1.5k29d agoAGPL-3.0A40Claude Code, Codex
alchemy-providerpingdotgg/t3codeSkill84ktodayMITA153Claude Code, Codex
python-sdkComposioHQ/composioSkill31ktodayMITA60Claude Code, Codex