代理MCP Hello Goodbye服务器
一个简单的MCP服务器示例,演示了具有问候和再见功能的基本工具实现。此示例附带了Agently配置,使其易于运行。
特性
- 简单的问候和再见工具
- 演示正确的工具实现模式
- 干净和最少的实施
- 包括示例代理配置
安装
- 克隆此存储库
- 安装依赖项:
pip install agently注意:当最终的分发方法确定后,请重新审视此问题。
用法
该示例在 examples 目录。您可以直接使用以下命令运行代理:
cd examples
agently run这将启动代理程序,并准备好使用hello/goodbye功能。
贡献
欢迎投稿!请随时提交拉取请求。对于重大更改,请先打开一个问题来讨论您想要更改的内容。
许可证
该项目根据麻省理工学院许可证获得许可,详情见下文:
MIT License
Copyright (c) 2024 Agently
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.