caft

Results 3 issues of caft

### Description(required) 1. 使用扩展:`https://github.com/GopeedLab/gopeed-extension-samples/tree/main/github-release-sample` 2. 创建任务用:https://github.com/GopeedLab/gopeed/releases ![image](https://github.com/GopeedLab/gopeed/assets/8357128/5575ed7e-6d37-4043-9b64-853fb89fcdcd) ### App Version(required) docker运行: ``` docker run --name gopeed -d -p 9999:9999 -v /path/to/download:/app/Downloads -v /path/to/storage:/app/storage liwei2633/gopeed ``` ### OS Version(required) ### Snapshots...

bug

1. 问题 QwenAgent库将resource封装为tool使用,实测集成到qwen里效果不佳,不如直接用tool 具体原因是: - QwenAgent将resource封装为`list_resources`和`read_resource`两个tool - QwenAgent在`list_resouces`时只调用了`session.list_resources`而没有`session.list_resource_templates`,导致传给LLM的资源列表不完整 2. `tools/mcp_manager.py` 代码实现 ```python async def execute_function(self, tool_name, tool_args: dict): ... if tool_name == 'list_resources': try: list_resources = await self.session.list_resources() if list_resources.resources:...

1. 问题 我用`fastmcp`库构建了一个mcpserver,里面只有一个resource_template类型的方法,具体内容如下: ``` python from fastmcp import FastMCP @mcp.resource("resource://list_branches?git_path={git_path}") def list_branches(git_path: str = Field(description="仓库名")) -> list[str]: """ 获取指定仓库的所有分支名 :param git_path: 仓库名,注意:需要对git_path进行URL编码 :return: 分支名列表 """ return ['master', 'release'] if __name__...