Проверяет пакеты плагинов Codex, навыки и бандлы MCP server на соответствие требованиям безопасности, структуры и рантайма.
Также известен как Esquetta/CodexPluginDoctor, codex-plugin-doctor
- Звёзды
- 2
- Инструменты
- —
- Загрузки, 30 дней
- —
- Последняя версия
- —
- Последний коммит
- 7 нояб. 2026 г.
- Лицензия
- MIT
Что такое CodexPluginDoctor MCP?
CodexPluginDoctor — это MCP server. Проверяет пакеты плагинов Codex, навыки и бандлы MCP server на соответствие требованиям безопасности, структуры и рантайма.
Сводка сгенерирована из README проекта
О CodexPluginDoctor MCP server
CodexPluginDoctor позволяет разработчикам проверять пакеты плагинов Codex и бандлы MCP server на безопасность и структуру. Этот CLI инструмент инспектирует папки плагинов, содержащие файл .codex-plugin/plugin.json, чтобы убедиться в их соответствии специфическим требованиям перед развертыванием. Он ищет захардкоженные секреты, проверяет связки навыков и анализирует качество метаданных для предотвращения типичных ошибок конфигурации.
Пользователи могут проводить глубокую проверку с помощью флага --runtime, который выполняет код самого пакета для верификации MCP handshake, а также инструментов, ресурсов и промптов. Для дополнительной безопасности во время runtime-тестирования опция --sandbox docker изолирует локальные Node.js stdio серверы. Инструмент также поддерживает проверку установленных плагинов через команду --installed и верификацию совместимости с такими клиентами, как Claude Desktop, Cursor, Cline и Windsurf.
Помимо локальных проверок, инструмент предоставляет функционал для сравнения инструментов и шаблонов ресурсов с базовой линией с помощью MCP snapshots. Он предназначен для интеграции в CI-процессы через GitHub Actions, что позволяет командам автоматизировать отчеты о соответствии и оценки безопасности в процессе создания pull request.
Что вы можете с ним делать
- 1Обнаружение захардкоженных учетных данныхВыявление конфигураций MCP server, содержащих конфиденциальные API ключи, которые следует заменить на ссылки на переменные окружения.
- 2Проверка соответствия рантаймаТестирование реально работающего MCP server, чтобы убедиться, что tools, resources и prompts функционируют согласно протоколу.
- 3Проверка совместимости с несколькими клиентамиПодтверждение того, что конфигурация MCP валидна и готова к использованию в различных десктопных AI-клиентах.
Взято из README проекта. Каждый вариант использования проверен на соответствие цитате из него.
Как установить CodexPluginDoctor MCP
Форматы проверены 10 ноя 2026Добавить в CursorДобавить в GooseУстановка CodexPluginDoctor MCP в Claude Code
$ claude mcp add codexplugindoctor -- npx -y codex-plugin-doctorУстановка CodexPluginDoctor MCP в Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"codexplugindoctor": {
"command": "npx",
"args": [
"-y",
"codex-plugin-doctor"
]
}
}
}Установка CodexPluginDoctor MCP в VS Code
.vscode/mcp.json
{
"servers": {
"codexplugindoctor": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"codex-plugin-doctor"
]
}
}
}Установка CodexPluginDoctor MCP в VS Code CLI
$ code --add-mcp '{"name":"codexplugindoctor","type":"stdio","command":"npx","args":["-y","codex-plugin-doctor"]}'Установка CodexPluginDoctor MCP в Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"codexplugindoctor": {
"command": "npx",
"args": [
"-y",
"codex-plugin-doctor"
]
}
}
}Установка CodexPluginDoctor MCP в Codex
$ codex mcp add codexplugindoctor -- npx -y codex-plugin-doctorУстановка CodexPluginDoctor MCP в Codex config.toml
~/.codex/config.toml
[mcp_servers.codexplugindoctor] command = "npx" args = ["-y", "codex-plugin-doctor"]
Установка CodexPluginDoctor MCP в Gemini CLI
$ gemini mcp add -s user codexplugindoctor npx -- -y codex-plugin-doctorУстановка CodexPluginDoctor MCP в Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"codexplugindoctor": {
"command": "npx",
"args": [
"-y",
"codex-plugin-doctor"
]
}
}
}Автоматические проверки
Запущено 14 нояб. 2026 г.Полный отчёт →Прошло наши автоматизированные проверки. Это не аудит безопасности: изучите код и предоставьте серверу минимально необходимый доступ. Как работают проверки
- Связанный и доступный исходный репозиторийesquetta/codexplugindoctor is public and reachablegithub.com/esquetta/codexplugindoctor ↗Пройдено
- Пакет указывает этот репозиторий как источникcodex-plugin-doctor names esquetta/codexplugindoctor as sourcenpmjs.com/package/codex-plugin-doctor ↗Пройдено
- Происхождение сборки (аттестация Sigstore)Sigstore attestation for codex-plugin-doctornpmjs.com/package/codex-plugin-doctor/v/1.92.0#provenance ↗Пройдено
- Open source лицензия (OSI)MITspdx.org/licenses/MIT.html ↗Пройдено
- Коммит или релиз за последний годLast commit or release 2026-11-07github.com/esquetta/codexplugindoctor ↗Пройдено
- OpenSSF ScorecardНе проверялось
- Имя пакета не похоже на популярный пакетNo popular package one edit away from codex-plugin-doctorПройдено
- Нет критических предупреждений в пакете или его зависимостяхНе проверялось
- Нет скрытых инструкций для модели0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersПройдено
- Деструктивные инструменты помеченыНе проверялось
- Удалённая конечная точка отвечает на рукопожатие MCPНе проверялось
README
Открыть на GitHubCodex Plugin Doctor
A CLI that checks Codex plugins, skills, and MCP servers before you ship them: the package, its security, and, if you allow it, the running MCP server.
npx codex-plugin-doctor check path/to/plugin
Point it at a folder with .codex-plugin/plugin.json. A plugin with an API key in its
.mcp.json exits with status 1 and this report (recommended commands trimmed):
Codex Plugin Doctor
===================
Status: FAIL
Target: /path/to/plugin
Summary: 1 fail, 0 warn, 1 total
Failures
--------
✖ plugin.security.hard_coded_secret
Message: The MCP server `dangerServer` contains a hard-coded secret-like env value for `OPENAI_API_KEY`.
Impact: Hard-coded credentials inside plugin bundles increase leakage risk and make secure rotation difficult.
Suggested fix: Replace the literal value for `OPENAI_API_KEY` with an environment reference or injected secret outside the package.
Fingerprint: 21da7c75027f0811929d49253412a0f20694d974f141d0421410c89ee29c8b72
Evidence: serverName=dangerServer, configPath=.mcp.json, envKey=OPENAI_API_KEY, envValue=[REDACTED]
Add --runtime to also start the plugin's MCP servers and call them. That runs the
package's own code, so it is opt-in, and --sandbox docker isolates local Node.js stdio
servers. No plugin at hand? npx codex-plugin-doctor check --installed checks the ones
in your Codex plugin cache.
What It Checks
- Package:
.codex-plugin/plugin.json, skill wiring andSKILL.mdmetadata,.mcp.jsonstructure, description quality, hard-coded secrets, and paths that escape the package. - Security (
security .): a scorecard for shell wrappers, encoded commands, remote content piped into a shell, and plain HTTP transports. - Running servers (
--runtime): the MCP handshake, then tools, resources, prompts, and pagination, with a scorecard and a conformance report. - Breaking changes: MCP snapshots compare tools, prompts, and resource templates with a committed baseline, in a pull request comment and in release notes.
- Other clients (
compat . --all --scorecard): whether the MCP config is valid and can be added to Claude Desktop, Cursor, Cline, and Windsurf on this machine. - Remote servers and publishing: opt-in Remote MCP Readiness, MCP Registry Readiness, and an offline public directory preflight.
See the CLI Reference for more commands and examples,
codex-plugin-doctor --help for all of them, and codex-plugin-doctor explain <finding-id> for
what a rule means.
Install
npm install -g codex-plugin-doctor
codex-plugin-doctor self-test
codex-plugin-doctor check .
codex-plugin-doctor check . --runtime
codex-plugin-doctor mcp path/to/mcp-package
GitHub Action
name: Validate Codex plugin
on:
pull_request:
permissions:
contents: read
jobs:
doctor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
- uses: Esquetta/CodexPluginDoctor@v1.92.0
with:
version: "1.92.0"
path: .
runtime: "true"
policy: codex-publish
runtime: "true" runs the package's code, so this job keeps a read-only token.
codex-plugin-doctor init-ci . writes a workflow for you. See
GitHub Action Usage for reports, pull request comments, and
inputs.
Documentation
- CLI Reference
- GitHub Action Usage
- MCP Snapshot
- Release Gating
- Rule Catalog
- Official Plugin Components
- Real-World Validation
- Examples
- Changelog
- All documentation
1.0 Stability
The 1.0 line is the stable compatibility baseline for plugin authors and CI consumers.
- Public JSON schema surfaces and existing rule IDs/default severities are treated as stable through 1.0.
- Runtime probing remains opt-in because it executes package-local MCP servers.
- New features stay additive unless a major version says otherwise.
See the documentation index for architecture, usage, security, and contributor guides.
Contributing
Contributions are welcome. Start with Contributing, the
Security Policy, the Code of Conduct, and the
validation tuning issue template.
npm run release-check runs the release preflight; see
Versioning and Releases.
Support
If this tool saves you time, GitHub stars and sponsorship help signal that the project is worth continuing.
- Star the repository on GitHub.
- Use GitHub Sponsors through the repository funding link.
- Open validation tuning issues for false positives or false negatives.
Вопросы о CodexPluginDoctor MCP
Как добавить CodexPluginDoctor MCP в Claude Code?
Выполните claude mcp add codexplugindoctor -- npx -y codex-plugin-doctor в терминале. Добавьте --scope user, чтобы сервер был доступен во всех проектах.
Как добавить CodexPluginDoctor MCP в Cursor?
Откройте ~/.cursor/mcp.json и добавьте сервер в mcpServers, используя конфигурацию Cursor из раздела установки выше.
Как проверить, нет ли в MCP server захардкоженных секретов?
Инструмент автоматически ищет захардкоженные секреты, такие как API ключи, в файле .mcp.json, и завершит работу с ошибкой, если они будут обнаружены.
Можно ли с помощью этого инструмента протестировать работающий MCP server?
Да, при использовании флага --runtime инструмент запустит MCP server плагина и вызовет его tools, resources и prompts для проверки соответствия протоколу.
Как изолировать работающие MCP server во время тестирования?
Вы можете использовать флаг --sandbox docker, чтобы изолировать локальные Node.js stdio серверы.
Можно ли использовать этот инструмент для проверки плагинов, уже установленных в кэше?
Да, команда npx codex-plugin-doctor check --installed проверит плагины в вашем кэше плагинов Codex.