Skip to main content
Glama
utils.py582 B
def get_dynamodb_type(value): if isinstance(value, str): return {'S': value} elif isinstance(value, (int, float)): return {'N': str(value)} elif isinstance(value, bool): return {'BOOL': value} elif value is None: return {'NULL': True} elif isinstance(value, list): return {'L': [get_dynamodb_type(v) for v in value]} elif isinstance(value, dict): return {'M': {k: get_dynamodb_type(v) for k, v in value.items()}} else: raise ValueError( f"Unsupported type for DynamoDB: {type(value)}")

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/rishikavikondala/mcp-server-aws'

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