Skip to main content
Glama
calc-app.py478 B
import random import sys import time print("Starting calc-app...") sys.stdout.flush() counter = 0 while True: counter += 1 if random.randint(1, 4) % 4 == 0: try: result = 1 / 0 except ZeroDivisionError as e: print(f"Run {counter} failed with error: {e}") sys.stdout.flush() else: print(f"Run {counter} succeeded") sys.stdout.flush() sleep_time = (1.2**counter)/20 time.sleep(sleep_time)

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/containers/kubernetes-mcp-server'

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