Site Audit MCP Tools (tools/site-audit-tools.ts)

open-seo · src/server/mcp/tools/site-audit-tools.ts · typescript · MIT
dev-tools, ai, crm, fw:zod, tag:site-audit, tag:tools

MCP tool definitions for running SEO site audits and querying audit status, issues, and pages, formatted for MCP responses. Reuse when exposing audit functionality to MCP clients.

// Source: https://github.com/every-app/open-seo | License: MIT | Copyright 2026 Ben Senescu
// Provided via justclaw.it.com; keep this notice with the code.
/* eslint-disable max-lines -- all site-audit MCP tools are intentionally kept in one module */
import { sort } from "remeda";
import { z } from "zod";
import { AuditRepository } from "@/server/features/audit/repositories/AuditRepository";
import { AuditService } from "@/server/features/audit/services/AuditService";
import { AppError } from "@/server/lib/errors";
import { captureServerEvent } from "@/server/lib/posthog";
import {
  AUDIT_ISSUE_TYPES,
  getIssueDescriptor,
  ISSUE_SEVERITY_ORDER,
} from "@/shared/audit-issues";
import { PAGE_FETCH_CLASSES } from "@/shared/audit-fetch-class";
import { mcpResponse } from "@/server/mcp/fo

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key