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/papasim824/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/papasim824/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.1.tar.gz (88.9 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.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cc_plugin_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 88.9 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.1.tar.gz
Algorithm Hash digest
SHA256 4d77893d8175abb84584b03aa5af899be588320a3f9bba9fc1ca9b2745634a5d
MD5 98f6ce3dfbb231970ed85daca5fc2bad
BLAKE2b-256 3a9ecba003d67f116a5efb61a6831cb7cb436ec7e443c1264665b5d1a3791764

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cc_plugin_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e3a62797a2d934fc680a0eb20aea1a8c4d8331aa27713f347116324d4ed8a7fe
MD5 7cc11eb7b1b90b689621771dd1ab075f
BLAKE2b-256 2a51e2e0fc8f6aa31b762bdcada1aa524208d302489e4b823cce4ed534a9983f

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