siteone-mcp-server CLAUDE.md

siteone-mcp-server CLAUDE.md is an instructions file for coding agents 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

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.

agentmods
npx agentmods add instructions/dorkside/siteone-mcp-server/claude-md
Clone the repo
git clone --depth 1 https://github.com/Dorkside/siteone-mcp-server

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.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.svg" alt="Measured on agentmods" 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. 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 $0.00749 $0.00749
Opus 5 $0.00375 $0.00375
Sonnet 5 $0.00150 $0.00150
Haiku 4.5 $0.00075 $0.00075

Measured 5d ago against content hash 6fcae2af8f3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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 requireddist/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 transformationtransformSiteoneOutput() 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 CLImax_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. 5d 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 6mo ago), licensed MIT. It adds 749 tokens to every session, about $0.0037 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.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,733 tokens