Skip to main content

Claude Code Plugin MCP - Access Claude Code plugins via MCP protocol

Project description

cc-plugin-mcp

Claude CodeプラグインにMCP(Model Context Protocol)経由でアクセスするためのMCPサーバーです。

概要

Claude CodeのプラグインシステムとのインタフェースをMCPプロトコルで提供し、プラグイン一覧の取得や詳細情報の参照を可能にします。MCPクライアント(Claude Desktop、Cursor等)から利用できます。

主な機能

  • MCPプロトコル対応: Model Context Protocolに準拠したサーバー
  • プラグイン管理: Claude Codeプラグインの一覧取得と要素読み込み
  • セキュリティ: パストトラバーサル対策、入力検証、エラーハンドリング
  • パフォーマンス: LRUキャッシュによる高速化
  • 運用性: 包括的なロギング、29個のテストケース

MCP ツール

  • get-plugin-list - 利用可能なプラグインの一覧を取得
  • load-elements - 指定されたプラグインの要素(skills, agents, commands)を読み込み

設定方法

MCPクライアントの設定ファイル(例:Claude Desktopのclaude_desktop_config.json)に以下を追加:

{
  "mcpServers": {
    "cc-plugin-mcp": {
      "command": "uvx",
      "args": ["cc-plugin-mcp"]
    }
  }
}

インストール

# uvxで直接実行(推奨)
uvx cc-plugin-mcp

# またはPyPIからインストール
pip install cc-plugin-mcp

# 開発環境の場合
git clone https://github.com/ppspps824/cc-plugin-mcp.git
cd cc-plugin-mcp
uv sync --all-extras

使い方

MCPサーバーとして動作するため、MCPクライアントから直接呼び出されます。手動でテストする場合:

# uvxでMCPサーバーとして起動(推奨)
uvx cc-plugin-mcp

# または開発環境の場合
uv run python -m cc_plugin_mcp.main

テスト

# テスト実行
uv run pytest

# カバレッジ付き
uv run pytest --cov=cc_plugin_mcp

トラブルシューティング

プラグインが見つからない場合

  1. ~/.claude/plugins/ ディレクトリの存在確認
  2. ~/.claude/plugins/marketplaces/ に marketplace.json があるか確認

MCPクライアントで認識されない場合

  1. MCPクライアントの設定ファイルが正しく設定されているか確認
  2. uvxコマンドが利用可能か確認(uvx --version
  3. MCPクライアントのログでエラーメッセージを確認

テストが失敗する場合

uv sync --all-extras --refresh
uv run pytest -v

ライセンス

MIT

リポジトリ

https://github.com/ppspps824/cc-plugin-mcp

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cc_plugin_mcp-0.1.3.tar.gz (89.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cc_plugin_mcp-0.1.3-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file cc_plugin_mcp-0.1.3.tar.gz.

File metadata

  • Download URL: cc_plugin_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 89.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for cc_plugin_mcp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6188dcf2f9f71c1eea2859563d3fb37d278e7b9954b120a774068f1c742d2794
MD5 9846ac2062f5ee17d297b8a02b4aad21
BLAKE2b-256 d3f87d85ca7903b461bcd6a626df76be19a0c9a42b61e8657f3cfd9ae82815bd

See more details on using hashes here.

File details

Details for the file cc_plugin_mcp-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: cc_plugin_mcp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for cc_plugin_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 554f931ad7af5da4a2e978e6f83c44dc669b3bb72ecac64cdf423f5511706a67
MD5 1807e270d6e1cc45855dd9f877b1acb5
BLAKE2b-256 9be070e585917e8a1175b8800383efe1d5836389f9fce4551a688f12e9a850ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page