Skip to main content
Glama
PKG-INFO2.39 kB
Metadata-Version: 2.4 Name: mcp-server Version: 0.1.0 Summary: Convert Solidity bytecode to MPC server Home-page: https://github.com/yourusername/solidity-mpc-server Author: Your Name Author-email: your.email@example.com Classifier: Development Status :: 3 - Alpha Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: MIT License Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Requires-Python: >=3.8 Description-Content-Type: text/markdown Requires-Dist: fastapi>=0.68.0 Requires-Dist: uvicorn>=0.15.0 Requires-Dist: web3>=6.11.1 Requires-Dist: pydantic>=1.8.0 Requires-Dist: click>=8.0.0 Requires-Dist: openai>=1.0.0 Dynamic: author Dynamic: author-email Dynamic: classifier Dynamic: description Dynamic: description-content-type Dynamic: home-page Dynamic: requires-dist Dynamic: requires-python Dynamic: summary # MCP Server Generator A tool to generate Model Context Protocol (MCP) servers from Solidity contract ABIs. ## Setup 1. Install dependencies: ```bash pip install -r requirements.txt pip install -r requirements-test.txt ``` 2. Set up environment variables: ```bash # Required for OpenAI API access export OPENAI_API_KEY=your_api_key_here # Required for Ethereum node access export ETH_NODE_URL=your_ethereum_node_url_here ``` ## Usage Generate an MCP server from a contract ABI: ```bash python -m mcp_server.cli generate path/to/abi.json output_dir ContractName ``` Clear the method implementation cache: ```bash python -m mcp_server.cli clear-cache output_dir/cache ``` ## Testing Run the test suite: ```bash pytest tests/ ``` The test suite requires: 1. An OpenAI API key 2. An Ethereum node URL (e.g., from Infura or Alchemy) 3. The UniToken.json ABI file in the contracts directory ## Development The project structure: ``` mcp_server/ ├── abi_analyzer.py # ABI analysis tools ├── llm_generator.py # LLM-based method generation ├── method_cache.py # Method implementation caching ├── mcp_generator.py # MCP server generation └── cli.py # Command-line interface tests/ ├── test_uni_token.py # Uni token contract tests └── ... contracts/ └── UniToken.json # Uni token contract ABI ``` ## License MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ArjunBhuptani/sparkmango'

If you have feedback or need assistance with the MCP directory API, please join our Discord server