Sheriff-MCP
Sheriff-MCP
Sheriff — это MCP-сервер, который помогает ИИ-агентам эффективно исправлять проблемы статического анализа из SARIF-отчётов.
Документация | Установка | Справочник инструментов
Почему Sheriff?
ИИ-агенты с трудом справляются с большими отчётами статического анализа:
Перегрузка контекста - 100+ проблем переполняют окна контекста
Потеря прогресса - работа теряется при сжатии контекста или перезапуске сеанса
Неэффективная навигация - отсутствие пакетной обработки означает многократные переключения между файлами
Sheriff решает эту проблему, действуя как менеджер очереди задач:
Интеллектуальная пакетная обработка - проблемы группируются по файлам для эффективного исправления
Постоянный прогресс - состояние сохраняется при сжатии контекста, перезапусках и смене агентов
Фильтрация области - сосредоточьтесь на конкретных правилах, уровнях серьёзности или шаблонах файлов
Компактные ответы - минимальное использование контекста с сокращёнными именами полей
Поддерживаемые инструменты статического анализа
Sheriff работает с любым инструментом, который создаёт вывод в формате SARIF:
Инструмент | Язык | Команда SARIF |
Qodana | Java/Kotlin/JS/Python |
|
Semgrep | Мультиязычный |
|
ESLint | JavaScript/TypeScript |
|
CodeQL | Мультиязычный | Встроенный вывод SARIF |
SpotBugs | Java |
|
Bandit | Python |
|
Checkov | IaC |
|
Trivy | Контейнер/IaC |
|
SonarQube | Мультиязычный | Встроенный экспорт SARIF |
Related MCP server: CodePeel MCP Server
Быстрый старт
1. Установка
Скачайте sheriff-mcp-1.0.2-all.jar со страницы Релизы.
docker pull ghcr.io/ryansmith4/sheriff-mcp:latestКлиенты, поддерживающие MCP Registry, могут установить его напрямую по имени: io.github.ryansmith4/sheriff-mcp.
Подробную информацию см. в руководстве по установке.
2. Настройка MCP-клиента
Добавьте Sheriff в свой MCP-клиент (Claude Code, Cursor, ChatGPT Desktop и т. д.):
{
"mcpServers": {
"sheriff": {
"command": "java",
"args": ["-jar", "/path/to/sheriff-mcp-1.0.2-all.jar", "start"]
}
}
}Или с помощью Docker:
{
"mcpServers": {
"sheriff": {
"command": "docker",
"args": ["run", "-i", "--rm", "-v", ".:/data", "ghcr.io/ryansmith4/sheriff-mcp:latest"]
}
}
}Инструкции для конкретных клиентов и рекомендуемые инструкции для агентов приведены в руководстве по настройке агентов.
3. Использование
1. Run static analysis → qodana scan
2. Load into Sheriff → sheriff load target="results.sarif"
3. Get next file's issues → sheriff next
4. Fix all issues in file → [edit the code]
5. Mark as done → sheriff done fps=[...] status="fixed"
6. Repeat 3-5 → until remaining = 0Sheriff предоставляет один инструмент sheriff с 7 действиями: load, next, done, progress, summary, reopen и export. Полную документацию см. в справочнике инструментов.
Пример сеанса
User: "Fix all ConstantValue issues in my codebase"
Agent: sheriff load target="build/qodana/qodana.sarif.json"
→ 136 total issues, 22 ConstantValue, 15 unused...
Agent: sheriff next scope={rule: "ConstantValue"}
→ 3 issues in Service.java with code snippets
Agent: [reads Service.java, fixes all 3 issues]
Agent: sheriff done fps=["88d32cab35478753", "ab1c2d3e12345678", "f9e8d7c6a1b2c3d4"] status="fixed"
→ 3 marked fixed, 19 remaining
... continues until remaining = 0Безопасность
Все артефакты релизов подписаны с помощью Sigstore для безопасности цепочки поставок.
Проверка JAR:
VERSION=1.0.2
cosign verify-blob \
--signature sheriff-mcp-${VERSION}-all.jar.sig \
--certificate sheriff-mcp-${VERSION}-all.jar.pem \
--certificate-identity-regexp "https://github.com/ryansmith4/sheriff-mcp" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
sheriff-mcp-${VERSION}-all.jarПроверка Docker-образа:
cosign verify ghcr.io/ryansmith4/sheriff-mcp:latest \
--certificate-oidc-issuer=https://token.actions.githubusercontent.com \
--certificate-identity-regexp="github.com/ryansmith4/sheriff-mcp"Нашу политику безопасности см. в SECURITY.md.
Участие в разработке
Приветствуется любой вклад! Рекомендации см. в CONTRIBUTING.md.
Лицензия
Apache License 2.0 — см. LICENSE
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
The issue tracker AI coding agents pull work from: atomic claims, dependency-aware dispatch.
Production-readiness for your AI coding agents.
Task management for teams building with AI agents. Agents claim tasks and report progress.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to scan GitHub repositories for security vulnerabilities, deployment blockers, and code quality issues. It provides detailed findings and auto-generated code patches to help developers ensure their code is production-ready.83MIT

CodePeel MCP Serverofficial
FlicenseAqualityDmaintenanceEnables AI agents to review code diffs for bugs, security issues, and bad patterns, and generate fixes.4-- FlicenseNot gradedqualityBmaintenanceEnables AI agents to scan codebases for TODO/FIXME/XXX patterns and get prioritized results over MCP, supporting CI gates and multiple output formats.-
- AlicenseAqualityBmaintenanceEnables AI agents to scan code for security vulnerabilities using multiple static analysis tools, with support for filtering, deduplication, and CI/CD integration.272MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ryansmith4/sheriff-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server