Skip to main content
Glama

Stability MCP Server

by nuljui
MIT License
validate_mcp.py2.44 kB
#!/usr/bin/env python3 """ Validation script for STBL-MCP server. Tests that the MCP server can start up and list tools properly. """ import subprocess import sys import json import os def test_mcp_server(): """Test that the MCP server can start and list tools.""" print("🔍 Testing STBL-MCP Server...") # Test 1: Import check print("1. Testing imports...") try: import stability_mcp print(" ✅ stability_mcp imports successfully") except ImportError as e: print(f" ❌ Failed to import stability_mcp: {e}") return False try: import stability_toolkit print(" ✅ stability_toolkit imports successfully") except ImportError as e: print(f" ❌ Failed to import stability_toolkit: {e}") return False # Test 2: MCP dependencies print("2. Testing MCP dependencies...") try: import mcp print(" ✅ MCP package available") except ImportError: print(" ❌ MCP package not installed. Run: pip install mcp") return False # Test 3: Toolkit instantiation print("3. Testing toolkit instantiation...") try: toolkit = stability_toolkit.StabilityToolkit() tools = toolkit.get_tools() print(f" ✅ Toolkit created with {len(tools)} tools") # Print tool names tool_names = [tool.name for tool in tools] print(f" 📋 Available tools: {', '.join(tool_names)}") except Exception as e: print(f" ❌ Failed to create toolkit: {e}") return False # Test 4: Environment check print("4. Testing environment...") api_key = os.getenv("STABILITY_API_KEY") if api_key: print(f" ✅ API key found: {api_key[:8]}...") else: print(" ⚠️ No API key found, using 'try-it-out' mode") print("\n🎉 All validation tests passed!") print("📋 Summary:") print(" - MCP server imports working") print(" - 4 blockchain tools available") print(" - Ready for Claude Desktop integration") print("\n💡 Next steps:") print(" 1. Follow CLAUDE_DESKTOP_SETUP.md") print(" 2. Configure your MCP client") print(" 3. Start using blockchain tools!") return True def main(): """Main validation function.""" if not test_mcp_server(): sys.exit(1) if __name__ == "__main__": main()

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/nuljui/stbl-mcp'

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