We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/devonmojito/ton-blockchain-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
util.py•301 B
from __future__ import unicode_literals
try:
unicode
except NameError:
unicode = str
def ensure_bytes(string):
"""Ensure a string is returned as a bytes object, encoded as utf8."""
if isinstance(string, unicode):
return string.encode("utf8")
else:
return string