A Model Context Protocol (MCP) server for Composer Kit UI components documentation and examples
Project description
Composer Kit MCP Server
A Model Context Protocol (MCP) server for accessing Composer Kit UI components documentation, examples, and usage information. This server provides comprehensive access to the Composer Kit React component library designed for building web3 applications on the Celo blockchain.
Installation
- Clone the repository:
git clone <repository-url>
cd composer-kit-mcp
- Install dependencies:
pip install -e .
Usage
Running the Server
# Run the MCP server
python -m composer_kit_mcp.server
# Or use the CLI entry point
composer-kit-mcp
Available Tools
Component Information
-
list_components
- List all available Composer Kit components with their descriptions and categories
- No parameters required
-
get_component
- Get detailed information about a specific component, including source code, props, and usage information
- Parameters:
component_name(e.g., 'button', 'wallet', 'payment', 'swap')
-
get_component_example
- Get example usage code for a specific component with real-world examples
- Parameters:
component_name,example_type(optional: 'basic', 'advanced', 'with-props')
-
search_components
- Search for components by name, description, or functionality
- Parameters:
query(e.g., 'wallet', 'payment', 'token', 'nft')
-
get_component_props
- Get detailed prop information for a specific component, including types, descriptions, and requirements
- Parameters:
component_name
Installation and Setup
-
get_installation_guide
- Get installation instructions for Composer Kit, including setup steps and configuration
- Parameters:
package_manager(optional: 'npm', 'yarn', 'pnpm', 'bun')
-
get_components_by_category
- Get all components in a specific category
- Parameters:
category(e.g., 'Core Components', 'Wallet Integration', 'Payment & Transactions')
Available Components
Core Components
- Address: Display Ethereum addresses with truncation and copy functionality
- Balance: Display and manage token balances with precision control
- Identity: Display user information with address, name, balance, and social links
Wallet Integration
- Wallet: Wallet connection and user information display
- Connect: Wallet connection button with callback support
Payment & Transactions
- Payment: Send payments with built-in dialog and error handling
- Transaction: Facilitate blockchain transactions with status tracking
- Swap: Token exchange interface with swappable token selection
Token Management
- TokenSelect: Search and select tokens from a list with filtering
NFT Components
- NFT: Display NFT details and provide minting interface
- NFTCard: Card layout for NFT display
- NFTImage: NFT image display component
- NFTMeta: NFT metadata display
- NFTMint: NFT minting interface
Key Features
Component Documentation
- Complete API Reference: Detailed prop information for all components
- Usage Examples: Real-world code examples for each component
- Installation Guides: Step-by-step setup instructions
- Category Organization: Components organized by functionality
Search and Discovery
- Semantic Search: Find components by functionality or use case
- Category Filtering: Browse components by category
- Prop Documentation: Detailed type information and requirements
Code Examples
- Basic Usage: Simple implementation examples
- Advanced Patterns: Complex usage scenarios
- Best Practices: Recommended implementation patterns
Architecture
The server provides access to hardcoded Composer Kit component data:
src/composer_kit_mcp/
├── components/ # Component data and models
│ ├── data.py # Hardcoded component information
│ └── models.py # Pydantic models for components
├── server.py # Main MCP server
└── __init__.py # Package initialization
Component Categories
Core Components
Essential UI components for basic functionality
Wallet Integration
Components for wallet connection and user management
Payment & Transactions
Components for handling payments and blockchain transactions
Token Management
Components for token selection and management
NFT Components
Components for NFT display and interaction
Development
Running Tests
pytest
Code Formatting
black .
ruff check .
Type Checking
mypy .
License
MIT License - see LICENSE file for details.
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
Support
For issues and questions:
- GitHub Issues: composer-kit-mcp/issues
- Documentation: Composer Kit Docs
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file composer_kit_mcp-0.1.1.tar.gz.
File metadata
- Download URL: composer_kit_mcp-0.1.1.tar.gz
- Upload date:
- Size: 43.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
078ffcced0ce2c4967eda614f7bbbdcf14cb2e105083dd88bd3f4d6df0a2aadd
|
|
| MD5 |
da50f7c2cdbf8c2e75deb0098710801a
|
|
| BLAKE2b-256 |
2f28dc848b37fd6cb92042fd360d44b599b0884013286ba855a4c267bff968c3
|
Provenance
The following attestation bundles were made for composer_kit_mcp-0.1.1.tar.gz:
Publisher:
publish.yml on celo-org/composer-kit-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
composer_kit_mcp-0.1.1.tar.gz -
Subject digest:
078ffcced0ce2c4967eda614f7bbbdcf14cb2e105083dd88bd3f4d6df0a2aadd - Sigstore transparency entry: 220466246
- Sigstore integration time:
-
Permalink:
celo-org/composer-kit-mcp@de1603b03580128e872ab8b7c3a2b5c0e39b3edf -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/celo-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@de1603b03580128e872ab8b7c3a2b5c0e39b3edf -
Trigger Event:
push
-
Statement type:
File details
Details for the file composer_kit_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: composer_kit_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26ce2e36a256bf119176798c770af4fb041bce476abfeac1ea411a6ac44d9722
|
|
| MD5 |
c1e99d0027e98745601826a8e412901c
|
|
| BLAKE2b-256 |
37b0982cc412931dbee27146dc6477512679059294731c67031fdf160799077f
|
Provenance
The following attestation bundles were made for composer_kit_mcp-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on celo-org/composer-kit-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
composer_kit_mcp-0.1.1-py3-none-any.whl -
Subject digest:
26ce2e36a256bf119176798c770af4fb041bce476abfeac1ea411a6ac44d9722 - Sigstore transparency entry: 220466256
- Sigstore integration time:
-
Permalink:
celo-org/composer-kit-mcp@de1603b03580128e872ab8b7c3a2b5c0e39b3edf -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/celo-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@de1603b03580128e872ab8b7c3a2b5c0e39b3edf -
Trigger Event:
push
-
Statement type: