Skip to main content
Glama

mcp-run-python

Official
by pydantic
utils.py487 B
from io import StringIO from rich.console import Console from rich.table import Table def render_table(table: Table) -> str: """Render a rich Table as a string.""" string_io = StringIO() Console(width=300, file=string_io).print(table) rendered = string_io.getvalue() # Need to trim end-of-line whitespace to prevent snapshot diffs after pre-commit removes the whitespace trimmed = '\n'.join([line.rstrip() for line in rendered.split('\n')]) return trimmed

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/pydantic/pydantic-ai'

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