function-calling-adapter
Function Calling Adapterは、さまざまなMCPサービス間での関数呼び出しをシームレスに行うための柔軟なアダプターです。統一されたインターフェースを提供し、認証や接続管理、エラーハンドリングを簡素化します。非同期操作や拡張可能なプラグインアーキテクチャもサポートしています。
GitHubスター
1
ユーザー評価
未評価
お気に入り
0
閲覧数
14
フォーク
0
イシュー
0
Function Calling Adapter
A flexible adapter for seamless function calling across various MCP services and tools.
Overview
Function Calling Adapter provides a unified interface to call and manage functions across different MCP services. It streamlines the process of connecting to various services, handling authentication, managing connections, and executing function calls with proper error handling.
Features
- Unified interface for multiple MCP services
- Seamless function calling with proper parameter handling
- Automatic connection management
- Comprehensive error handling
- Support for asynchronous operations
- Extensible plugin architecture
Installation
pip install function-calling-adapter
Usage
from function_calling_adapter import MCPClient
# Initialize the client
client = MCPClient()
# Connect to MCP service
await client.connect()
# Call a function
result = await client.call_tool("tool_name", {
"param1": "value1",
"param2": "value2"
})
# Process the result
print(result.content)
Documentation
For detailed documentation, visit docs/README.md
License
MIT
Function Calling Adapter (中文版)
灵活的函数调用适配器,无缝连接各种MCP服务和工具。
概述
Function Calling Adapter提供了一个统一的接口,用于在不同的MCP服务中调用和管理函数。它简化了连接各种服务、处理认证、管理连接以及执行函数调用的过程,并提供适当的错误处理。
特性
- 为多种MCP服务提供统一接口
- 无缝函数调用,正确处理参数
- 自动连接管理
- 全面的错误处理机制
- 支持异步操作
- 可扩展的插件架构
安装
pip install function-calling-adapter
使用方法
from function_calling_adapter import MCPClient
# 初始化客户端
client = MCPClient()
# 连接到MCP服务
await client.connect()
# 调用函数
result = await client.call_tool("tool_name", {
"param1": "value1",
"param2": "value2"
})
# 处理结果
print(result.content)
文档
详细文档请访问 docs/README.md
许可证
MIT