wlanpi-mcp: Instructions file for Claude Code

CLAUDE.md

wlanpi-mcp CLAUDE.md is an instructions file for Claude Code from WLAN-Pi/wlanpi-mcp. It costs 4,549 tokens per session, scanned A, original, BSD-3-Clause.

Repository instructions for developing and testing wlanpi-mcp, a bridge that exposes WLAN-Pi features to AI assistants through the MCP standard.

In plain words
What is it for?
Installing dependencies, running all or selected tests, starting the server in command-line or web mode, and building a Debian package.
Why use it?
They tell the coding agent how to set up the project, run tests, start the server, and build its Debian package.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is WLAN-Pi/wlanpi-mcp's own configuration. It tells Claude Code how to work on wlanpi-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything wlanpi-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to WLAN-Pi/wlanpi-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/WLAN-Pi/wlanpi-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/WLAN-Pi/wlanpi-mcp

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 wlanpi-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/wlan-pi/wlanpi-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/wlan-pi/wlanpi-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/wlan-pi/wlanpi-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/wlan-pi/wlanpi-mcp/claude-md/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 wlanpi-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/wlan-pi/wlanpi-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/wlan-pi/wlanpi-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,549 This file is loaded in full into every session.
When invoked 4,549 The same file — it is already loaded in full.
Security scan A 1 finding. 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.04549 $0.04549
Opus 5.5 $0.01820 $0.01820
Sonnet 5.5 $0.00910 $0.00910
Haiku 4.5 $0.00455 $0.00455

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

Security

Grade A, and why

wlanpi-mcp CLAUDE.md scanned grade A with 1 finding 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

One scoped exception, for pcap downloads: `get_pcap_download_url` (in `tools/capture_file.py`) mints a random, single-use ticket that expires after `DOWNLOAD_TTL_S` (300 s) and returns a link to the `GET /pcap/<ticket>`
CLAUDE.md · 69 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What this is

An MCP (Model Context Protocol) server that exposes WLAN Pi capabilities - device info, service management, Wi-Fi scanning, packet capture, profiler, Bluetooth, VLANs - to AI assistants. It is a thin bridge to the wlanpi-core API on https://localhost:31415: every tool and resource goes through that API, and nothing runs local subprocesses or reads local files. Keep it that way - if a capability has no wlanpi-core endpoint, the endpoint gets added upstream first.

Almost all of that API is REST. The one exception is packet capture, which wlanpi-core exposes only as a WebSocket (/api/v1/streaming/capture) - so wlanpi_mcp/capture/ speaks that protocol instead of HTTP. That is still core-API-only: same host, same JWT, still no local subprocess. The one deliberate exception to "no local file" is the file-backed capture family (tools/capture_file.py, see below), which persists the pcapng bytes it receives over that same WebSocket to a managed directory and reads them back - a scoped relaxation, not licence to read arbitrary device files or add other non-core transports.

Commands

# Setup (Python >= 3.13)
pip install -e ".[testing]"

# Run all tests / one file / one test
pytest
pytest tests/test_auth.py
pytest tests/test_auth.py::test_passes_token_to_downstream_context

# Run the server locally
python -m wlanpi_mcp --transport stdio   # default; direct MCP client invocation
python -m wlanpi_mcp --transport streamable-http   # HTTP daemon mode (uvicorn, stateless, /mcp), how systemd runs it

# Build the Debian package (dh-virtualenv, installs to /opt/wlanpi-mcp)
dpkg-buildpackage -us -uc

asyncio_mode = auto is set in pyproject.toml, so async tests don't need @pytest.mark.asyncio. Lint and format tooling is configured via tox: tox -e lint (ruff check then mypy), tox -e formatcheck (ruff format --check), and tox -e format (ruff format).

Read the full file on GitHub · 69 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. 4d ago Changed · +379 tokens per session 1b026bef6d0b
  2. 5d ago Changed · +29 tokens per session 4a1ed048cd08
  3. 23d ago Changed · +6 lines · +841 tokens per session 0db44feae78a
  4. 24d ago Changed · +115 tokens per session 8095307c5040
  5. 1mo ago Changed · +171 tokens per session 99af7ab1e964
  6. 1mo ago Changed · +2 lines · +281 tokens per session dfd70b066fb9
  7. 1mo ago Changed 1c73c8be60a7
  8. 1mo ago Changed · +9 lines · +1,560 tokens per session cef85de52114
  9. 1mo ago First seen · 52 lines · 1,173 tokens per session scan A 1b0fe043baf1

Subscribe to this mod's changes

wlanpi-mcp CLAUDE.md is an instructions file published in the GitHub repository WLAN-Pi/wlanpi-mcp (6 stars, last pushed yesterday), licensed BSD-3-Clause. It adds 4,549 tokens to every session, about $0.0182 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories