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.2.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.2-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cc_plugin_mcp-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 c4cb8059aa1e69aa44f2da56388023f13bbaca2f9fbe4505b3dc48490a287c5d
MD5 343ba3e027ac16305ee57eefc1d26ea8
BLAKE2b-256 ed21e47ab6b2de9972d2adceb3550b0a7d81611bc6692ad8f72b7081ac4efcda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cc_plugin_mcp-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a205018db025147229406d47a49d6ac7b8c28da5ab8c9e1ad5e95992160af0d8
MD5 64f66c36622efa601e47a43ed165ea9b
BLAKE2b-256 6d2255b9375e4ccbfb18362ea42d50e1ab413c15415b0f9ddfe0abd09d521990

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