We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
such as @mcp.tool() async def function(text: str):
url =URL headers = { "User-Agent": USER_AGENT } async with httpx.AsyncClient() as client: try: async with client.stream("POST", url, headers=headers, json={"text": text}, timeout=100) as response: response.raise_for_status() async for chunk in response.aiter_bytes(): yield chunk except Exception as e: print("error", e)