Skip to main content
Glama

Mesh Design System MCP Server

by lukeylias
DEPENDENCY_FIX.md•3.42 kB
# Dependency Fix Summary ## āœ… Issues Fixed ### 1. **MCP Package Import Error** **Problem:** `from mcp.server.fastmcp import FastMCP` was using incorrect import path **Solution:** - Changed package from `mcp>=1.0.0` to `fastmcp>=0.2.0` - Updated import to: `from fastmcp import FastMCP` ### 2. **httpx Version Compatibility** **Problem:** `httpx==0.25.2` was pinned to old version **Solution:** Updated to `httpx>=0.27.0` for better async support and compatibility ### 3. **Pydantic Version Range** **Problem:** `pydantic==2.5.0` was too strict, could cause conflicts **Solution:** Changed to `pydantic>=2.5.0,<3.0.0` to allow patch/minor updates while preventing breaking changes ### 4. **Dependency Version Pinning** **Problem:** All packages were strictly pinned (==), making updates difficult **Solution:** Changed to flexible ranges (>=) for all packages except major version boundaries ## Updated Files ### šŸ“„ requirements.txt ```diff - mcp>=1.0.0 - pydantic==2.5.0 - beautifulsoup4==4.12.2 - playwright==1.40.0 - aiofiles==23.2.0 - httpx==0.25.2 - faker==22.0.0 + # MCP SDK (FastMCP for simplified stdio server) + fastmcp>=0.2.0 + + # Async and HTTP + httpx>=0.27.0 + aiofiles>=23.2.0 + + # Web scraping + playwright>=1.40.0 + beautifulsoup4>=4.12.0 + + # Data validation and generation + pydantic>=2.5.0,<3.0.0 + faker>=22.0.0 ``` ### šŸ“„ main.py (lines 1-21) ```diff - from mcp.server.fastmcp import FastMCP + from fastmcp import FastMCP ``` ## Installation Instructions ### Fresh Install (Recommended) ```bash cd /Users/luke.ylias/Documents/GitHub/MeshMCP # Create virtual environment python3 -m venv venv source venv/bin/activate # Install dependencies pip install -r requirements.txt playwright install chromium # Test python3 test_mcp.py ``` ### Upgrade Existing Environment ```bash cd /Users/luke.ylias/Documents/GitHub/MeshMCP # Upgrade all packages pip install -r requirements.txt --upgrade playwright install chromium # Test python3 test_mcp.py ``` ## Verification After installation, run: ```bash python3 test_mcp.py ``` You should see: ``` āœ… Server imports successfully āœ… Found 6 tools registered āœ… All tests passed! MCP server is ready to use. ``` ## What's New ### Dependencies | Package | Old | New | Reason | |---------|-----|-----|--------| | MCP SDK | `mcp>=1.0.0` | `fastmcp>=0.2.0` | Correct package for FastMCP | | httpx | `==0.25.2` | `>=0.27.0` | Latest async features | | pydantic | `==2.5.0` | `>=2.5.0,<3.0.0` | Flexible but safe | | beautifulsoup4 | `==4.12.2` | `>=4.12.0` | Allow updates | | playwright | `==1.40.0` | `>=1.40.0` | Allow updates | | aiofiles | `==23.2.0` | `>=23.2.0` | Allow updates | | faker | `==22.0.0` | `>=22.0.0` | Allow updates | ### Code Changes - **main.py**: Fixed FastMCP import path - **requirements.txt**: Updated all dependencies with proper version ranges - Added comments to organize dependencies by purpose ## Next Steps 1. āœ… Install dependencies (see [INSTALL.md](INSTALL.md)) 2. āœ… Test server (`python3 test_mcp.py`) 3. āœ… Configure VS Code (see [SETUP.md](SETUP.md)) 4. āœ… Use with Claude Code! ## Troubleshooting If you encounter any issues, see the comprehensive guide in [INSTALL.md](INSTALL.md). Common issues: - Module not found → Use fresh virtual environment - Import errors → Run `pip install -r requirements.txt --upgrade` - Playwright errors → Run `playwright install chromium --force`

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/lukeylias/MeshMCP'

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