MCPcopy
hub / github.com/1Panel-dev/MaxKB / get

Method get

apps/tools/views/tool.py:80–92  ·  view source on GitHub ↗
(self, request: Request, workspace_id: str)

Source from the content-addressed store, hash-verified

78 RoleConstants.WORKSPACE_MANAGE.get_workspace_role(), RoleConstants.USER.get_workspace_role()
79 )
80 def get(self, request: Request, workspace_id: str):
81 return result.success(ToolTreeSerializer.Query(
82 data={
83 'workspace_id': workspace_id,
84 'folder_id': request.query_params.get('folder_id'),
85 'name': request.query_params.get('name'),
86 'scope': request.query_params.get('scope', ToolScope.WORKSPACE),
87 'tool_type': request.query_params.get('tool_type'),
88 'tool_type_list': request.query_params.getlist('tool_type_list[]'),
89 'user_id': request.user.id,
90 'create_user': request.query_params.get('create_user'),
91 }
92 ).get_tools())
93
94 class Debug(APIView):
95 authentication_classes = [TokenAuth]

Callers 15

get_query_setMethod · 0.45
is_validMethod · 0.45
oneMethod · 0.45
editMethod · 0.45
hand_nodeFunction · 0.45
is_validMethod · 0.45
debugMethod · 0.45
to_chat_recordMethod · 0.45
publishMethod · 0.45
list_knowledgeMethod · 0.45
editMethod · 0.45

Calls 2

successMethod · 0.45
get_toolsMethod · 0.45

Tested by 1

test_connectionMethod · 0.36