mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-25 03:15:06 +08:00
feat: no longer register tool loader as component for type hints
This commit is contained in:
@@ -79,6 +79,5 @@ class MCPRouterGroup(group.RouterGroup):
|
||||
if server_data is None:
|
||||
return self.http_status(404, -1, 'Server not found')
|
||||
|
||||
|
||||
task_id = await self.ap.mcp_service.test_mcp_server(server_data['uuid'])
|
||||
return self.success(data={'task_id': task_id})
|
||||
|
||||
@@ -121,7 +121,7 @@ class RuntimeMCPSession:
|
||||
self.ap.logger.error(f'Error shutting down MCP session {self.server_name}: {e}\n{traceback.format_exc()}')
|
||||
|
||||
|
||||
@loader.loader_class('mcp')
|
||||
# @loader.loader_class('mcp')
|
||||
class MCPLoader(loader.ToolLoader):
|
||||
"""MCP 工具加载器。
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ from .. import loader
|
||||
import langbot_plugin.api.entities.builtin.resource.tool as resource_tool
|
||||
|
||||
|
||||
@loader.loader_class('plugin-tool-loader')
|
||||
# @loader.loader_class('plugin-tool-loader')
|
||||
class PluginToolLoader(loader.ToolLoader):
|
||||
"""插件工具加载器。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user