-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed as not planned
Labels
P0Broken core functionality, security issues, critical missing featureBroken core functionality, security issues, critical missing featureenhancementRequest for a new feature that's not currently supportedRequest for a new feature that's not currently supportedready for workEnough information for someone to start working onEnough information for someone to start working on
Description
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)
reqyou, artursanntos, RandyAbernethy, ahmetatalay, andrematias and 1 more
Metadata
Metadata
Assignees
Labels
P0Broken core functionality, security issues, critical missing featureBroken core functionality, security issues, critical missing featureenhancementRequest for a new feature that's not currently supportedRequest for a new feature that's not currently supportedready for workEnough information for someone to start working onEnough information for someone to start working on