Codex pluginパッケージ、SKILL、およびMCP serverバンドルのセキュリティ、構造、およびランタイムの適合性を検証します。
別名 Esquetta/CodexPluginDoctor, codex-plugin-doctor
- スター
- 2
- ツール
- —
- ダウンロード数(30日間)
- —
- 最新バージョン
- —
- 最終コミット
- 2026年11月7日
- ライセンス
- MIT
CodexPluginDoctor MCPとは
CodexPluginDoctorはMCPサーバーです。 Codex pluginパッケージ、SKILL、およびMCP serverバンドルのセキュリティ、構造、およびランタイムの適合性を検証します。.
プロジェクトのREADMEから生成された概要
CodexPluginDoctor MCP server について
CodexPluginDoctorは、Codex pluginパッケージとMCP serverバンドルのセキュリティと構造を検証することを開発者に可能にします。このCLIツールは、.codex-plugin/plugin.jsonファイルを含むプラグインフォルダを検査し、デプロイ前に特定の要件を満たしているかを確認します。ハードコードされたシークレットのチェック、skillの接続検証、メタデータの品質確認を行い、一般的な設定エラーを防止します。
ユーザーは、--runtimeフラグを使用してパッケージ自身のコードを実行し、MCPハンドシェイク、tools、resources、およびpromptsを検証することで、詳細な検査を行うことができます。ランタイムテスト中の安全性を高めるために、--sandbox dockerオプションを使用してローカルのNode.js stdio serverを隔離できます。また、このツールは--installedコマンドによるインストール済みプラグインのチェックや、Claude Desktop、Cursor、Cline、Windsurfなどのクライアントとの互換性検証もサポートしています。
ローカルでのチェックに加え、MCPスナップショットを使用して、toolsやresourceテンプレートをベースラインと比較する機能も提供します。GitHub Actionsを介したCIワークフローへの統合も想定されており、プルリクエストのプロセス中にセキュリティスコアカードや適合性レポートを自動化することが可能です。
できること
- 1ハードコードされた認証情報の検出MCP serverの設定に、環境変数への置き換えが必要な機密性の高いAPIキーが含まれていないかを特定します。
- 2ランタイムの適合性検証実際に動作しているMCP serverをテストし、tools、resources、およびpromptsがプロトコルに従って機能することを確認します。
- 3マルチクライアント互換性の確認MCP設定が有効であり、さまざまなデスクトップAIクライアントで使用できる状態であることを確認します。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
CodexPluginDoctor MCPのインストール方法
フォーマット検証日 2026年11月10日Cursor に追加Gooseに追加Claude CodeにCodexPluginDoctor MCPをインストール
$ claude mcp add codexplugindoctor -- npx -y codex-plugin-doctorCursorにCodexPluginDoctor MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"codexplugindoctor": {
"command": "npx",
"args": [
"-y",
"codex-plugin-doctor"
]
}
}
}VS CodeにCodexPluginDoctor MCPをインストール
.vscode/mcp.json
{
"servers": {
"codexplugindoctor": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"codex-plugin-doctor"
]
}
}
}VS Code CLIにCodexPluginDoctor MCPをインストール
$ code --add-mcp '{"name":"codexplugindoctor","type":"stdio","command":"npx","args":["-y","codex-plugin-doctor"]}'Claude DesktopにCodexPluginDoctor MCPをインストール
claude_desktop_config.json
{
"mcpServers": {
"codexplugindoctor": {
"command": "npx",
"args": [
"-y",
"codex-plugin-doctor"
]
}
}
}CodexにCodexPluginDoctor MCPをインストール
$ codex mcp add codexplugindoctor -- npx -y codex-plugin-doctorCodex config.tomlにCodexPluginDoctor MCPをインストール
~/.codex/config.toml
[mcp_servers.codexplugindoctor] command = "npx" args = ["-y", "codex-plugin-doctor"]
Gemini CLIにCodexPluginDoctor MCPをインストール
$ gemini mcp add -s user codexplugindoctor npx -- -y codex-plugin-doctorGemini settings.jsonにCodexPluginDoctor MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"codexplugindoctor": {
"command": "npx",
"args": [
"-y",
"codex-plugin-doctor"
]
}
}
}自動チェック
実行日 2026年11月14日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。コードを読み、サーバーに必要最小限のアクセス権を与えてください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能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 ↗合格
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースあり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
GitHubで見るCodex 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を開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
MCP serverにハードコードされたシークレットが含まれていないか確認する方法はありますか?
このツールは、.mcp.jsonファイル内にAPIキーなどのハードコードされたシークレットがないかを自動的にチェックし、発見した場合はエラー状態で終了します。
このツールを使用して、実際に動作しているMCP serverをテストできますか?
はい、--runtimeフラグを追加することで、プラグインのMCP serverを起動し、そのtools、resources、およびpromptsを呼び出して適合性を検証できます。
テスト中に実行中のMCP serverを隔離するにはどうすればよいですか?
--sandbox dockerフラグを使用することで、ローカルのNode.js stdio serverを隔離できます。
キャッシュに既にインストールされているプラグインのチェックにこのツールを使用できますか?
はい、npx codex-plugin-doctor check --installed を実行すると、Codex pluginキャッシュ内のプラグインをチェックできます。