siteone-mcp-server: Instructions file for Claude Code

CLAUDE.md

siteone-mcp-server CLAUDE.md is an instructions file for Claude Code from Dorkside/siteone-mcp-server. It costs 749 tokens per session, scanned A, original, MIT.

Project instructions for a TypeScript MCP server that connects Claude Code or Claude Desktop to the SiteOne website-crawling command-line tool. They describe the project, its build commands, and its main code components.

In plain words
What is it for?
Use them when developing the server, building its npm package, running it in watch mode, testing its tools with MCP Inspector, or previewing the package before publishing.
Why use it?
They give an agent the repository context it needs to build, inspect, and safely change the server without guessing how it is organised or run.

Instructions file for Claude Code

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

This is Dorkside/siteone-mcp-server's own configuration. It tells Claude Code how to work on siteone-mcp-server 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 siteone-mcp-server configures →

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dorkside/siteone-mcp-server/claude-md"><img src="https://agentmods.dev/badge/instructions/dorkside/siteone-mcp-server/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 749 This file is loaded in full into every session.
When invoked 749 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.00749 $0.00749
Opus 5.5 $0.00300 $0.00300
Sonnet 5.5 $0.00150 $0.00150
Haiku 4.5 $0.00075 $0.00075

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

Security

Grade A, and why

siteone-mcp-server 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 2mo 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.

CLAUDE.md

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

Project Overview

MCP (Model Context Protocol) server written in TypeScript that wraps the SiteOne Crawler CLI. Distributed as an npm package for zero-install usage via npx siteone-mcp-server. The SiteOne binary must be installed separately on the user's machine.

Build & Development Commands

  • npm run build — Bundle with tsup to dist/ (config in tsup.config.ts, handles shebang automatically)
  • npm run dev — Watch mode for development
  • npm run inspect — Test with MCP Inspector (opens browser UI for interactive tool testing)
  • npm pack --dry-run — Preview what will be published to npm

No test suite or linter is configured yet.

Architecture

Single-file MCP server (src/index.ts) — all tool definitions and CLI wrapper logic in one file.

Key Components

  • MCP Server: Uses @modelcontextprotocol/sdk with StdioServerTransport for Claude Code/Desktop integration
  • CLI Wrapper: runSiteone() helper uses Node's execFile (not exec) with promisified async/await to safely invoke the SiteOne binary
  • Tool Definitions: 5 tools registered via server.tool() with Zod schemas for parameter validation:
    • crawl_site — Full site crawl with JSON output
    • crawl_single_page — Single page analysis
    • generate_sitemap — XML sitemap generation
    • export_markdown — Export pages as markdown files
    • get_crawl_summary — Quick shallow health check

Environment Variables

  • SITEONE_BIN — Path to SiteOne binary (default: crawler, assumes in PATH)
  • SITEONE_OUTPUT_DIR — Working directory for crawl outputs (default: process.cwd())

Key Conventions

  • ES modules — "type": "module" in package.json, Node16 module resolution
  • Shebang required — dist/index.js must have #!/usr/bin/env node for npx execution. tsup.config.ts handles this via the banner option; verify with head -1 dist/index.js after build
  • No console.log — This is a stdio MCP server; stdout is the JSON-RPC transport. Use console.error() for diagnostics only.
  • Safe process execution — Always use execFile with args array (never exec with string interpolation) to prevent command injection
  • MCP error responses — Return { isError: true, content: [...] } for errors so clients can distinguish failures from normal output
  • Output truncation — 50MB buffer for crawl results; truncateResult() caps output at 100KB before returning to the MCP client
  • Output transformation — transformSiteoneOutput() strips column metadata and internal fields for audit tools; summarizeSiteoneOutput() keeps only actionable data for health-check and file-output tools
  • Dynamic timeouts — Crawl timeout scales with max_depth parameter across all crawl tools: Math.max(300_000, max_depth * 60_000)
  • Default divergences from SiteOne CLI — max_depth defaults to 10 (SiteOne default is unlimited), rows_limit defaults to 500 (SiteOne default is 200). These are intentionally safer for MCP use.

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. 2mo ago First seen · 49 lines · 749 tokens per session scan A 6fcae2af8f3b

Subscribe to this mod's changes

siteone-mcp-server CLAUDE.md is an instructions file published in the GitHub repository Dorkside/siteone-mcp-server (4 stars, last pushed 8mo ago), licensed MIT. It adds 749 tokens to every session, about $0.0030 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

siteone-mcp-server CLAUDE.md compared with instructions from other repositories

siteone-mcp-server CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
siteone-mcp-server CLAUDE.mdDorkside/siteone-mcp-serverInstructions file48mo agoMITA749Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode