AutoGen
AutoGen: ஹெடர்களுடன் StreamableHttpServerParams, McpWorkbench வழியாகப் பயன்படுத்தப்படுகிறது.
- API விசை (Bearer)
கிளையண்ட் குறியீடு
பரிந்துரைக்கப்படுகிறதுimport asyncio, os
from autogen_ext.tools.mcp import McpWorkbench, StreamableHttpServerParams
async def main():
params = StreamableHttpServerParams(
url="https://aicharged.io/api/v1/mcp",
headers={"Authorization": f"Bearer {os.environ['AICHARGED_API_KEY']}"},
timeout=30.0,
)
async with McpWorkbench(params) as workbench:
tools = await workbench.list_tools()
print([tool["name"] for tool in tools])
asyncio.run(main())
தொகுப்பை நிறுவவும்
pip install "autogen-ext[mcp]"