We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jjjtyy666/gogo-backend-mcp6'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
serialization.py•503 B
import json
from util.logging_decorator import log_calls
@log_calls()
def serialize_spots(spots):
"""Serialize a list of Spot objects into a list of dictionaries."""
serialized = []
for spot in spots:
serialized.append({
"spot_id": spot.spot_id,
"name": spot.name,
"description": spot.description,
"popularity": spot.popularity,
"is_active": spot.is_active,
})
return json.dumps(serialized, ensure_ascii=False)