from fastmcp.tools.tool import ToolResult
from mcp.types import TextContent
def text_response(text: str) -> ToolResult:
"""Return raw text as a ToolResult without JSON wrapping overhead."""
return ToolResult(
content=[TextContent(type="text", text=text)],
structured_content=None # Explicitly disable structured content
)
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/batteryshark/mcp-findmy'
If you have feedback or need assistance with the MCP directory API, please join our Discord server