Skip to main content
Glama

Strava MCP Server

test_mcp.pyโ€ข1.16 kB
#!/usr/bin/env python3 """ Test script to verify the Strava MCP server setup """ import asyncio from strava_mcp import app async def test_mcp(): """Test the MCP server functionality""" print("๐Ÿงช Testing Strava MCP Server...") try: # Test the tool function directly print("\n๐Ÿ“Š Testing get_strava_activities function...") result = await app.call_tool("get_strava_activities", {"limit": 2}) print("โœ… Function executed successfully!") print(f"๐Ÿ“„ Output type: {type(result)}") print("\n๐Ÿ“‹ Sample output:") print("-" * 50) print(result) print("-" * 50) print("\n๐ŸŽ‰ All tests passed! MCP server is ready to run.") print("\n๐Ÿ’ก Next steps:") print(" 1. Run: python run_server.py") print(" 2. Connect with an MCP client") print(" 3. Call get_strava_activities tool") except Exception as e: print(f"โŒ Test failed: {e}") return False return True if __name__ == "__main__": success = asyncio.run(test_mcp()) if not success: exit(1)

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/Beefsupreme21/mcp-hackathon'

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