tailscale-blade-mcp: Instructions file for Claude Code

CLAUDE.md

tailscale-blade-mcp CLAUDE.md is an instructions file for Claude Code from Groupthink-dev/tailscale-blade-mcp. It costs 615 tokens per session, scanned A, original, MIT.

A set of Claude Code instructions for tailscale-blade-mcp, a server that monitors and secures Tailscale networks.

In plain words
What is it for?
It is for developing, testing, checking, and running tailscale-blade-mcp.
Why use it?
It gives contributors the project structure, development commands, coding patterns, and API reference in one place.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is Groupthink-dev/tailscale-blade-mcp's own configuration. It tells Claude Code how to work on tailscale-blade-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 tailscale-blade-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Groupthink-dev/tailscale-blade-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/Groupthink-dev/tailscale-blade-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Groupthink-dev/tailscale-blade-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 tailscale-blade-mcp CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/groupthink-dev/tailscale-blade-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/groupthink-dev/tailscale-blade-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 615 This file is loaded in full into every session.
When invoked 615 The same file — it is already loaded in full.
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.00615 $0.00615
Opus 5.5 $0.00246 $0.00246
Sonnet 5.5 $0.00123 $0.00123
Haiku 4.5 $0.00061 $0.00061

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

Security

Grade A, and why

tailscale-blade-mcp CLAUDE.md 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 1mo 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.

CLAUDE.md · 49 lines

How it starts

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

tailscale-blade-mcp

Tailscale network monitoring and security MCP. 19 tools, token-efficient output.

Architecture

src/tailscale_blade_mcp/
├── server.py       — FastMCP server, 19 @mcp.tool decorators
├── client.py       — TailscaleClient wrapping httpx async, credential scrubbing
├── formatters.py   — Token-efficient output (pipe-delimited, null omission, relative times)
├── models.py       — TailscaleConfig, write gate
└── auth.py         — BearerAuthMiddleware for HTTP transport

Dev commands

make install-dev    # Install with dev + test deps
make test           # Unit tests (no API access needed)
make check          # ruff lint + format + mypy
make run            # Start MCP server (stdio)

Key patterns

  • httpx async — direct REST API calls, no third-party Tailscale library
  • Tailnet - shorthand — auto-detects from API key, no explicit tailnet config needed
  • nodeId preferred — newer device identifier format (not legacy id)
  • Write gate — TAILSCALE_WRITE_ENABLED=true required for mutations, destructive ops also need confirm=true
  • ACL apply — ts_acl_set validates first, then POSTs with optimistic concurrency: it auto-fetches the current ETag and sends If-Match so a concurrent admin edit 412s instead of clobbering (bypass via allow_overwrite_concurrent=true). client.get_acl_with_etag() surfaces the ETag; client.set_acl(policy, if_match=...) returns (applied_policy, new_etag). Apply needs a token with policy-file write scope (read-only keys 403).
  • Credential scrubbing — 4 regex patterns strip API keys, Bearer tokens from errors
  • No pagination — Tailscale API returns all results in one response

API reference

  • Base URL: https://api.tailscale.com/api/v2/
  • Auth: Authorization: Bearer tskey-api-...
  • Tailnet path: /tailnet/{tailnet}/... (use - for auto-detect)
  • Devices: /tailnet/-/devices?fields=all
  • Device detail: /device/{nodeId}?fields=all
  • ACL read: GET /tailnet/-/acl (response carries ETag)
  • ACL validate: POST /tailnet/-/acl/validate
  • ACL apply: POST /tailnet/-/acl (Content-Type: application/json, optional If-Match: <etag>; needs policy-file write scope)

Read the full file on GitHub · 49 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. 1mo ago First seen · 49 lines · 615 tokens per session scan A d3a581322a10

Subscribe to this mod's changes

tailscale-blade-mcp CLAUDE.md is an instructions file published in the GitHub repository Groupthink-dev/tailscale-blade-mcp (0 stars, last pushed 3mo ago), licensed MIT. It adds 615 tokens to every session, about $0.0025 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-31.

Related

Other instructions, from other repositories